mobile

Mobile Application Using Sencha Touch - JSON Request Generates Syntax Error

∥☆過路亽.° 提交于 2019-12-30 07:26:05
问题 I started playing a bit with Sencha Touch. So I've built a really simple application based on one of the examples just to see how it goes. Basically it creates a JSON Request which executes a Last.FM web service to get music events near the user's location. Here's the JSON code: var makeJSONPRequest = function() { Ext.util.JSONP.request({ url: 'http://ws.audioscrobbler.com/2.0/', params: { method: 'geo.getEvents', location: 'São+Paulo+-+SP', format: 'json', callback: 'callback', api_key:

Hide Tablayout Bar in android

时光怂恿深爱的人放手 提交于 2019-12-30 07:09:25
问题 I have a activity with toolbar , Tablayout , viewpager with fragments like that I want to implement toolbar material search on all the fragments like that but the problem is TAB Bar . I want to hide the tab bar(Call,Chat,Contact) on Search Open and unhide it when the search close How can I hide the tabbar ? I am using this library for material Search view implementation layout code is below <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android=

AuthenticatorException: bind failure on AVD

耗尽温柔 提交于 2019-12-30 07:01:11
问题 I'm trying to create an Android App that uses Google's OAuth library, like this sample. However, when I make a call to getAuthTokenByFeatures I get an exception that prints this out on LogCat: 05-24 10:56:58.224: W/System.err(557): android.accounts.AuthenticatorException: bind failure 05-24 10:56:58.236: W/System.err(557): at android.accounts.AccountManager.convertErrorToException(AccountManager.java:1563) 05-24 10:56:58.236: W/System.err(557): at android.accounts.AccountManager.access$400

How to prevent click events on the document body (maybe a bug in Cordova?)

限于喜欢 提交于 2019-12-30 06:01:28
问题 I'm a beginner trying to develop a mobile phone game with with Kinetic Js and "phonegap build". I am experiencing a problem which I don't know how to address. I made some tests: I just pasted this code here into my index.html and sent the code to the phonegap build which created the apk file from the html code. The app works quite fine but if you play a little bit you may see an undesired behavior: the entire "stage" can be clicked with a touch and when it happens (it's actually not easy to

How to upload FILE_URI using Google Drive API: Insert File

别来无恙 提交于 2019-12-30 05:05:48
问题 On Android, I'm trying to upload the output from Cordova/Phonegap getPicture() using Google Drive API: Insert File. Is there a way to do this using the FILE_URI instead of DATA_URL (base64)? I tried Camera.DestinationType.DATA_URL first, but it didn't return Base64 data like it was supposed to, it just returned the same thing as FILE_URI. So now I'm trying to figure out how to pass FILE_URI to Google Drive Insert File (which takes Base64). Is there a way to convert FILE_URI to Base64? Cordova

Open ServiceMode menu programmatically in Android

爱⌒轻易说出口 提交于 2019-12-30 04:39:07
问题 How to open the Android ServiceMode menu programmatically on Samsung Phones ? Manually, I can do it by dialing the ussd code *#0011#. 回答1: This was a challenge and I've been a few hours looking for a solution. But i am afraid i don't have good news. 1. First attemp, Intent.ACTION_DIAL Is true that in the beginning, it was possible to directly call USSD codes from an app (using the intent Intent.ACTION_DIAL), and even from a website, just using the "tel:" schema. That opens the dialer, an puts

Facebook Oauth Login With Jquery Mobile #_=_

∥☆過路亽.° 提交于 2019-12-30 03:22:31
问题 When I try to login using Facebook Oauth all goes ok until the part the url redirects with something like this: http://mywebsite.com/facebookoauthbackpage.php#_=_ I'm using jQuery Mobile on my pages and I think that # = is the problem. The page stays blank and nothing happens. If I remove the "# = " all goes alright and the action happens normally. Does anyone have any idea on how to fix that? I've notice that removing the "# = " from the Facebook will not be possible anymore, so maybe

HTML5 Game (Canvas) - UI Techniques?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-30 03:16:08
问题 I'm in the process of building a JavaScript / HTML5 game (using Canvas) for mobile (Android / iPhone/ WebOS) with PhoneGap. I'm currently trying to design out how the UI and playing board should be built and how they should interact but I'm not sure what the best solution is. Here's what I can think of - Build the UI right into the canvas using things like drawImage and fillText Build parts of the UI outside of the canvas using regular DOM objects and then float a div over the canvas when UI

Web Design for Smart Phone - Pixel Size

为君一笑 提交于 2019-12-30 03:06:17
问题 I need someone to help clarify my understanding regarding pixel size on new phones with high density screens. Since, it's throwing a curve ball into my web design. My initial understanding about smartphones was that the pixel size was roughly 480 x 320, which made designing easy, since pixels were still the same pixels. However, some smart phones are double (or more) than this. I believe the iPhone is truly double at 960 x 640. My Galaxy Nexus is 1280 x 720. Now, this works just fine when

Get position data from mobile browser

北城余情 提交于 2019-12-30 00:06:12
问题 I am developing a web app that will be hit frequently by mobile browsers. I am wondering if there is a way to get enough information from the browser request to lookup position data (triangulation or GPS) Not from the request directly, of course. A colleague suggested there some carriers supply a unique identifier in the request header that can be sent to a web service exposed by said provider that will return position data if the customer has enabled that. Can anyone point me in the right