Skip to content
This repository was archived by the owner on Jan 26, 2023. It is now read-only.

Commit 20a05c7

Browse files
authored
Merge pull request #645 from Esri/100.6
100.6
2 parents 754174e + e93c065 commit 20a05c7

File tree

88 files changed

+1983
-68
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+1983
-68
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Overview
2-
ArcGIS Runtime SDK for Android v100.5.0 samples. The `master` branch of this repository contains sample app modules for the latest available version of the [ArcGIS Runtime SDK for Android](https://developers.arcgis.com/android/). Samples released under older versions can be found through the [git tags](https://github.com/Esri/arcgis-runtime-samples-android/tags). Please read our [wiki](https://github.com/Esri/arcgis-runtime-samples-android/wiki) for help with working with this repository.
2+
ArcGIS Runtime SDK for Android v100.6.0 samples. The `master` branch of this repository contains sample app modules for the latest available version of the [ArcGIS Runtime SDK for Android](https://developers.arcgis.com/android/). Samples released under older versions can be found through the [git tags](https://github.com/Esri/arcgis-runtime-samples-android/tags). Please read our [wiki](https://github.com/Esri/arcgis-runtime-samples-android/wiki) for help with working with this repository.
33

44
# Prerequisites
55
* The samples are building with `compileSdkVersion 28`
@@ -8,7 +8,7 @@ ArcGIS Runtime SDK for Android v100.5.0 samples. The `master` branch of this re
88
## SDK Maven repo
99
The SDK is available through the Bintray Maven repo, you can take a look at the repository with the link below:
1010

11-
[ ![Download](https://api.bintray.com/packages/esri/arcgis/arcgis-android/images/download.svg?version=100.5.0) ](https://bintray.com/esri/arcgis/arcgis-android/100.5.0/link)
11+
[ ![Download](https://api.bintray.com/packages/esri/arcgis/arcgis-android/images/download.svg?version=100.6.0) ](https://bintray.com/esri/arcgis/arcgis-android/100.6.0/link)
1212

1313
## Developer Instructions
1414
Please read our [developer instructions wiki page](https://github.com/Esri/arcgis-runtime-samples-android/wiki/dev-instructions) to set up your developer environment with Android Studio. Instructions include forking and cloning the repository for those new to Git.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Apply scheduled updates to preplanned map area
2+
3+
Apply scheduled updates to a downloaded preplanned map area.
4+
5+
![Apply scheduled updates to preplanned map area app](apply-scheduled-updates-to-preplanned-map-area.png)
6+
7+
## Use case
8+
9+
With scheduled updates, the author can update the features within the preplanned areas on the service once, and multiple end-users can request these updates to bring their local copies up to date with the most recent state. Importantly, any number of end-users can download the same set of cached updates which means that this workflow is extremely scalable for large operations where you need to minimize load on the server.
10+
11+
This workflow can be used by survey workers operating in remote areas where network connectivity is not available. The workers could download mobile map packages to their individual devices and perform their work normally. Once they regain internet connectivity, the mobile map packages can be updated to show any new features that have been added to the online service.
12+
13+
## How to use the sample
14+
15+
Start the app. It will display an offline map, check for available updates, and show update availability and size. Select 'Apply Updates' to apply the updates to the local offline map and show the results.
16+
17+
## How it works
18+
19+
1. Create an `OfflineMapSyncTask` with your offline map.
20+
2. If desired, get `OfflineMapUpdatesInfo` from the task to check for update availability or update size.
21+
3. Get a set of default `OfflineMapSyncParameters` for the task.
22+
4. Set the parameters to download all available updates.
23+
5. Use the parameters to create an `OfflineMapSyncJob`.
24+
6. Start the job and get the results once it completes successfully.
25+
7. Check if the mobile map package needs to be reopened, and do so if necessary.
26+
8. Finally, display your offline map to see the changes.
27+
28+
## Relevant API
29+
30+
* MobileMapPackage
31+
* OfflineMapSyncJob
32+
* OfflineMapSyncParameters
33+
* OfflineMapSyncResult
34+
* OfflineMapSyncTask
35+
* OfflineMapUpdatesInfo
36+
37+
## Offline Data
38+
1. Download the data from [ArcGIS Online](https://arcgisruntime.maps.arcgis.com/home/item.html?id=740b663bff5e4198b9b6674af93f638a).
39+
2. Extract the contents of the downloaded zip file to disk.
40+
2. Open your command prompt and navigate to the folder where you extracted the contents of the data from step 1.
41+
3. Execute the following command:
42+
`adb push canyonlands/. /sdcard/ArcGIS/Samples/MapPackage/canyonlands`
43+
44+
Link | Local Location
45+
---------|-------|
46+
|[Canyonlands MMPK](https://arcgisruntime.maps.arcgis.com/home/item.html?id=740b663bff5e4198b9b6674af93f638a)| `<sdcard>`/ArcGIS/Samples/MapPackage/canyonlands|
47+
48+
## About the data
49+
50+
The data in this sample shows the roads and trails in the Canyonlands National Park, Utah. Data by [U.S. National Parks Service](https://public-nps.opendata.arcgis.com/). No claim to original U.S. Government works.
51+
52+
## Additional information
53+
54+
**Note:** preplanned areas using the Scheduled Updates workflow are read-only. For preplanned areas that can be edited on the end-user device, see [Take a map offline - preplanned](https://developers.arcgis.com/java/latest/guide/take-map-offline-preplanned.htm).
55+
56+
#### Tags
57+
Edit and Manage Data
58+
offline, preplanned
59+
pre-planned
60+
synchronize
61+
update
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"category": "Edit and Manage Data",
3+
"description": "Apply scheduled updates to a downloaded preplanned map area.",
4+
"ignore": false,
5+
"images": [
6+
"apply-scheduled-updates-to-preplanned-map-area.png"
7+
],
8+
"keywords": [
9+
"offline",
10+
"preplanned",
11+
"pre-planned",
12+
"synchronize",
13+
"update"
14+
],
15+
"redirect_from": "",
16+
"relevant_apis": [
17+
"MobileMapPackage",
18+
"OfflineMapSyncJob",
19+
"OfflineMapSyncParameters",
20+
"OfflineMapSyncResult",
21+
"OfflineMapSyncTask",
22+
"OfflineMapUpdatesInfo"
23+
],
24+
"snippets": [
25+
"src/main/java/com/esri/arcgisruntime/sample/applyscheduledupdatestopreplannedmaparea/MainActivity.java"
26+
],
27+
"title": "Apply scheduled updates to preplanned map area"
28+
}
555 KB
Loading
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion rootProject.ext.compileSdkVersion
5+
6+
defaultConfig {
7+
applicationId "com.esri.arcgisruntime.sample.applyscheduledupdatestopreplannedmaparea"
8+
minSdkVersion rootProject.ext.minSdkVersion
9+
targetSdkVersion rootProject.ext.targetSdkVersion
10+
versionCode rootProject.ext.versionCode
11+
versionName rootProject.ext.versionName
12+
}
13+
buildTypes {
14+
release {
15+
minifyEnabled false
16+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
17+
}
18+
}
19+
}
20+
21+
dependencies {
22+
// arcgis-android & appcompat lib dependencies from rootProject build.gradle
23+
implementation "com.android.support.constraint:constraint-layout:$constraintLayoutVersion"
24+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.esri.arcgisruntime.sample.applyscheduledupdatestopreplannedmaparea">
4+
5+
<uses-permission android:name="android.permission.INTERNET" />
6+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
7+
8+
<uses-feature
9+
android:glEsVersion="0x00020000"
10+
android:required="true" />
11+
12+
<application
13+
android:allowBackup="true"
14+
android:icon="@mipmap/ic_launcher"
15+
android:label="@string/app_name"
16+
android:roundIcon="@mipmap/ic_launcher_round"
17+
android:supportsRtl="true"
18+
android:theme="@style/AppTheme">
19+
<activity
20+
android:name=".MainActivity"
21+
android:label="@string/app_name">
22+
<intent-filter>
23+
<action android:name="android.intent.action.MAIN" />
24+
25+
<category android:name="android.intent.category.LAUNCHER" />
26+
</intent-filter>
27+
</activity>
28+
</application>
29+
30+
</manifest>

0 commit comments

Comments
 (0)