Lee - I see you posted this back on 11/6. I'm seeing the same behavior and I'm curious if you have discovered a work around to this issue.
Eric On Nov 6, 2:23 am, Lee <[email protected]> wrote: > http://code.google.com/p/android/issues/detail?id=4536 > > Feel free to add details :-) > > Lee > > On Nov 6, 10:00 am, Lee <[email protected]> wrote: > > > > > Thanks for the confirmation, I'll put in a bug report. > > > Lee > > > On Nov 5, 3:48 am, "[email protected]" <[email protected]> wrote: > > > > same problem here. > > > But it works fine in 1.5. > > > It will delay a few seconds to launch a new activity both in 1.6 & > > > 2.0. > > > > any ideas? > > > > On Oct 27, 7:07 pm, Lee <[email protected]> wrote: > > > > > Ihaveaservicethat sometimes starts applications. > > > > > The problem is: if the *previous app* (any app) was recently > > > > exited via the home key, then the following message > > > > appears in the log: > > > > > ActivityManager:Activitystartrequestfrom 10024stopped > > > > > And there's then around a 5 second delay before the target > > > > app (any) is launched. > > > > > If the previous app was exited with the back key, there's > > > > no problem. > > > > > If the previous app exited more than a few second ago, > > > > no problem. > > > > > The same also occurs with a broadcast receiver (which > > > > also requires the NEW_TASK intent flag to launch anactivity). > > > > > I don't know if the delay was there in 1.5, but I'm > > > > assuming not since I can't find the error message in > > > > the 1.5 source code. > > > > > Launch code is below. > > > > > A 5 second delay is really ruinous for my application, > > > > a hint, solution or workaround would be great if anyone has > > > > ideas. > > > > > TIA, > > > > > Lee > > > > > Intent intent = new Intent( Intent.ACTION_MAIN ); > > > > intent.addCategory( Intent.CATEGORY_LAUNCHER ); > > > > > intent.setComponent( > > > > new ComponentName( > > > > pkg, cls > > > > ) > > > > ); > > > > > intent.addFlags( Intent.FLAG_ACTIVITY_NEW_TASK ); > > > > intent.addFlags( Intent.FLAG_FROM_BACKGROUND); > > > > > //I've tried every conceivable combination of other > > > > // Intent flags here > > > > > startActivity( intent ); -- 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

