[Q] [Dev] Can launch app if button keep pressed?

I'm evaluating if I can use an android phone to send alarm to some server. For this purpose the faster thing one can do is keep pressed a button (no matters what program is running), the question is if I can "override" pressing a button launch some app (or keep a background app that listen to button keep pressed). I have basic knowledge in android programming and like to know if at least it can be viable.

thanks in advance.

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by mossie.green
2 hours ago
Last post by sigurd.lemke
2 hours ago
Last post by allie04
4 hours ago
Last post by afton69
4 hours ago
Last post by carter.charles
2 hours ago
Last post by cschaden
2 hours ago
Last post by kohler.dedric
2 hours ago
Last post by brannon58
4 hours ago
Last post by jrenner
4 hours ago
I need HELP
Started by iokeefe
Last post by franco33
1 hour ago
Last post by vmclaughlin
1 hour ago
Last post by ucremin
3 hours ago