How to request run-time recording permission on Android 6.0?
<p>Since Android 6.0, we need to request permissions during app runtime. </p>

<p>In my app, i'm using local storage, camera, geolocation and audio recording permissions.</p>

<p>So, requesting for local storage, camera and geolocation is ok with that snippet : 
<a href="https://github.com/appcelerator-developer-relations/appc-sample-ti510/blob/master/app/controllers/permissions.js" rel="nofollow">https://github.com/appcelerator-developer-relations/appc-sample-ti510/blob/master/app/controllers/permissions.js</a></p>

<p>But i've not found how to request for audio recording permission...I actually use titutorial.audiorecorder module for Android and it crashes when i tried to record since Android 6.0 because permission for recording is not enable.</p>

<p>More informations on my environment :</p>

<pre><code>Operating System

Name                        = Mac OS X
  Version                     = 10.11.3
  Architecture                = 64bit
  # CPUs                      = 4
  Memory                      = 17179869184

Node.js
  Node.js Version             = 0.12.7
  npm Version                 = 2.11.3

Titanium CLI
  CLI Version                 = 5.0.6

Titanium SDK
  SDK Version                 = 5.2.0.GA
  SDK Path                    = /Users/****/#/mobilesdk/osx/5.2.0.GA
  Target Platform             = android

Appcelerator Studio 4.5.0.201602170821
</code></pre>

<p>tiapp.xml</p>

<pre><code>&lt;manifest&gt;
    &lt;uses-sdk android:minSdkVersion="15"/&gt;
    &lt;uses-sdk android:targetSdkVersion="23"/&gt;
    &lt;uses-permission android:name="android.permission.RECORD_AUDIO"/&gt;
    &lt;uses-permission android:name="android.permission.CAPTURE_AUDIO_OUTPUT"/&gt;
    &lt;uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/&gt;
    &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt;
    &lt;uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE"/&gt;
    &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
    &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/&gt;
    &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/&gt;
    &lt;uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/&gt;
    &lt;uses-feature android:glEsVersion="0x00020000" android:required="true"/&gt;
    &lt;uses-permission android:name="com.mycompany.myapp.permission.MAPS_RECEIVE"/&gt;
...
...

&lt;/manifest&gt;
</code></pre>