1

Android play AMR file using default Music player

view story
linux-howto

http://stackoverflow.com – I have few AMR file in my SD card. I want to play those amr files using default android music player. TODO this,i tried below code : Uri myUri = Uri.parse(Environment.getExternalStorageDirectory().getAbsolutePath() + "/myfiles/filename.amr"); Intent intent = new Intent(android.content.Intent.ACTION_VIEW); intent.setDataAndType(myUri, "audio/*"); startActivity(intent); and my stacktrace : 07-16 15:23:47.284: D/Instrumentation(32496): checkStartActivityResult :Intent { act=android.intent.action.VIEW dat=/storage/emulated/0/myfiles/filename.amr typ=audio/* } 07-16 15:23:4 (HowTos)