Data Collection

Get the app source code and SDK

ArcGIS Runtime SDK for AndroidArcGIS Runtime SDK for iOSArcGIS Runtime SDK for .NET
Android app source codeiOS app source code.NET app source code

Data Collection is an open source app project built with ArcGIS Runtime SDK designed to allow users to view and edit geographic data in either an online or offline environment. The geographic data is accessed with a web map. When the app is not connected to a network, users can add, edit, and delete geographic data. When connection is restored, users can synchronize offline work with the web map.

You can git clone, configure, and immediately start developing with this app to allow your users to collect field data and collaborate with other users in a disconnected environment using a web map.

Demo dataset

The app is pre-configured to use a Portland Tree Survey demo web map. Data in the web map is comprised of separate layers. One layer contains the locations for all the street trees, while the other layers contain the street tree records, such as tree inspections and tree species.

You can make this app your own by configuring it to use your own web map.


Work offline

Dynamic custom UIs and local file-management systems built for the app give your users full control to select an area of the map to take offline.

Offline maps are stored locally on a user's device. Users can work offline to add, edit, and remove records, and then bi-directionally synchronize those offline changes with the online web map.

Display and edit pop-ups

The app includes robust custom pop-up UIs for displaying information about records, related records, and media attachments. The pop-up configuration drives how your users display and edit web map records.

Information about records is disclosed progressively as users click or tap pop-ups and related record fields. Also included are custom UIs to let users relate one record to another and view and add media attachments.

Custom pop-up UIs let your users discover and edit records that have explicit relationships to other records.

When users click or tap certain fields of the custom pop-ups UI that represent a relationship, additional information is revealed to them about the selected related records.

View and add media attachments

Custom pop-up UIs let your users upload and view photos and other media associated with a record. The app supports a variety of pop-up attachment file formats and will open files using the device's system defaults.

Present a map-centric design

Data Collection places the map at the center of the app's design. User interactions with the map drive how users view and edit web map data. For example, the map contains custom UI tools, such as a compass and device location display, to provide a familiar mapping experience for your users.

Geocode for addresses

The app demonstrates how to reverse geocode a map location to an address. The Portland Tree Survey demo dataset does this when creating new tree records.

The ArcGIS World Geocoding Service is used to reverse geocode locations to addresses when the app is online, whereas a custom-built locator is used to reverse geocode when offline.

Modify the source code to make the geocoder work for your data.

Grant logins to authorized users

The web map used by the app can be shared across an ArcGIS organization or made public. Web map authors can grant access to web map content shared with their organization's authorized users.

Make this app yours

The supplied datasets are for demonstration purposes. To customize this app, replace the Portland Tree Survey web map with one of your own.

Get started

In your portal

  1. Create a web map and configure pop-ups for your data using ArcGIS Online.
  2. Share the web map with the public or the authorized users in your portal.

From your developer dashboard

  1. Register your app, which creates a unique client ID, on your developer dashboard.

In your local environment

  1. Download the app source code and SDK for the platform of your choice.
  2. Locate clientID in the source code configuration file and replace it with your unique client ID.

Consuming credits

The app leverages the ArcGIS World Geocoding Service, which consumes credits. Ensure your users can consume credits with an authorized user login or by using a proxy.

Read the documentation

The Data Collection app repositories maintain comprehensive documentation. Consult the documentation to learn about app architecture, interface, configuration, ArcGIS development patterns, and licenses. See the docs/ file in the app repository for more information.