Skip to content Skip to sidebar Skip to footer

Can Anyone Tell Me How Do I Start Mp3?

I am making a project ,I need to start mp3 or any loud sound automatically when the toast 'Fall Detected' appears for 20 second. public void onSensorChanged(SensorEvent event) {

Solution 1:

This is the link to set the alarm http://developer.android.com/shareables/training/Scheduler.zip call the setAlarm(context) method after you show your toast

Solution 2:

http://developer.android.com/reference/android/app/AlarmManager.html#set(int,%20long,%20android.app.PendingIntent)

Hope this help , be care of the TYPE.

Post a Comment for "Can Anyone Tell Me How Do I Start Mp3?"