diff --git a/build.gradle b/build.gradle index e636e484f..641281913 100644 --- a/build.gradle +++ b/build.gradle @@ -19,11 +19,11 @@ allprojects { } } -static def androidCompileSdk() { return 34 } +static def androidCompileSdk() { return 35 } static def androidMinSdk() { return 21 } -static def androidTargetSdk() { return 34 } +static def androidTargetSdk() { return 35 } static def versionCode() { return 1 } diff --git a/vtm-android-example/AndroidManifest.xml b/vtm-android-example/AndroidManifest.xml index 95fb8e66b..f978d216f 100644 --- a/vtm-android-example/AndroidManifest.xml +++ b/vtm-android-example/AndroidManifest.xml @@ -16,6 +16,7 @@ android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:requestLegacyExternalStorage="true" + android:theme="@style/AppThemeLight" android:usesCleartextTraffic="true"> + + + + + + + diff --git a/vtm-android-example/src/org/oscim/android/test/GettingStarted.java b/vtm-android-example/src/org/oscim/android/test/GettingStarted.java index a172ca07a..7a953ab4e 100644 --- a/vtm-android-example/src/org/oscim/android/test/GettingStarted.java +++ b/vtm-android-example/src/org/oscim/android/test/GettingStarted.java @@ -52,8 +52,8 @@ public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Map view - mapView = new MapView(this); - setContentView(mapView); + setContentView(R.layout.activity_map); + mapView = findViewById(R.id.mapView); // Open map Intent intent = new Intent(Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT ? Intent.ACTION_OPEN_DOCUMENT : Intent.ACTION_GET_CONTENT);