Cleveroad / WaveInApp

Live Audio Equalizer with wave effect
https://www.cleveroad.com
MIT License
1.79k stars 320 forks source link

Marshmallow permissions #12

Closed rohanoid5 closed 8 years ago

rohanoid5 commented 8 years ago

I have included the Manifest.permission.RECORD_AUDIO and Manifest.permission.MODIFY_AUDIO_SETTINGS but still I'm getting "Cannot initialize Visualizer engine, error: -3" on Marshmallow Devices.

codekidX commented 8 years ago

Did you try implementing runtime permission and ask for record audio permission? See here for more details - http://developer.android.com/training/permissions/requesting.html

If you are testing then go to app details via settings and toggle the voice switch in permission section.

Iojjj commented 8 years ago

@rohanoid5 As @codekidX mentioned you need to request permissions first. You can check sample app for example. Also you can use a trick and set tragetSdkVersion to 22 or below :)