Questions tagged as 'android'

2
answers

Error updating Java

A default notification appeared saying that there was a new Java update available, so I decided to upgrade. After the update I can not run my applications in Eclipse and the following message appears: Imports:ClassJoinimportandroid.app.Activ...
asked by 21.07.2018 / 21:52
3
answers

Is it safe to keep the context of an application in a Singleton?

I have the custom of keeping the context of an Android application saved within a Singleton as follows: public class Global { private static Global instance; private Context context; public Global() { } public static Glob...
asked by 05.03.2015 / 19:31
1
answer

How to exclude published apk in Google Play

Hello, I developed a game on GameMaker and I posted it on Google Play in the "For the whole family" category but this fact caused AdMob advertising to stop appearing in the game. There was no explanation for this fact in qualifying for this appl...
asked by 11.05.2017 / 05:52
2
answers

Mount screen on Android

I'm developing an application in android and I'm in a part that needs to put many items on the screen and so that it does not get too messy, I thought of putting together a screen with the style of the image that is below Selecting the it...
asked by 01.04.2014 / 04:11
3
answers

Catch latitude longitude Android - Location == null

I'm having trouble catching latitude and longitude on Android. Using this function, the "location" always returns "null". public void onCreate() { LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVIC...
asked by 30.01.2014 / 19:08
1
answer

Why do the app files remain after the uninstall?

I was reading about storage on Android, I realized that there is the internal of the app (/ data / data / package / files) and the external one (which needs permission). On the external, we have public and private (Android / data / package /...
asked by 22.02.2018 / 17:16
2
answers

Difference between arrays in Java

What's wrong with Android not setting the size of the array? I have seen in several places that this should be started with a default value. What is the internal difference of doing this: String[] array1 = new String[99]{}; Or this S...
asked by 24.03.2018 / 17:34
2
answers

The onDataChange (), in addListenerForSingleValueEvent (), only runs after my method returns

I'm trying to check if a given email exists, with android using firebase I'm doing it this way: public boolean existeEmail(String email) { final boolean[] retorno = new boolean[1]; final DatabaseReference databaseArtists = FirebaseDat...
asked by 04.08.2018 / 16:49
1
answer

Import already populated sqlite database

I'm making an app need to do only queries on a database. As this is a very large amount of data, I think it would be counterproductive to feed this database using an insertOrThrow for each item in a table. I do not know the best way to do this...
asked by 17.09.2015 / 23:52
1
answer

How do I get results from an asynchronous task on Android?

I'm trying to retrieve the value of my API using .get() but it's always falling into Exception, I believe I'm not doing it correctly. private static String APIAddress = "http://10.0.2.2/APIs/LOGINServer/server.php"; @Override p...
asked by 26.10.2014 / 02:02