Back to project page quickstart-map-android.
The source code is released under:
Apache License ? 2.0 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by...
If you think the Android project quickstart-map-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.esri.template; /*w w w . j a v a 2s .c om*/ import android.app.Activity; import android.os.Bundle; import com.esri.quickstart.EsriQuickStart; import com.esri.quickstart.EsriQuickStart.MapType; public class EsriQuickStartTemplateActivity extends Activity { EsriQuickStart _esriQuickStartLib = null; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); _esriQuickStartLib = new EsriQuickStart(this,R.id.map); _esriQuickStartLib.addLayer(MapType.STREETS, null, null, null,true); } @Override protected void onDestroy() { super.onDestroy(); } @Override protected void onPause() { _esriQuickStartLib.pause(); super.onPause(); } @Override protected void onResume() { super.onResume(); _esriQuickStartLib.unpause(); } }