I never really figured it out how to get it to work on my phone. Something I will be looking into after I try this idea out.
On Monday, July 16, 2012 11:40:26 AM UTC-4, MagouyaWare wrote: > > Keep in mind I am on my live phone so I DONT have logcat. >> > This makes no sense... I use my "live" phone for development and it isn't > rooted... I have logcat. > > Thanks, > Justin Anderson > MagouyaWare Developer > http://sites.google.com/site/magouyaware > > > On Mon, Jul 16, 2012 at 8:43 AM, Cythes <[email protected]> wrote: > >> >> So in the end what I am trying to do is illogical and cant be done some >> out of the blue way with out building a custom ROM >> It has to be an app... Which is a shame since I am so close to figuring >> it out. The service runs fine... Maybe just maybe having it call the camera >> button press if the volume is pushed down for longer then X amount of time. >> >> What can I say.... I'm stubborn. >> >> On Saturday, July 14, 2012 5:14:12 PM UTC-4, Mark Murphy (a Commons Guy) >> wrote: >>> >>> On Sat, Jul 14, 2012 at 5:03 PM, Cythes <[email protected]> wrote: >>> > So if I take it back to the regular dispatchkeyevent, it should fix >>> it.... >>> > or do I need to find something to call it to? IN which case would be >>> my main >>> > activity. >>> >>> Simply have your activity handle the key event itself, and delete your >>> service and your boot receiver. Having a service running all of the >>> time is something users generally dislike, and the service is not >>> helping you, since the activity is perfectly capable of handling your >>> current business logic with respect to the key event. >>> >>> If you are somehow thinking that you will have something "in the >>> background" that can respond to key events like this, that does not >>> work. A couple of key events will get broadcast if the foreground >>> activity does not consume the event (e.g., ACTION_CAMERA_BUTTON). >>> Otherwise, key events are for the use of the foreground activity and >>> the OS. >>> >>> -- >>> Mark Murphy (a Commons Guy) >>> http://commonsware.com | http://github.com/commonsguy >>> http://commonsware.com/blog | http://twitter.com/commonsguy >>> >>> _The Busy Coder's Guide to Android Development_ Version 3.8 Available! >>> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

