When I try to play the track with AMR file format. It throws a warning
Permission failure: android.permission.ALLOW_ANY_CODEC_FOR_PLAYBACK
and error from libOpenSLES
AudioSfDecoder::onPrepare: Could not find a supported audio track.
I tried setting the permission in manifest file.
<!-- Allows an application to use any media decoder when decoding for playback
@hide -->
<permission android:name="android.permission.ALLOW_ANY_CODEC_FOR_PLAYBACK"
android:protectionLevel="signatureOrSystem"
android:label="@string/permlab_anyCodecForPlayback"
android:description="@string/permdesc_anyCodecForPlayback" />
But still throws the same error.
Am I setting the permission correctly? Could anyone help me out, what am I missing.