Is possible to Use the 3.5mm JACK

by Thibaud Ringenbach » Tue, 12 Apr 2011 07:23:44 GMT


Sponsored Links
 Hello All,

being a french developer, i need in my app to have 3 external buttons
of the phone. It could be buttons of an headset pluged on the 3.5mm
JACK. is that possible to intercept the play/next/prev buttons in
order to launch functions in my app??

Hope i can.

Thanks a lot !!

-- 



Re: Is possible to Use the 3.5mm JACK

by Mark Murphy » Tue, 12 Apr 2011 09:58:01 GMT


 On Mon, Apr 11, 2011 at 8:43 AM, Thibaud Ringenbach



There are KeyEvents for various button presses that a running activity
can listen for via onKeyDown().

-- 
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 *Advanced* Android Development_ Version
1.9.2 Available!

-- 


Sponsored Links


Re: Is possible to Use the 3.5mm JACK

by Thibaud Ringenbach » Tue, 12 Apr 2011 16:12:57 GMT


 Yes Thank you, I think i see what do you mean, i'll try to find a
Documentation.





-- 



Other Threads

1. ALL DEVELOPERS PIRATED APPLICATION ALL OVER!

2009/7/22 Micah <mi...@ourmailbox.net>


What universe do you live in? There is no such thing as 100% network
coverage on any phone network.

--~--~---------~--~----~------------~-------~--~----~

2. gadget loading with adb

Hi All,

I want to add the USB ADB support in android kernal.
Trying to compile and link statically but Still it is not working and
while booting i am not seeing any thing load..
Please let me know anything wrong.


c02088f4 t adb_enable_release
c0208940 t adb_enable_open
c02089b8 T adb_function_enable
c0208a50 t adb_release
c0208a90 t adb_open
c0208b08 t adb_request_free
c0208b40 t adb_request_new
c0208ba8 t adb_function_disable
c0208c34 t adb_function_set_alt

c0018884 t xxx_usb_driver_init is my init function but i am not seeing
this init function called.

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: 

3. I have attached example of intent.putExtra and intent.getExtras in android plz check it

4. Help with threading and UI changes

5. How to get phone state?

6. Where is the code of portable version of the dalvik interpreter

7. Texture appears white in the real device but not in the emulator