Is it possible to implement an activity as a service? My activity is a voice recognition activity. I want to have the activity running in the background of the app constant
What you can do is launch the recognizer activity which will listen for commands and when it finds an appropriate command it will do whatever you want it to do on that particular command. The problem with this simple approach is that the activity will constantly be listening for speech input and more importantly IT NEEDS TO BE IN FOCUS and not running in background...
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/VoiceRecognition.html