[android-developers] Re: Is it possible to launch an activity on a certain key sequence?
Mark, Sorry, I meant the key sequence would launch my activity. Can you elaborate on what it would take? Thanks in advance! On Feb 18, 8:57 am, Mark Murphy mmur...@commonsware.com wrote: BillS wrote: For example, typing 321 launches my application. Only from one of your own activities, and then only with some work. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android App Developer Training:http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Is it possible to launch an activity on a certain key sequence?
BillS wrote: Sorry, I meant the key sequence would launch my activity. Can you elaborate on what it would take? Again, it would only work if you are trying to launch Activity B from Activity A, where you wrote both B and A. The precise techniques will vary based on what Activity A is doing, but you'll want to look at onKeyDown() and onKeyUp() in Activity. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Consulting/App Development: http://commonsware.com/consulting -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it possible to launch an activity on a certain key sequence?
So I would need to write an activity that listens for a certain key sequence and then launches a second activity? On Feb 18, 9:08 am, Mark Murphy mmur...@commonsware.com wrote: BillS wrote: Sorry, I meant the key sequence would launch my activity. Can you elaborate on what it would take? Again, it would only work if you are trying to launch Activity B from Activity A, where you wrote both B and A. The precise techniques will vary based on what Activity A is doing, but you'll want to look at onKeyDown() and onKeyUp() in Activity. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Consulting/App Development:http://commonsware.com/consulting -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Is it possible to launch an activity on a certain key sequence?
BillS wrote: So I would need to write an activity that listens for a certain key sequence and then launches a second activity? Yes. I suspect you're trying to get it such that arbitrary other applications, or the operating system, will register the key events and start up your activity for you. That is not supported. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.3 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Is it possible to launch an activity on a certain key sequence?
I don't know if this will help your situation at all, but note that there is the option for users to set keyboard shortcuts, so you could set a shortcut for yourself for your own app. On Thu, Feb 18, 2010 at 12:51 PM, Mark Murphy mmur...@commonsware.comwrote: BillS wrote: So I would need to write an activity that listens for a certain key sequence and then launches a second activity? Yes. I suspect you're trying to get it such that arbitrary other applications, or the operating system, will register the key events and start up your activity for you. That is not supported. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.3 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Is it possible to launch an activity on a certain key sequence?
TreKing wrote: I don't know if this will help your situation at all, but note that there is the option for users to set keyboard shortcuts, so you could set a shortcut for yourself for your own app. *smacks forehead* I keep forgetting about that, particularly now that I'm using a keyboard-less device, so the Quick Launch options aren't available. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.9 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it possible to launch an activity on a certain key sequence?
On that note, Can I launch an activity from the called 'Camera App' within my own activity on the press of Capture button? Abhi On Feb 18, 2:13 pm, Mark Murphy mmur...@commonsware.com wrote: TreKing wrote: I don't know if this will help your situation at all, but note that there is the option for users to set keyboard shortcuts, so you could set a shortcut for yourself for your own app. *smacks forehead* I keep forgetting about that, particularly now that I'm using a keyboard-less device, so the Quick Launch options aren't available. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.9 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en