I need to play the song from memory card in the specific time like 10am, 1pm and 5pm. So here my questions are, How to auto start the application? and How to play that songs in regular intervals?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Please check put android’s AlarmManager,
http://developer.android.com/reference/android/app/AlarmManager.html
It a nutshell, you will create an alarm for a particular time, register a BroadcastReceiver to be called in response to the alarm going off. In the receiver, you will start an IntentService that will use MediaPlayer to play the song, and again use AlarmManager to schedule another alarm for the next time you want to play the song.
http://developer.android.com/reference/android/content/BroadcastReceiver.html
http://developer.android.com/reference/android/app/IntentService.html
http://developer.android.com/reference/android/media/MediaPlayer.html
There are lots of nuances to getting it right, and explaining them is not in the scope of this answer. If you Google on the topic, you will find lots of examples and tutorials.