# mapbook-android
**Repository Path**: mirrors_Esri/mapbook-android
## Basic Information
- **Project Name**: mapbook-android
- **Description**: App to replace paper maps for field work
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-08-08
- **Last Updated**: 2026-01-24
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Mapbook Android
This repo is home to the mobile mapbook app, an example application using the [ArcGIS Runtime SDK for Android.](https://developers.arcgis.com/android/) Replace the paper maps you use for field work with offline maps. **Note:** this app is meant for tablets only and won't render properly on phone screens.
- [Features](#features)
- [Detailed Documentation](#detailed-documentation)
- [Development Instructions](#development-instructions)
- [Fork the repo](#fork-the-repo)
- [Clone the repo](#clone-the-repo)
- [Command line Git](#command-line-git)
- [Configuring a Remote for a Fork](#configuring-a-remote-for-a-fork)
- [Testing With Robotium](#testing-with-robotium)
- [Requirements](#requirements)
- [Resources](#resources)
- [Issues](#issues)
- [Contributing](#contributing)
- [MDTOC](#mdtoc)
- [Licensing](#licensing)
---
## Features
- Mobile map packages
- Feature layers
- Identify
- Table of Contents
- Show a legend
- Use a map view callout
- Geocode addresses
- Suggestion search
- Bookmarks
- Sign in to an ArcGIS account
## Detailed Documentation
Read the [docs](./docs/README.md) for a detailed explanation of the application, including its architecture and how it leverages the ArcGIS platform, as well as how you can begin using the app right away.
## Development Instructions
This mapbook repo is an Android Studio Project and App Module that can be directly cloned and imported into Android Studio.
* Log in to [ArcGIS for Developers](https://developers.arcgis.com/) and [register](https://developers.arcgis.com/applications/#/) your app.

* Once you've registered your version of the mapbook app, grab a copy of the client id from the registration and set the client id in the applications app_settings.xml file.
```xml
YOUR_CLIENT_ID
my-ags-app://auth
```
* As part of the registration process, add a redirect uri for your app. Navigate to the Redirect URIs section at the bottom of the registration page and set the redirect uri to `my-ags-app://auth`. This redirect uri is the default redirect for `https://www.arcgis.com`.

* Note that the scheme for the `DefaultOAuthIntentReceiver` in the Android Manifest file is derived from the redirect uri.
```xml
```
### Fork the repo
**Fork** the Mapbook for Android repo.
### Clone the repo
Once you have forked the repo, you can make a clone
#### Command line Git
1. [Clone the Mapbook for Android repo](https://help.github.com/articles/fork-a-repo#step-2-clone-your-fork)
2. ```cd``` into the ```mapbook-android``` folder
3. Make your changes and create a [pull request](https://help.github.com/articles/creating-a-pull-request)
### Configuring a Remote for a Fork
If you make changes in the fork and would like to [sync](https://help.github.com/articles/syncing-a-fork/) those changes with the upstream repository, you must first [configure the remote](https://help.github.com/articles/configuring-a-remote-for-a-fork/). This will be required when you have created local branches and would like to make a [pull request](https://help.github.com/articles/creating-a-pull-request) to your upstream branch.
1. In the Terminal (for Mac users) or command prompt (fow Windows and Linux users) type ```git remote -v``` to list the current configured remote repo for your fork.
2. ```git remote add upstream https://github.com/Esri/mapbook-android``` to specify new remote upstream repository that will be synced with the fork. You can type ```git remote -v``` to verify the new upstream.
If there are changes made in the Original repository, you can sync the fork to keep it updated with upstream repository.
1. In the terminal, change the current working directory to your local project
2. Type ```git fetch upstream``` to fetch the commits from the upstream repository
3. ```git checkout master``` to checkout your fork's local master branch.
4. ```git merge upstream/master``` to sync your local `master` branch with `upstream/master`. **Note**: Your local changes will be retained and your fork's master branch will be in sync with the upstream repository.
## Testing With Robotium
The project includes a small suite of Robotium tests that test various features of the application. The Robotium tests for the mapbook-app will run best on an attached device, rather than in the emulator. Use the following steps to configure your environment for running the tests. During some of the tests, screen shots are captured by Robotium and by default are stored in the /sdcard/Robotium-Screenshots/ directory on the device.
1. Attach a non-emulated Android device to your computer.
2. Ensure location services are enabled on the Android device.
3. Ensure you have internet connectivity on the Android device.
4. Adjust the entries in your values/app_settings.xml.
5. Right-click on the MapbookTest.java file in Android Studio and select Run 'MapbookTest'.
## Requirements
* [JDK 6 or higher](http://www.oracle.com/technetwork/java/javase/downloads/index.html)
* [Android Studio](http://developer.android.com/sdk/index.html)
## Resources
* [ArcGIS Runtime SDK for Android Developers Site](https://developers.arcgis.com/android/)
* [ArcGIS Mobile Blog](http://blogs.esri.com/esri/arcgis/category/mobile/)
* [ArcGIS Developer Blog](http://blogs.esri.com/esri/arcgis/category/developer/)
* [Google+](https://plus.google.com/+esri/posts)
* [twitter@ArcGISRuntime](https://twitter.com/ArcGISRuntime)
* [twitter@esri](http://twitter.com/esri)
## Issues
Find a bug or want to request a new feature enhancement? Let us know by submitting an issue.
## Contributing
Anyone and everyone is welcome to contribute. We do accept pull requests.
1. Get involved
1. Report issues
1. Contribute code
1. Improve documentation
## MDTOC
Generation of this and other documents' table of contents in this repository was performed using the [MDTOC package for Atom](https://atom.io/packages/atom-mdtoc).
## Licensing
Copyright 2017 Esri
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
A copy of the license is available in the repository's [LICENSE](LICENSE) file.
For information about licensing your deployed app, see [License your app](https://developers.arcgis.com/android/license-and-deployment/).