Re: [android-developers] Re: How can I know when the home button has been pressed?

2011-06-15 Thread eyasu getahun
Hello Kostya, Please help me if you have any idea where to decrypt the encrypted sms message. I have encrypted the sms under onclick method. But I don't know where to decrypt it at time of delivery to the receiver. I am using android emulator not on real phone devices. Please let me know your

[android-developers] Re: How can I know when the home button has been pressed?

2011-06-12 Thread Indicator Veritatis
O...K..., now that we have that clarification, is there anytime that the Activity will be paused or stopped (i.e. onPause(), onStop() called) when you DO want the timer thread to fire anyway? If the answer is 'no', then follow Kostya's suggestion, killing the thread in either onPause() or

Re: [android-developers] Re: How can I know when the home button has been pressed?

2011-06-12 Thread Kostya Vasilyev
I didn't say anything about a thread - in fact, my recommendation is to not use a thread just for scheduling stuff (although that Thread.sleep() can look so tempting...). As for Handler messages not firing when there aren't any activities on the screen - that's simply not true. The event loop

[android-developers] Re: How can I know when the home button has been pressed?

2011-06-11 Thread Droid
Thanks for your sensible suggestion. My sentence should have read 'I have a timer thread that should not bring an activity back to view after the home button has been pressed but it does.' On Jun 11, 1:02 am, Indicator Veritatis mej1...@yahoo.com wrote: @Droid- You do realize, I hope, since it

Re: [android-developers] Re: How can I know when the home button has been pressed?

2011-06-11 Thread Kostya Vasilyev
You don't need a thread *just* to schedule an event. There is an easier way, which should also fit your number of activities better. 1 - This needs to be done in the code for each of your activities. Use a base class, or a delegate object. 2 - In onCreate, make a Handler object with an anonymous

Re: [android-developers] Re: How can I know when the home button has been pressed?

2011-06-11 Thread Simon Jackson
But he probly needs to make a political irritation screen for the department of grope safety. With a casino link. -- 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

Re: [android-developers] Re: How can I know when the home button has been pressed?

2011-06-10 Thread TreKing
On Wed, Jun 8, 2011 at 2:01 AM, Andy Fung tsf...@gmail.com wrote: if(keyCode == KeyEvent.KEYCODE_HOME) http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_HOME This key is handled by the framework and is never delivered to applications. Please read the documentation,

[android-developers] Re: How can I know when the home button has been pressed?

2011-06-10 Thread Droid
My thread is a timer thread that brings my activity back to view after the home button is pressed. I need to cancel it when home button is pressed. (I have 10 activities and no idea in which activity the app was when the home button was pressed) On Jun 8, 1:23 pm, TreKing treking...@gmail.com

Re: [android-developers] Re: How can I know when the home button has been pressed?

2011-06-10 Thread TreKing
On Fri, Jun 10, 2011 at 10:52 AM, Droid rod...@gmail.com wrote: My thread is a timer thread that brings my activity back to view after the home button is pressed. I need to cancel it when home button is pressed. Let me get this straight - I run your app then press Home to do something else,

Re: [android-developers] Re: How can I know when the home button has been pressed?

2011-06-10 Thread rich friedel
To add to that you are also saying that while using your app I might have to go back through 9 activities to get to my home screen??? Then on top of that you want to disable the home button, my only means of NOT going through 9 potential activities *obviously I could also pull the battery* You

Re: [android-developers] Re: How can I know when the home button has been pressed?

2011-06-10 Thread Kostya Vasilyev
No sense pulling the battery if the application also intercepts boot_completed :) 2011/6/10 rich friedel rich.frie...@gmail.com To add to that you are also saying that while using your app I might have to go back through 9 activities to get to my home screen??? Then on top of that you want

Re: [android-developers] Re: How can I know when the home button has been pressed?

2011-06-10 Thread rich friedel
Argggh You sir are evil LOL :) -- 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] Re: How can I know when the home button has been pressed?

2011-06-10 Thread Indicator Veritatis
@Droid- You do realize, I hope, since it is the level of logic that should be easily expected of any programmer, that what you wrote here makes no sense. If, after all, on the one hand, My thread is a timer thread that brings my activity back to view after the home button is pressed. then no, it

[android-developers] Re: How can I know when the home button has been pressed?

2011-06-09 Thread Andy Fung
@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if(keyCode == KeyEvent.KEYCODE_BACK) { onBackPressed(); return true; } if(keyCode == KeyEvent.KEYCODE_HOME) {