[android-developers] Re: playing audio file using intent

2009-05-12 Thread jagtap.jj
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

[android-developers] Re: playing audio file using intent

2009-05-11 Thread jagtap.jj
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);