/* Copyright 2012 ESRI
*
* All rights reserved under the copyright laws of the United States
* and applicable international laws, treaties, and conventions.
*
* You may freely redistribute and use this sample code, with or
* without modification, provided you include the original copyright
* notice and use restrictions.
*
* See the 锟絊ample code usage restrictions锟�document for further information.
*
*/
package com.esri.arcgis.android.samples.helloworld;
import android.app.Activity;
import android.os.Bundle;
import com.esri.android.map.MapView;
import com.esri.android.map.ags.ArcGISTiledMapServiceLayer;
/**
* The HelloWorld app is the most basic Map app for the ArcGIS Runtime SDK for
* Android. It shows how to create a {@link #mMapView} object and populate it
* with a {@link #tileLayer} and show the layer on the map.
*
* @author EsriAndroidTeam
* @version 2.0
*
*/
public class HelloWorld extends Activity {
MapView mMapView = null;
ArcGISTiledMapServiceLayer tileLayer;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
// Retrieve the map and initial extent from XML layout
mMapView = (MapView) findViewById(R.id.map);
/* create a @ArcGISTiledMapServiceLayer */
tileLayer = new ArcGISTiledMapServiceLayer("http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer");
// Add tiled layer to MapView
mMapView.addLayer(tileLayer);
}
@Override
protected void onPause() {
super.onPause();
mMapView.pause();
}
@Override
protected void onResume() {
super.onResume();
mMapView.unpause();
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
HelloWorld.zip (42个子文件)
HelloWorld
bin
classes.dex 2.19MB
res
drawable-ldpi
icon.png 2KB
drawable-hdpi
icon.png 4KB
drawable-mdpi
icon.png 2KB
dexedLibs
httpcore-4.0.1-c258a8883a4dc1dae3b26db86918e0a8.jar 75KB
jackson-core-lgpl-1.9.5-a1605a3dd64ecfdba20d647011ca7347.jar 118KB
commons-codec-1.3-fc46134bb39d36f8eb9d09a92b432292.jar 32KB
annotations-ce947a47e3a9c4796cbc0751aff11161.jar 943B
ArcGIS_Android-8445bd74887509772884bcbb0d6404a5.jar 537KB
jackson-mapper-lgpl-1.9.5-8d0a41b6f0527c04e0072ade82ffc3e9.jar 264KB
classes
com
esri
arcgis
android
samples
helloworld
BuildConfig.class 393B
R$layout.class 466B
R$id.class 453B
R$drawable.class 472B
R$attr.class 412B
R.class 699B
HelloWorld.class 1KB
R$string.class 499B
resources.ap_ 11KB
AndroidManifest.xml 1KB
res
drawable-ldpi
icon.png 2KB
drawable-hdpi
icon.png 4KB
values
strings.xml 178B
drawable-mdpi
icon.png 3KB
layout
main.xml 467B
gen
com
esri
arcgis
android
samples
helloworld
BuildConfig.java 184B
R.java 756B
.settings
org.eclipse.core.resources.prefs 111B
src
com
esri
arcgis
android
samples
helloworld
HelloWorld.java 2KB
.project 813B
.classpath 1KB
project.properties 377B
AndroidManifest.xml 1KB
libs
jackson-mapper-lgpl-1.9.5.jar 766KB
httpclient-4.0.1.jar 304KB
armeabi-v7a
libruntimecore_java.so 11.42MB
commons-codec-1.3.jar 49KB
armeabi
libruntimecore_java.so 10.23MB
android-support-v4.jar 543KB
jackson-core-lgpl-1.9.5.jar 228KB
ArcGIS_Android.jar 1.3MB
httpcore-4.0.1.jar 183KB
共 42 条
- 1
xiaogezq0
- 粉丝: 2609
- 资源: 35
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页