I have a really big problem in getting address from asset folder when I'm using the default music player as an intent! This is my code:
Uri path = Uri.parse("file:///android_asset/file.mp3");
String newPath = path.toString();
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
File file = new File(newPath);
intent.setDataAndType(Uri.fromFile(file), "audio/*");
startActivity(intent);
The App just works fine on my device but when I wanna run the intent, a TOAST just say: " Unable to find item " What should I do?