Skip to content

Commit

Permalink
Android 15
Browse files Browse the repository at this point in the history
  • Loading branch information
devemux86 committed Oct 15, 2024
1 parent 48c8c12 commit 94909bc
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

Expand Down
1 change: 1 addition & 0 deletions vtm-android-example/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:requestLegacyExternalStorage="true"
android:theme="@style/AppThemeLight"
android:usesCleartextTraffic="true">
<activity
android:name=".Samples"
Expand Down
12 changes: 12 additions & 0 deletions vtm-android-example/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">

<style name="AppThemeDark" parent="android:Theme.Material">
<item name="android:fitsSystemWindows" tools:targetApi="VANILLA_ICE_CREAM">true</item>
</style>

<style name="AppThemeLight" parent="android:Theme.Material.Light.DarkActionBar">
<item name="android:fitsSystemWindows" tools:targetApi="VANILLA_ICE_CREAM">true</item>
</style>

</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 94909bc

Please sign in to comment.