use onkeylistener check if keycode matches back.... start ur service here & finish.... the rest i'm not sure on how to do... n u shd wait till u get a reply..
On Wed, Jun 3, 2009 at 8:10 PM, sheik <sheik...@gmail.com> wrote: > > > > Hello android developers.. > > i am not much familiar with service's and use of aidl...here is the > scenario i look to put fwd Kindly help on it...Working on android sdk > 1.1 > > 1) Activity is launched and location updates are taken and they are > print on the activity using textview.. > 2)On click of BACK (arrow key on dev) .. activity goes to destroy mode > (which i dont want)...and call the service with dispatches the > notification with the icon ..Still the location updates are ON.. > 3)When i click the notification icon..i must get back the same > activity which was getting the updates and updated values printed on > the text view... > > I wonder is this possible .. i have gone through some apps such as My > Tracks, Buddy Runner...which works well on this scenario... > > I hope some android developers give a favorable reply and help in > solving the problem... > > I referred the LocalService and LocalServiceController examples from > API demo ..but the activity is destroyed on the click of BACK ... > > Kindly help on this... > Regards, > Sheik > ---------- Forwarded message ---------- > From: sheik <sheik...@gmail.com> > Date: Jun 3, 6:17 pm > Subject: Activity to service on click of BACK (arrow key on dev) and > bring the same activity on click of notification > To: Android Developers > > > Hello android developers.. > > i am not much familiar with service's and use of aidl...here is the > scenario i look to put fwd Kindly help on it...Working on android sdk > 1.1 > > 1) Activity is launched and location updates are taken and they are > print on the activity using textview.. > 2)On click of BACK (arrow key on dev) .. activity goes to destroy mode > (which i dont want)...and call the service with dispatches the > notification with the icon ..Still the location updates are ON.. > 3)When i click the notification icon..i must get back the same > activity which was getting the updates and updated values printed on > the text view... > > I wonder is this possible .. i have gone through some apps such as My > Tracks, Buddy Runner...which works well on this scenario... > > I hope some android developers give a favorable reply and help in > solving the problem... > > I referred the LocalService and LocalServiceController examples from > API demo ..but the activity is destroyed on the click of BACK ... > > Kindly help on this... > Regards, > Sheik > > > > -- Regards, Sujay H. L. Mencken <http://www.brainyquote.com/quotes/authors/h/h_l_mencken.html> - "Nobody ever went broke underestimating the taste of the American public." --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---