In my application I use an AsyncTask on start up of my Activity to fetch the ringtone of a particular contact.
I have a list that gets refreshed every 2 seconds via the Handler postDelayed() method. Every 2 seconds an AsyncTask is run that makes an HTTP GET request, turns the JSON into a list of objects, then
This is getting called in onCreate(), how can I speed up orientation switching? private void 开发者_如何学运维setupChartView(int position){
For some reason my onPostExecute() is not开发者_开发百科 called after my AsyncTask finishes. My class decleration:
I working on the app where I get the data from the server using rest call and add it to the view. I get all the initial data correctly. I use AsyncTask for doing it.
What I need to do is auto-register device if not already done and then start polling messages with the credentials I received through this registration.
I have the following code that I want to be able to loop every 30 seconds. MyLocation myLocation = new MyLocation();
I have a string that I want to update using AsyncTask class here is my code: public class MainActivity extends Activity{
This question already has answers here: AsyncTask threads never die (4 answers)开发者_如何学编程
I have written a home screen widget as an ImageView, ie. the code generates the whole widget and writes it to RemoteViews as a bitmap. On slower devices with low memory, such as my G1, it can take a c