I've just started looking at Android development and I'm creating a little application which will map the "Listen to" intent to the media player power amp (recently released api). This app has no gui it is mearly a glue between Voice control and power amp.
I can catch the intent android.media.action.MEDIA_PLAY_FROM_SEARCH and control power amp but my issue is that in order to capture android.media.action.MEDIA_PLAY_FROM_SEARCH I must declare my app as an activity and so when I use Voice Control to send the intent my app loads on the screen. I have tried to declare the app as a receiver\service but I wasn't able to get them to capture the intent.
How can the app run hidden but still capture this intent?
Thanks, Ger.