It's so simple:
There r two best ways:
1. Create a class extending AsyncTask and overrides it's doBackgroud() and 
and on postExecute() methods
    and write your code of fetching data from server in doBackground() mtd 
and onPostExecute() write ur code of db updation and start a new activity;

2.Another ways is the use of traditional java threading;
just start a new thread and write your code of fetching data from server and 
code of db updation
in run() mtd and after that code use Activity's 
runOnUiThread() mtd to start new activirty

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to