add DisplayNetwork support to android

This commit is contained in:
nikky 2020-05-20 21:34:57 +02:00
parent bf95be1226
commit 556338cfcb
2 changed files with 6 additions and 0 deletions

View file

@ -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">

View file

@ -385,6 +385,11 @@ int main(int argc, char ** argv)
{
AndroidRequestAppPermissions( "READ_EXTERNAL_STORAGE" );
}
int haspermInternet = AndroidHasPermissions( "INTERNET" );
if( !haspermInternet )
{
AndroidRequestAppPermissions( "INTERNET" );
}
#else