[android-developers] Re: Fwd: Activity to service on click of BACK (arrow key on dev) and bring the same activity on click of notification

2009-06-08 Thread sheik
Thanks for ur reply... i took some time for myself to understand the service behaviour...finally i have made the location updates in the service and use db to get details and printing on the activity..i used the notification on the destroy of activity..that is clicking the back button... and

[android-developers] Re: Fwd: Activity to service on click of BACK (arrow key on dev) and bring the same activity on click of notification

2009-06-05 Thread Sujay Krishna Suresh
is it workin dude??? On Thu, Jun 4, 2009 at 9:17 PM, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: dude, try this: Notification n=new Notification(); n.setLatestEventInfo(context, contentTitle, contentText, contentIntent); the contentIntent is the target intent tha'll b

[android-developers] Re: Fwd: Activity to service on click of BACK (arrow key on dev) and bring the same activity on click of notification

2009-06-04 Thread sheik
Hi... Is it possible for an activity to avoid destroy mode ... and make activity in pause mode instead... Kindly let me know.. thanks regards sheik On Jun 3, 7:45 pm, Sujay Krishna Suresh sujay.coold...@gmail.com wrote: use onkeylistener check if keycode matches back start ur service

[android-developers] Re: Fwd: Activity to service on click of BACK (arrow key on dev) and bring the same activity on click of notification

2009-06-04 Thread Sujay Krishna Suresh
i don't think its possible as of now... its handled by the os... so i guess it might not be possible in the future as well... but i hv heard of DONT_KILL_APP somewhere... i think its a flag... try searchin for it On Thu, Jun 4, 2009 at 11:45 AM, sheik sheik...@gmail.com wrote: Hi... Is

[android-developers] Re: Fwd: Activity to service on click of BACK (arrow key on dev) and bring the same activity on click of notification

2009-06-04 Thread sheik
i tried ur method by considering keyevent...but i want the activity to go background ... not able to call onpause method in the keyvent method.. Kindly suggest on the above written scenario...just like how it works on MyTracks and BuddyRunner.. Hope my explaintion on the scenario is clear..if

[android-developers] Re: Fwd: Activity to service on click of BACK (arrow key on dev) and bring the same activity on click of notification

2009-06-04 Thread Saurav Mukherjee
u dont need to call on pause... if u ve overridden the function in ur activity, it'll b executed... u can use persistence (db or preferences) to save stuffs On Thu, Jun 4, 2009 at 8:53 PM, sheik sheik...@gmail.com wrote: i tried ur method by considering keyevent...but i want the activity

[android-developers] Re: Fwd: Activity to service on click of BACK (arrow key on dev) and bring the same activity on click of notification

2009-06-04 Thread Saurav Mukherjee
@sujay dude, try Notification n=new Notification(); n.setLatestEventInfo(context, contentTitle, contentText, contentIntent); the contentIntent is the target intent... jus tell me if it works out for u. cheer! On Thu, Jun 4, 2009 at 8:53 PM, sheik sheik...@gmail.com wrote: i tried ur

[android-developers] Re: Fwd: Activity to service on click of BACK (arrow key on dev) and bring the same activity on click of notification

2009-06-04 Thread Saurav Mukherjee
dude, try this: Notification n=new Notification(); n.setLatestEventInfo(context, contentTitle, contentText, contentIntent); the contentIntent is the target intent tha'll b called. cheers! On Thu, Jun 4, 2009 at 9:03 PM, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: u dont need