RE: [android-developers] Re: how can I check my app stopped by which home key or other apps
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 treking...@gmail.com wrote: 2010/8/8 optimusgeek choongb...@gmail.com 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 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
FW: [android-developers] Re: how can I check my app stopped by which home key or other apps
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 treking...@gmail.com wrote: 2010/8/8 optimusgeek choongb...@gmail.com 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 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] Re: how can I check my app stopped by which home key or other apps
Oh, good! It's very helpful. thank you. On 8월10일, 오후5시31분, THENG Rudy (Yanto) r.th...@oberthur.com wrote: 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 treking...@gmail.com wrote: 2010/8/8 optimusgeek choongb...@gmail.com 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 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] Re: how can I check my app stopped by which home key or other apps
They are NOT two different situations. That's the source of your confusion. They are both a different app being in front of your activity. You mention the call screen and the launcher, but others are possible as well. Once your activity is no longer visible, onStop() is called. If it later becomes visible, and the instance hasn't been destroyed, then onRestart() will be called. This sequence occurs regardless of just which activity came to the front - and you're not allowed to know about activities of other applications for security reasons. The launcher is just pretty much just another application. The home button just sends the intent that launches it. You can supply a different application for that intent, just like you can supply a different application for any intent. (Not that it's always a good idea). So you don't know -- and I can't see why you'd care -- whether it was the Launcher that came in front and triggered onStop(). But what you COULD do is write your own launcher, if you really wanted to know if the home key was pressed for some reason. I'm not sure you could find out about it until later, though. Maybe. But what would you do with that information? You're being stopped, after all. You don't get to run any UI or anything. On Aug 8, 8:59 pm, optimusgeek choongb...@gmail.com 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 treking...@gmail.com wrote: On Sun, Aug 8, 2010 at 9:49 PM, optimusgeek choongb...@gmail.com wrote: Is there any way to find out? What difference does it make how your app is stopped? --- --- 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
[android-developers] Re: how can I check my app stopped by which home key or other apps
I should add that while you can supply your own launcher -- you can't force the user to use it! Why don't you give up on that idea, and tell us WHY you believe you want different behavior in those cases. Perhaps we can suggest alternatives that are more in keeping with the Android model. On Aug 9, 12:25 am, Bob Kerns r...@acm.org wrote: But what you COULD do is write your own launcher, if you really wanted to know if the home key was pressed for some reason. I'm not sure you could find out about it until later, though. Maybe. But what would you do with that information? You're being stopped, after all. You don't get to run any UI or anything. -- 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/8/8 optimusgeek choongb...@gmail.com 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 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
[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 treking...@gmail.com wrote: 2010/8/8 optimusgeek choongb...@gmail.com 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 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
[android-developers] Re: how can I check my app stopped by which home key or other apps
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 treking...@gmail.com wrote: On Sun, Aug 8, 2010 at 9:49 PM, optimusgeek choongb...@gmail.com wrote: Is there any way to find out? What difference does it make how your app is stopped? ----- 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
Re: [android-developers] Re: how can I check my app stopped by which home key or other apps
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 choongb...@gmail.com 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 treking...@gmail.com wrote: On Sun, Aug 8, 2010 at 9:49 PM, optimusgeek choongb...@gmail.com wrote: Is there any way to ... TreKing http://sites.google.com/site/rezmobileapps/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