[android-developers] Re: Transferring control from Non UI thread to Ui Thread

2010-07-22 Thread Indicator Veritatis
Reading that should have clarified what the flag is really for, yes. But it is notable that it has little to do with the title of the thread. Come to think of it, the title had little to do with the message to begin with -- always a bad start. Starting a new task and transferring control are two d

[android-developers] Re: Transferring control from Non UI thread to Ui Thread

2010-07-22 Thread droidsan
Using flag FLAG_ACTIVITY_NEW_TASK is done as follows: Intent startIntent = new Intent(); // Initialize Intent to start your Activity implicitly or explicitly startIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); Regards, Droid-san On Jul 22, 7:53 am, Ajmer singh wrote: > Hi All > > When i try s

[android-developers] Re: Transferring control from Non UI thread to Ui Thread

2010-07-17 Thread JP
Try this: http://developer.android.com/intl/de/reference/android/app/Activity.html#runOnUiThread%28java.lang.Runnable%29 On Jul 17, 6:33 am, Ajmer singh wrote: > Hi > > I have started a service that works in background and i need to show a > dialog box containing "Yes" and "No" buttons.But when