ArcGIS Runtime API for Android v100.12.0 samples. The main
branch of this repository contains sample app modules for the latest available version of the ArcGIS Runtime API for Android. Samples released under older versions can be found through the git tags. Please read our wiki for help with working with this repository.
compileSdkVersion 30
Please read our developer instructions wiki page to set up your developer environment with Android Studio. Instructions include forking and cloning the repository for those new to Git.
Accessing Esri location services, including basemaps, routing, and geocoding, requires authentication using either an API Key or an ArcGIS identity:
The Android samples in this repository have been structured to use an API key, set once, which will run in all samples. Set your API key in the gradle.properties
file located in the /.gradle
folder within your home directory (/Users/<user_name>/.gradle/gradle.properties
). The API_KEY property should contain quotes around the key itself: API_KEY = "YOUR_API_KEY"
Once you have set up your developer environment you can run any sample from within Android Studio by selecting the app module from the Edit Configurations drop down and clicking the Run button from the toolbar.
You can execute all the build tasks using the Gradle Wrapper command line tool. It's available as a batch file for Windows (gradlew.bat) and a shell script for Linux/Mac (gradlew.sh) and it is accessible from the root of the project.
$ ./gradlew assembleDebug
Device
adb -d install path/to/sample.apk
Built APK's are saved to arcgis-runtime-samples-android/[module-name]/build/outputs/apk/. More information about running apps on devices can be found here.
The samples in this repository can also be viewed in a single sample viewer app. It can be found on the Play Store or on ArcGIS Online. If downloading from ArcGIS Online, follow these instructions to run the app locally on your device:
adb -d install path/to/ArcGIS_Runtime_Sample_Viewer_Android_10010.apk
Have a question about functionality in the ArcGIS Runtime API for Android? Want to ask other users for development advice, discuss a workflow, ask Esri staff and other users about bugs in the API? Use GeoNet for any general questions like this, so others can learn from and contribute to the discussion.
Do you have something to contribute? Send a pull request! New Samples, bug fixes and documentation fixes are welcome.
Have a problem running one of the samples in this repo? Does the sample not work on a specific device? Have questions about how the code in this repo is working? Want to request a specific sample? In that case, submit a new issue.
Anyone and everyone is welcome to contribute. We do accept pull requests.
Please see our guidelines for contributing doc
Copyright 2021 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.txt file.
ArcGIS产品线为用户提供一个可伸缩的,全面的GIS平台。ArcObjects包含了大量的可编程组件,从细粒度的对象(例如,单个的几何对象)到粗粒度的对象(例如与现有ArcMap文档交互的地图对象)涉及面极广,这些对象为开发者集成了全面的GIS功能。每一个使用ArcObjects建成的ArcGIS产品都为开发者提供了一个应用开发的容器,包括桌面GIS(ArcGIS Desktop),嵌入式GIS
我按照这里的指南从Maven Archetype创建了一个新泽西HTTP服务器。一切都很好,资源按预期返回字符串,这是资源: 我按照这里的指南使用下载的ArcGIS运行时SDK。我创建了以下简单的Java类来确定点是否在几何体(圆、矩形、多边形等)中: 此类工作正常,根据位置输入生成“true”或“false”。 当我试图合并第一段和第二段代码时,问题出现了,我将第二段代码的内容放在了第一段代码中
arcgis-js-api A minified, unbuilt version of the ArcGIS API for JavaScript AMD modules. Features You can install these modules via npm and create your own custom builds, for example, with Webpack, Req
Dynamic request routing based on redis Using LuaRocks
Obtaining a Sample To perform the randomness tests on an application's tokens, it is first necessary to obtain a suitable sample of those tokens. This can be done in two ways: by performing an automat
相对于Swoole1.x,Swoole4+提供了协程这个大杀器,所有业务代码都是同步的,但底层的IO却是异步的,保证并发的同时避免了传统异步回调所带来的离散的代码逻辑和陷入多层回调中导致代码无法维护, 要达到这个效果必须所有的IO请求都是异步IO,而Swoole1.x时代的提供的Mysql、Redis等客户端虽然是异步IO,但是是异步回调的编程方式,不是协程方式,所以我们在Swoole4时代移除了