once you got a(or 10, 20,...) piece of data, post a message or runnable by Handler. Then update the UI in the method handleMessage() of Handler or run() of the Runnable.
On Aug 16, 9:15 am, gml <[email protected]> wrote: > I forgot to mention that I am using AsyncTask. > Thanks > > On Aug 13, 8:38 pm, nadam <[email protected]> wrote:> Use > AsyncTask.http://developer.android.com/reference/android/os/AsyncTask.html > > > On 12 Aug, 06:21, gml <[email protected]> wrote: > > > > Hi guys, > > > > I have simple application that loading the data needed upon the > > >Activitystarts which it consume about 2-3 minutes. Then, the UI > > > displayed after that long process. > > > > Present Scenario: > > > 1) click the app tostart. > > > 2) progress bar pop-up while doing the data loading in my localDB > > > (about 2-3mins). > > > 3) progress bar closes, UIstartto load and display the data from > > > localDB. > > > > Problem: > > > Want tostartand load/display the UI immediately while loading the > > > data into localDB but display it one by one. > > > But don't have idea on how to implement it. > > > > Expected Scenario: > > > 1) click the app tostart. then immediately load and display the UI. > > > 2) on the background, get the data and load to localDB while > > > displaying it one by one to UI. > > > > Thanks and regards, > > > > Eros > > > Japan -- 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

