From 556338cfcbe7c45b79bee7ec515797b333bf8db2 Mon Sep 17 00:00:00 2001 From: nikky Date: Wed, 20 May 2020 21:34:57 +0200 Subject: [PATCH] add DisplayNetwork support to android --- colorchord2/android/AndroidManifest.xml | 1 + colorchord2/main.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/colorchord2/android/AndroidManifest.xml b/colorchord2/android/AndroidManifest.xml index 4acec47..7337d6f 100644 --- a/colorchord2/android/AndroidManifest.xml +++ b/colorchord2/android/AndroidManifest.xml @@ -8,6 +8,7 @@ + diff --git a/colorchord2/main.c b/colorchord2/main.c index 59adea9..d142ca5 100644 --- a/colorchord2/main.c +++ b/colorchord2/main.c @@ -385,6 +385,11 @@ int main(int argc, char ** argv) { AndroidRequestAppPermissions( "READ_EXTERNAL_STORAGE" ); } + int haspermInternet = AndroidHasPermissions( "INTERNET" ); + if( !haspermInternet ) + { + AndroidRequestAppPermissions( "INTERNET" ); + } #else