"Yes! You have to check and request for permission at runtime if you're 
using SDK>=23. "
https://code.google.com/p/android/issues/detail?id=198483

On Saturday, April 4, 2009 at 7:03:51 AM UTC+3, adumitru007 wrote:
>
> Hello Matt, 
>
> Please be kind and share the solution with us, I am having the same 
> problem, I need android.permission.RECORD_AUDIO. 
>
> Thanks a lot. 
>
> On Feb 10, 7:17 am, Matt Flax <[email protected]> wrote: 
> > Solution found ... 
> > 
> > 
> > 
> > On Tue, Feb 10, 2009 at 12:13 PM, flatmax <[email protected]> wrote: 
> > > Hello, 
> > 
> > > I have a service which uses the RECORD_AUDIO permission. 
> > 
> > > I have set up my androidmanifest.xml file as I would expect to enable 
> > > that permissions (it is included below) 
> > 
> > > For some reason when I start the service - from the service controller 
> > > -  I get the following problem : 
> > > W/ServiceManager(   33): Permission failure: 
> > > android.permission.RECORD_AUDIO from uid=10024 pid=1887 
> > > E/AudioFlinger(   33): Request requires 
> > > android.permission.RECORD_AUDIO 
> > > E/AudioRecord( 1887): AudioFlinger could not create record track, 
> > > status: -1 
> > 
> > > then the service dies ! 
> > 
> > > here is my android manifest file : 
> > >   <application android:icon="@drawable/icon" android:label="@string/ 
> > > app_name"> 
> > >          <uses-permission 
> > > android:name="android.permission.RECORD_AUDIO" /> 
> > 
> > >         <service android:name=".NALSLMService"> 
> > >                   <uses-permission 
> > > android:name="android.permission.RECORD_AUDIO" /> 
> > >         </service> 
> > 
> > >        <activity android:name=".NALSLMServiceController" 
> > > android:label="@string/activity_nalslm_service_controller"> 
> > >            <intent-filter> 
> > >          <uses-permission 
> > > android:name="android.permission.RECORD_AUDIO" /> 
> > >                <action android:name="android.intent.action.MAIN" /> 
> > >                <category 
> > > android:name="android.intent.category.LAUNCHER" /> 
> > >            </intent-filter> 
> > >        </activity> 
> > 
> > >        <activity android:name=".NALSLMServiceBinding" 
> > > android:label="@string/activity_nalslm_service_binding"> 
> > >            <intent-filter> 
> > >          <uses-permission 
> > > android:name="android.permission.RECORD_AUDIO" /> 
> > >                <action android:name="android.intent.action.MAIN" /> 
> > >                <category 
> > > android:name="android.intent.category.SAMPLE_CODE" /> 
> > >            </intent-filter> 
> > >        </activity> 
> > 
> > >        <activity android:name=".NALSLM" 
> > >                  android:label="@string/app_name"> 
> > >            <intent-filter> 
> > >          <uses-permission 
> > > android:name="android.permission.RECORD_AUDIO" /> 
> > >                <action android:name="android.intent.action.MAIN" /> 
> > >                <category 
> > > android:name="android.intent.category.LAUNCHER" /> 
> > >            </intent-filter> 
> > >        </activity> 
> > >    </application> 
> > 
> > --http://www.flatmaxstudios.com 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/0b43e146-22ae-4761-8922-47825c3c2c8c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to