Android. Fragment getActivity() sometimes returns null
In developer console error reports sometimes I see reports with NPE issue. I do not understand what is wrong with my code. On … Read more
In developer console error reports sometimes I see reports with NPE issue. I do not understand what is wrong with my code. On … Read more
I am currently using in my application a listview that need maybe one second to be displayed. What I currently do is using … Read more
I have investigated this problem for months now, came up with different solutions to it, which I am not happy with since they … Read more
I’m trying to run two AsyncTasks at the same time. (Platform is Android 1.5, HTC Hero.) However, only the first gets executed. Here’s … Read more
I am getting a warning in my code that states: This AsyncTask class should be static or leaks might occur (anonymous android.os.AsyncTask) The complete warning is: This AsyncTask class should be static or leaks might occur (anonymous android.os.AsyncTask) A static field will leak contexts. Non-static … Read more
I have this two classes. My main Activity and the one that extends the AsyncTask, Now in my main Activity I need to … Read more
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be … Read more
I have a slider that can be pulled up and then it shows a map. I can move the slider up and down … Read more
In the viewpoint of running code in the UI thread, is there any difference between: MainActivity.this.runOnUiThread(new Runnable() { public void run() { Log.d(“UI … Read more
I was reading about AsyncTask, and I tried the simple program below. But it does not seem to work. How can I make … Read more