acomminos / Plumble-Legacy

Plumble- an enhanced Mumble app for Android.
https://play.google.com/store/apps/details?id=com.morlunk.mumbleclient
Other
58 stars 16 forks source link

ptt hardware buttons not working when screen is off #58

Open kubbur opened 11 years ago

kubbur commented 11 years ago

Works when screen is on, not when screen is off Phone model n7100, stock (unrooted)

Zuko commented 11 years ago

Its normal 21 sty 2013 20:56, "kubbur" notifications@github.com napisał(a):

Works when screen is on, not when screen is off Phone model n7100, stock (unrooted)

— Reply to this email directly or view it on GitHubhttps://github.com/Morlunk/Plumble/issues/58.

kubbur commented 11 years ago

Possible to implement in near future? Would mean the world to me.

acomminos commented 11 years ago

Sadly not possible. We can only intercept key events when the activity is in the foreground. Would love to have this, though.

kubbur commented 11 years ago

Not true, this is possible through device admin and/or wakelock or content observer stackoverflow.com/questions/6896746/android-is-there-a-broadcast-action-for-volume-changes Even if it would drain the battery it would be a huge success, could just add a tic box for it

acomminos commented 11 years ago

That's only for one variety of push to talk setup, with volume buttons- I meant in general. Still, I could potentially add this as an option if the user selects a volume button when prompted.

acomminos commented 11 years ago

You're right though, a wakelock allowing the screen to turn off but not to lock would work fine. I'll definitely throw that in.

kubbur commented 11 years ago

Most phones come with a headset with remote controls, the volume buttons on it bear the same tags as on the phone thus making it super comfy to use them as remotes for just about anything, and combined with wakelock i could use the ptt from the pocket, also, wakelock would be useful for not letting the phone cut on the 3g/wireless