Merge pull request #5 from NikkyAI/feature/android-network
add DisplayNetwork support to android
This commit is contained in:
commit
c8eff4975b
|
@ -8,6 +8,7 @@
|
|||
<uses-permission android:name="android.permission.SET_RELEASE_APP"/>
|
||||
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
|
||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
|
||||
<application android:debuggable="false" android:hasCode="false" android:label="colorchord" tools:replace="android:icon,android:theme,android:allowBackup,label" android:icon="@mipmap/icon" > <!--android:requestLegacyExternalStorage="true" Not needed til Android 29 -->
|
||||
<activity android:configChanges="keyboardHidden|orientation" android:label="colorchord" android:name="android.app.NativeActivity">
|
||||
|
|
|
@ -385,6 +385,11 @@ int main(int argc, char ** argv)
|
|||
{
|
||||
AndroidRequestAppPermissions( "READ_EXTERNAL_STORAGE" );
|
||||
}
|
||||
int haspermInternet = AndroidHasPermissions( "INTERNET" );
|
||||
if( !haspermInternet )
|
||||
{
|
||||
AndroidRequestAppPermissions( "INTERNET" );
|
||||
}
|
||||
|
||||
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue