the problem has been solved
I just used "intent.setDataAndType(mUri, "audio/*");"
instead of using separately " intent.setData(uri); intent.setType
("audio/*"); "
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "An
I want play audio file, which is on sdcard, with intent
String path = Environment.getExternalStorageDirectory
().getAbsolutePath
();
File audioFile = new File(path, "westron.mp3");
Intent intent = new Intent(Intent.ACTION_VIEW);
Uri uri = Uri.fromFile(audioFile);
2 matches
Mail list logo