[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 this is working well and almost clears my doubt abt the
question i had asked earlier on this forum...

thanks for the suggestions..

keep the good work on..



On Jun 5, 11:21 am, Sujay Krishna Suresh sujay.coold...@gmail.com
wrote:
 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 called.
  cheers!

  On Thu, Jun 4, 2009 at 9:03 PM, Saurav Mukherjee 
  to.saurav.mukher...@gmail.com wrote:

  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 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 not let me know ..i
  shall brief again ...

  thanks for the suggestion and replying back..
  regards,
  sheik

  On Jun 4, 11:53 am, Sujay Krishna Suresh sujay.coold...@gmail.com
  wrote:
   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 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 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 

[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 called.
 cheers!

 On Thu, Jun 4, 2009 at 9:03 PM, Saurav Mukherjee 
 to.saurav.mukher...@gmail.com wrote:

 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 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 not let me know ..i
 shall brief again ...


 thanks for the suggestion and replying back..
 regards,
 sheik

 On Jun 4, 11:53 am, Sujay Krishna Suresh sujay.coold...@gmail.com
 wrote:
  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 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 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.
 
  --
  Regards,
  Sujay
  George Bernard Shaw
 http://www.brainyquote.com/quotes/authors/g/george_bernard_shaw.html
  - A government that robs Peter to pay Paul can always depend on the
  support of Paul.




 



-- 
Regards,
Sujay
H. L. Mencken http://www.brainyquote.com/quotes/authors/h/h_l_mencken.html
- Nobody ever went 

[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 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
-~--~~~~--~~--~--~---



[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 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 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.
 



-- 
Regards,
Sujay
George Bernard 
Shawhttp://www.brainyquote.com/quotes/authors/g/george_bernard_shaw.html
- A government that robs Peter to pay Paul can always depend on the
support of Paul.

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[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 not let me know ..i
shall brief again ...


thanks for the suggestion and replying back..
regards,
sheik

On Jun 4, 11:53 am, Sujay Krishna Suresh sujay.coold...@gmail.com
wrote:
 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 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 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.

 --
 Regards,
 Sujay
 George Bernard 
 Shawhttp://www.brainyquote.com/quotes/authors/g/george_bernard_shaw.html
 - A government that robs Peter to pay Paul can always depend on the
 support of Paul.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[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 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 not let me know ..i
 shall brief again ...


 thanks for the suggestion and replying back..
 regards,
 sheik

 On Jun 4, 11:53 am, Sujay Krishna Suresh sujay.coold...@gmail.com
 wrote:
  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 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 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.
 
  --
  Regards,
  Sujay
  George Bernard Shaw
 http://www.brainyquote.com/quotes/authors/g/george_bernard_shaw.html
  - A government that robs Peter to pay Paul can always depend on the
  support of Paul.
 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[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 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 not let me know ..i
 shall brief again ...


 thanks for the suggestion and replying back..
 regards,
 sheik

 On Jun 4, 11:53 am, Sujay Krishna Suresh sujay.coold...@gmail.com
 wrote:
  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 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 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.
 
  --
  Regards,
  Sujay
  George Bernard Shaw
 http://www.brainyquote.com/quotes/authors/g/george_bernard_shaw.html
  - A government that robs Peter to pay Paul can always depend on the
  support of Paul.
 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[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 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 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 not let me know ..i
 shall brief again ...


 thanks for the suggestion and replying back..
 regards,
 sheik

 On Jun 4, 11:53 am, Sujay Krishna Suresh sujay.coold...@gmail.com
 wrote:
  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 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 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.
 
  --
  Regards,
  Sujay
  George Bernard Shaw
 http://www.brainyquote.com/quotes/authors/g/george_bernard_shaw.html
  - A government that robs Peter to pay Paul can always depend on the
  support of Paul.
 



--~--~-~--~~~---~--~~
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