Well if you need it, write your own code to do it. They are your apps, right? You can have a way for them to interact to have one ask the other to kill itself -- send a broadcast to it, have a service to bind to to send a command to it, or heck even just have an instrumentation test case that does a self-murder and run that between every real test case.
As far as why this doesn't work prior to 2.2... I thought from your message that you had it working there. If not, I don't know what to say -- the API was available, and a number of apps use it. I would suggest looking in the log when you install your app to see if there are any messages about you not being granted the permission, etc. (Note from looking at your manifest -- applications have never been able to get the INJECT_EVENT permission, so there is no reason to request it.) On Sun, Aug 8, 2010 at 5:06 AM, Fabrizio Giudici < [email protected]> wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 8/7/10 19:59 , Dianne Hackborn wrote: > > Sorry you can't do this. Apps now can only kill processes of > > other apps that are in the background. > > Too bad. This makes functional testing more complex and longer than it > should... :-( > But why doesn't it work in older emulator versions than 2.2? > > - -- > Fabrizio Giudici - Java Architect, Project Manager > Tidalwave s.a.s. - "We make Java work. Everywhere." > java.net/blog/fabriziogiudici - www.tidalwave.it/people > [email protected] > -----BEGIN PGP SIGNATURE----- > Version: GnuPG/MacGPG2 v2.0.14 (Darwin) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAkxend8ACgkQeDweFqgUGxdY8wCfdS/DjA7VIg6NRP3HdjAonvIJ > 6CsAn0udiHGHk+MEUF9Szr4zGhsE+a5M > =DiZF > -----END PGP SIGNATURE----- > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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

