I'm writing a mediaplayer app. It's not something that anybody but me would use.
It must work as follows:
The app must automatically start at bootup.
It must then read the playlist from a file and start playing. It must be able to play video, music and show images!
The app will run 24/7/365.
I got most of this working already, with some exceptions (I will get to that in a bit)
1.) Now what I want to know is: Should I use an activity or a service?
2.) If I use a service, must I autostart an activity, which in turns start the activity, which in turn starts the playing of items?
3.) Would it be better to start seperate sub-activities for each of the media types? (ex. start sub-activity, play video, finish sub-activity) Or should I just play all of the media types in the same activity.
The stuff that I am struggling with at the moment are:
1.) I play the video using videoview, but I can't get it to strech the video to fullscreen.
2.) I acquire a wakelock to keep the screen on and keypad backlight off, but as soon as a video stops playing, and the audio starts playing, the keypad backlight comes on and stays on (the screen backlight also stays on). I would to turn off the backlights, how? I tried to acquire another wakelock with different flags set, but it doesn't seem to work. I use the MediaPlayer class to play audio.
Any help will be appreciated?