Merge pull request #5 from NikkyAI/feature/android-network

add DisplayNetwork support to android
This commit is contained in:
Sam Ellicott 2020-05-20 18:55:58 -04:00 committed by GitHub
commit c8eff4975b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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