android MediaStore.Audio.Media.RECORD_SOUND_ACTION: no activity found to handle intent -


i try record sound. use intent record sound. on 1 device mediastore.audio.media.record_sound_action returns error:

this code:

intent intent = new intent(mediastore.audio.media.record_sound_action); startactivityforresult(intent, rqs_recording); 

this error:

no activity found handle intent { act=android.provider.mediastore.record_sound (has extras) }

what can reason ? mean function not accesible on devices ? how can check if record_sound_action present on device ?

maybe device doesn't have application allows record audio. check first if has default audio recorder.

according post (samsung charge record_sound_action intent not returning when started result), may happen other devices , possibly bug.

this might possible if device has default audio recorder if application not not include receiver record_sound_action intent nor not declare activity in manifest handle specified intent.

you may handle intent implementing own audio recorder , declare in manifest way(just in case want to):

<activity     android:name="com.test.audiorecorder"     android:label="@string/app_name" >     <intent-filter>         <action android:name="android.provider.mediastore.record_sound" />         <category android:name="android.intent.category.default" />     </intent-filter> </activity> 

Comments