[android-developers] Re: question about service and thread

2008-08-28 Thread april
Thanks. I found a useful tutorial to share with friends here: http://developerlife.com/tutorials/?p=290 April On Aug 26, 11:16 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > you need to create handler = new android.os.Handler() attached to the > current thread and use this function called

[android-developers] Re: question about service and thread

2008-08-28 Thread april
I am interested in " Having the service be in a whole 'nuther process", could you give me an example? Thanks! April On Aug 27, 5:13 am, Mark Murphy <[EMAIL PROTECTED]> wrote: > april wrote: > > I am doing a game, which needs to update server player's status. In my > > code , I first put those in

[android-developers] Re: question about service and thread

2008-08-27 Thread Mark Murphy
april wrote: > I am doing a game, which needs to update server player's status. In my > code , I first put those information into database. Then I used a > service to read the information from DB and send to server. > > Following are the document for sevice: > Note that services, like other appli

[android-developers] Re: question about service and thread

2008-08-26 Thread [EMAIL PROTECTED]
you need to create handler = new android.os.Handler() attached to the current thread and use this function called by your second thread. handler.post(new Runnable() { public void run() { current Activity = current thread => handler = n