Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
Adding Tilequery API + Static Images API notification example (#1297)
Browse files Browse the repository at this point in the history
  • Loading branch information
Langston Smith authored Feb 7, 2020
1 parent 31b0d99 commit 143efcf
Show file tree
Hide file tree
Showing 9 changed files with 599 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
import com.mapbox.mapboxandroiddemo.examples.javaservices.SimplifyPolylineActivity;
import com.mapbox.mapboxandroiddemo.examples.javaservices.StaticImageActivity;
import com.mapbox.mapboxandroiddemo.examples.javaservices.StraightLineDistanceMapMovementActivity;
import com.mapbox.mapboxandroiddemo.examples.javaservices.StaticImageNotificationActivity;
import com.mapbox.mapboxandroiddemo.examples.javaservices.TilequeryActivity;
import com.mapbox.mapboxandroiddemo.examples.javaservices.TurfLineDistanceActivity;
import com.mapbox.mapboxandroiddemo.examples.javaservices.TurfPhysicalCircleActivity;
Expand Down Expand Up @@ -1129,6 +1130,14 @@ private void initializeModels() {
null,
R.string.activity_java_services_straight_line_distance_url, true, BuildConfig.MIN_SDK_VERSION));

exampleItemModels.add(new ExampleItemModel(
R.id.nav_java_services,
R.string.activity_java_services_static_image_notification_title,
R.string.activity_java_services_static_image_notification_description,
new Intent(MainActivity.this, StaticImageNotificationActivity.class),
null,
R.string.activity_java_services_static_image_notification_url, true, BuildConfig.MIN_SDK_VERSION));

exampleItemModels.add(new ExampleItemModel(
R.id.nav_snapshot_image_generator,
R.string.activity_image_generator_snapshot_notification_title,
Expand Down
7 changes: 7 additions & 0 deletions MapboxAndroidDemo/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,13 @@
android:name="android.support.PARENT_ACTIVITY"
android:value="com.mapbox.mapboxandroiddemo.MainActivity" />
</activity>
<activity
android:name=".examples.javaservices.StaticImageNotificationActivity"
android:label="@string/activity_java_services_static_image_notification_title">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.mapbox.mapboxandroiddemo.MainActivity" />
</activity>
<activity
android:name=".examples.location.KotlinLocationComponentActivity"
android:label="@string/activity_location_location_component_title">
Expand Down
Loading

0 comments on commit 143efcf

Please sign in to comment.