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. Operating G1 from Shell

Can someone help me as far as runing the G1 from the Shell.  Is that
possible???  I want to view text with out the Browser interface.
Currently using PTerminal but think im missing some commands.

Thanks in Advance


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

2. Application tries to overwrite Android System on G1

I just recently tried to install my latest application on my G1 and
for some reason it tries to over write the Android System....I have
signed the apk with my own personal keystore and it still tries to do
it, any help?

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

3. About WebView setOnClickListener

4. How to configure android emulator browser work on windows?

5. Listactivity refreshing exiting to original list when screen flips

6. The UK Release and Internationalization

7. problem with Notification (PendingIntent)