HI San and Flying coder,
onUserLeaveHint is called whenever the activity is supposed to be
paused due to user action.
Whether it Home Or Navigation to another activity screen( caused due
to user action).
Except for incoming calls or SMS.
Thanks
Sumanth
On Aug 31, 4:15 pm, San
Hi Mark,
In public boolean onKeyDown(int keyCode, KeyEvent event) , I am able
to intercept event.KEYCODE_BACK.
why I am not able to intercept event.KEYCODE_HOME??
Can you please throw some light on this?
Thanks,
AJ
On Aug 31, 2:35 pm, Mark Murphy mmur...@commonsware.com wrote:
On Tue, Aug
On Tue, Aug 31, 2010 at 6:42 AM, AJ ajeet.invinci...@gmail.com wrote:
In public boolean onKeyDown(int keyCode, KeyEvent event) , I am able
to intercept event.KEYCODE_BACK.
why I am not able to intercept event.KEYCODE_HOME??
Can you please throw some light on this?
Because it's not allowed.
Thanks Mark :)
On Aug 31, 3:46 pm, Mark Murphy mmur...@commonsware.com wrote:
On Tue, Aug 31, 2010 at 6:42 AM, AJ ajeet.invinci...@gmail.com wrote:
In public boolean onKeyDown(int keyCode, KeyEvent event) , I am able
to intercept event.KEYCODE_BACK.
why I am not able to intercept
MARK,
I want To know because, I am implementing licensing,
and I want to check when the user tries to launch the app each time ,
I want it to go thru the licensing.
hope I am clear
Thanks
Sumanth
On Aug 31, 4:39 am, AJ ajeet.invinci...@gmail.com wrote:
Thanks Mark :)
On Aug 31, 3:46 pm, Mark
On Tue, Aug 31, 2010 at 1:26 PM, JAVANAND javandroid@gmail.com wrote:
I want To know because, I am implementing licensing,
and I want to check when the user tries to launch the app each time ,
I want it to go thru the licensing.
hope I am clear
Not especially.
You cannot detect the HOME
When the user launches the app from the home screen, the activity
given in the manifest is started. I suppose the licensing check should
be done in that activity's lifecycle methods.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to
I agree with Frank Mark: you don't need to detect the HOME key to
do what you want. Simply doing the check as part of the activity life
cycle should be sufficient.
However, I think you can detect when the HOME key is pressed by
overriding onUserLeaveHint. I haven't yet had a reason to use it,
You are right Flying Code.
I checked this somedays before. onUserLeaveHint() getting called as
soon the Home key is pressed.
I checked other interruptions like pressing search key, incoming call
etc.
But this method only called when i press the HOME key.
(I tested on a 2.1 phone)
On Aug 31, 3:49
9 matches
Mail list logo