RE: [android-developers] Re: how can I check my app stopped by which home key or other apps

2010-08-10 Thread THENG Rudy (Yanto)
Hi,

I just found this method.. onUserLeaveHint()
Try to override it...

Regards,
Rudy



> -Original Message-
> From: android-developers@googlegroups.com [mailto:android-
> develop...@googlegroups.com] On Behalf Of optimusgeek
> Sent: Tuesday, August 10, 2010 8:32 AM
> To: Android Developers
> Subject: [android-developers] Re: how can I check my app stopped by which
> home key or other apps
> 
> Thank you all.
> Here is what I'm doing.
> I'd like to register a notification as 'ongoing' when my app being
> invisible by only Home key.
> but on second thought, It's meaningless as your opinions.
> There's not different one app between home screen from application
> aspect.
> I do not notice that It's all about home key eventually...
> and I know I can't control home key.
> I think it's unnecessary worry.
> 
> thanks guys.
> 
> 
> 
> 
> On 8월9일, 오후10시57분, TreKing  wrote:
> > 2010/8/8 optimusgeek 
> >
> > > I mean I want to do something when my app going to be stopped.
> >
> > Yes, I understand that. The question is why do you care HOW you're
> stopped?
> > Why does being stopped by one app versus the Home screen (which as Bob
> > explains is really the same thing) make a difference to you?
> > Why do you think you need two different code paths for these cases?
> >
> > Explain this and you'll probably get more help.
> >
> > 
> ---­--
> > 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


Re: [android-developers] Re: how can I check my app stopped by which home key or other apps

2010-08-09 Thread TreKing
2010/8/8 optimusgeek 

> I mean I want to do something when my app going to be stopped.


Yes, I understand that. The question is why do you care HOW you're stopped?
Why does being stopped by one app versus the Home screen (which as Bob
explains is really the same thing) make a difference to you?
Why do you think you need two different code paths for these cases?

Explain this and you'll probably get more help.

-
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

Re: [android-developers] Re: how can I check my app stopped by which home key or other apps

2010-08-08 Thread Frank Weiss
Can you try to use the correct terminology. The onstop method is for an
activity. If you can get that, maybe you can try to answer treking's
question.

On Aug 8, 2010 8:59 PM, "optimusgeek"  wrote:

I mean I want to do something when my app going to be stopped.(not
destroyed)
and the situations are two cases as I mentioned.
#1 pressing home key
#2 another app comes to front like an incoming call.
both cases have same process onPause() -> onStop()
so I cannot put some codes in onPause or onStop method.
because I want to put different codes by the situation(#1 or #2)

On 8월9일, 오후12시09분, TreKing  wrote:

> On Sun, Aug 8, 2010 at 9:49 PM, optimusgeek  wrote:
> > Is there any way to ...
> TreKing  - Chicago

> transit tracking app for Android-powered devices

-- 
You received this message because you are su...

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