Reputation: 362
I have an application that fires the intent for the voice recorder (RECORD_SOUND_ACTION), but I want it to go straight to the listing of recordings. Is there a putExtra I can add to get this result?
Upvotes: 1
Views: 1416
Reputation: 28188
I assume you have an HTC phone--I believe Voice Recorder is a stock HTC app, not an Android standard app. If that's the case, if you can find the apk, you might be able to reverse engineer an intent using AppXplore--though this would only work for people that have HTC devices and/or a compatible version of Voice Recorder. I wouldn't recommend it.
Alternately, you could without too much effort call ACTION_PICK
and subsequently launch an audio player on the returned file. To call an audio file chooser:
Intent intent = new Intent(Intent.ACTION_PICK,
android.provider.MediaStore.Audio.Media.EXTERNAL_CONTENT_URI);
startActivityForResult(Intent.createChooser(intent, "Gallery"), reqCode);
Or alternately,
Intent intent = new Intent();
intent.setType("audio/*");
intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(Intent.createChooser(intent,"Select Audio "), reqCode);
Upvotes: 1