I don't think you want to do that -- you pretty much should never have the alarm manager start an activity. It should probably be given a PendingIntent for a broadcast, which is delivered to your app, and it can decide what to do based on its state. For example this could to either put up a status bar notification if the activity is not currently resumed, or launch the appropriate UI from that activity if it is resumed.
On Tue, Jun 30, 2009 at 1:41 PM, Sharmila <[email protected]> wrote: > > Hi, > I am using Alarm.java in the sample codes.When I press Repeating > Alarm,I go to image capture.java.I am using Pending intent.getActivity > which is same as startActivity.I want to come back to Alarm.java when > I am done with Image capture.Does PendingIntent has anything > equivalent to startActivityForResult so that I can get back to my > previous activity? > > > -- 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 -~----------~----~----~----~------~----~------~--~---

