Questions tagged as 'android'

1
answer

Prevent multiple clicks on Android

I have a user registration screen where I avoid the possibility of multiple clicks to the button to register through the method View.setEnabled () . I proceed as follows: in the method onClick () , from the View.OnClickListener interface,...
asked by 13.05.2015 / 21:03
1
answer

Google api v2, I already have the key, but provided by third parties, how to enable without SHA-1?

I have a key to enable Google Maps V2 on android, I did everything I had to do in Manifest and Gradle, when I run the application, the Google-named Fragment appears, but it does not loads nothing, it's in Beige light color, with nothing on the...
asked by 14.05.2015 / 02:22
1
answer

Downloaded files stored in the database

Is there any way to download documents stored in a mysql database, in my aplicativo híbrido cordova ?     
asked by 19.05.2015 / 17:39
1
answer

Android Studio does not display correct English characters

My project is not displaying any Portuguese characters correctly. When I display a string as "no", it displays "no." The strange thing is that when I call the direct string of res/string.xml , it works correctly. Anyone have any idea wh...
asked by 21.05.2015 / 18:39
1
answer

Prevent undue access in the RESTful API

I'm developing a RESTful API with Laravel PHP that will be consumed by an Android application, the API is consumed only by the application, there is no web system. I am learning RESTful, and during the learning I was left with a doubt. I get...
asked by 21.05.2015 / 10:03
1
answer

Hanging the phone in the app only

I would like to know how to lock the cell phone via code to stay in the application only, when pressing back and home on the device do nothing, then pressing a button it quits the application. Can you do this?     
asked by 10.02.2015 / 00:46
1
answer

Manipulate onPostExecute from another Activity

I have both classes below: DataLoad.java public class DataLoad extends Activity { SQLiteDatabase mDatabase; Session session; public static String jsonString = ""; @Override protected void onCreate(Bundle savedInstanceS...
asked by 15.01.2015 / 18:24
1
answer

Login facebook opening alone in android application

I'm creating an android application that signs in with facebook. This is already working, but something is happening that I can not solve. According to the examples of the facebook documentation itself, the code that makes the calls to facebo...
asked by 20.04.2015 / 19:51
1
answer

___ ___ erkimt How to minimize the reduction of compatibiliade due to the use of permissions? ______ qstntxt ___

In my new version when putting these permissions in Manifest, I had a reduction of compatibility with several devices, would I have some way to verify this or who does not support these permissions will be left out anyway? %pre%     

______ azszpr45473 ___

One of the reasons for this problem is that your app requires GPS (ACCESS_FINE_LOCATION) to accurately access location. That is, if a device does not have GPS, it is excluded from the compatibility list.

One solution is to use ACCESS_COARSE_LOCATION, which gets the location over the network. This form is less precise, but works for some applications (I do not know if this is your case).

Another way is to add the following to your %code% :

%pre%

Or:

%pre%

This informs that even your app needing GPS, you treat the situation for cases where there is not. Then, non-GPS devices can install your app.

Another detail that limits a lot of compatibility is the minimum version of Android ( %code% ) required to run the app. If the minimum version is very recent, you will probably delete many devices from the compatibility list.

For example, if the minimum version is API 14, Android 4.0, you can reach up to 90.4% of devices.

12/2014 Reference.

    
___

In my new version when putting these permissions in Manifest, I had a reduction of compatibility with several devices, would I have some way to verify this or who does not support these permissions will be left out anyway? <uses-permission a...
asked by 30.12.2014 / 00:46
1
answer

Place gallery with text

I'm trying to put a gallery of products in my app, and I wanted the image and the text below, I'm using the viewpager, but the text is on the side, and the images are far from each other, so there's a imagen wanted to appear at least 2 with the...
asked by 09.01.2015 / 14:41