Program home key

Shay

Well-Known Member
Licensed User
Longtime User
Hi

I wish to either the home key - once you click on it or better double click on it, instead of bringing the voice command app, it will run my app
how do I do it / and how to I catch the home key event
I tried If Keycode = KeyCodes.KEYCODE_HOME Then but it is going out from my app to the home screen

thanks
Shay
 

rbsoft

Active Member
Licensed User
Longtime User
The HOME button cannot be trapped.

Rolf
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
and can I change it's default app that attached to it?
The user can choose a different home screen application. You cannot do it programmatically.

also what about long back click?
You will need to use Activity_KeyPress and Activity_KeyUp with a timer to implement a long back click.
 
Upvote 0

Shay

Well-Known Member
Licensed User
Longtime User
how can I trap the back key if my app is running in background, without doing additional timer that will run every 100ms +-

also can I "program" 3 presses on home button?

b.t.w I did not manage to find a way to replace my home app - Galaxy S2
 
Upvote 0
Top