Re: [android-developers] Starting an intent, then pressing the back button, how to resume the Handler that was running?

2011-03-07 Thread Gökalp Kuşçu
moveTaskToBack(true); ??

2011/3/6 TreKing treking...@gmail.com

 On Sat, Mar 5, 2011 at 7:26 PM, Chris Stewart cstewart...@gmail.comwrote:

 I tried onResume but that was even called when I visited the initial
 Activity the first time, so I'm guessing there's something else I should be
 doing.


 I usually go with onStart() / onStop() for things that need to happen while
 the user is actively paying attention.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices


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




-- 
A. Gökalp KUŞÇU
http://www.gokalpkuscu.com

gokalpkuscu - linkedin http://tr.linkedin.com/in/gokalpkuscu
gokalpkuscu - facebook http://www.facebook.com/gokalpkuscu
gokalpkuscu - google buzz profilhttp://www.google.com/profiles/gokalpkuscu
gokalpkuscu - osum profil http://osum.sun.com/profile/Gokalp

Before you walk the walk, you have to learn to talk the talk ~ Spring in
Action

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

Re: [android-developers] Starting an intent, then pressing the back button, how to resume the Handler that was running?

2011-03-06 Thread Chris Stewart
I was mistakenly using onCreate to restart the background process, instead
of onStart.  Thanks for the refresher. :)

--
Chris Stewart
http://chriswstewart.com



On Sat, Mar 5, 2011 at 8:29 PM, TreKing treking...@gmail.com wrote:

 On Sat, Mar 5, 2011 at 7:26 PM, Chris Stewart cstewart...@gmail.comwrote:

 I tried onResume but that was even called when I visited the initial
 Activity the first time, so I'm guessing there's something else I should be
 doing.


 I usually go with onStart() / onStop() for things that need to happen while
 the user is actively paying attention.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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

-- 
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] Starting an intent, then pressing the back button, how to resume the Handler that was running?

2011-03-05 Thread Chris Stewart
Here's the scenario:

- On an Activity I have a Handler that is posting a message every 5 seconds.
- If I click on an item in my ListView, for the above Activity, it starts a
new Activity by way of Intent.
- Clicking back on the phone will take me back to the previous Activity but
my Handler isn't running.  However, all of the data is still present on my
ListView.

What method do I need to implement to start that process up again?  I tried
onResume but that was even called when I visited the initial Activity the
first time, so I'm guessing there's something else I should be doing.

--
Chris Stewart
http://chriswstewart.com

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

Re: [android-developers] Starting an intent, then pressing the back button, how to resume the Handler that was running?

2011-03-05 Thread TreKing
On Sat, Mar 5, 2011 at 7:26 PM, Chris Stewart cstewart...@gmail.com wrote:

 I tried onResume but that was even called when I visited the initial
 Activity the first time, so I'm guessing there's something else I should be
 doing.


I usually go with onStart() / onStop() for things that need to happen while
the user is actively paying attention.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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