Please be kind and share the solution. Thank you. 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 post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

