Offline map viewing

4745
17
10-09-2013 02:48 AM
HaniuHokkaido
New Contributor III
Hi,

Is there a way to view an offline map (shapefile) in android ?
I am developing an app for android that is supposedly able to view offline map. Is it possible to be done using arcgis sdk for android ?
If not, is there any other way ?

thanks
0 Kudos
17 Replies
DanO_Neill
Occasional Contributor III
We support offline basemaps as *.tpk and offline features a JSON.  Currently the API does not support the shapefile format.  The next release will have added support for other offline files types.  To see our current support, refer to ArcGISLocalTileLayer.  The CreateLocalJsonFeatures sample shows a local *.tpk basemap and features from a feature layer persisted as JSON for offline usage.
0 Kudos
HaniuHokkaido
New Contributor III
Thanks Dan..

Do you have any sample / tutorial for using android SDK ? I am new to android programming
0 Kudos
canwang
New Contributor
We support offline basemaps as *.tpk and offline features a JSON.  Currently the API does not support the shapefile format.  The next release will have added support for other offline files types.  To see our current support, refer to ArcGISLocalTileLayer.  The CreateLocalJsonFeatures sample shows a local *.tpk basemap and features from a feature layer persisted as JSON for offline usage.


hey , i want to ask how can i open the shape file from sdcard when i use the 10.1 sdk,
0 Kudos
canwang
New Contributor
Thanks Dan..

Do you have any sample / tutorial for using android SDK ? I am new to android programming


after you prepare the arcgis android environment ,you can see the ducument in eclipse(help->help content->ArcGIS Runtime SDK for Android),also you can new sample project from (file -> new ->project->arcgis for android->arcgis sample for adnroid )
0 Kudos
EricBader
Occasional Contributor III
hey , i want to ask how can i open the shape file from sdcard when i use the 10.1 sdk,


There isn't support yet for accessing a shapefile directly in the api. Stay tuned for what's coming in future releases in 2014.
0 Kudos
DanO_Neill
Occasional Contributor III
Your best workflow for shapefiles is to convert them to a file geodatabase and use ArcGIS Desktop 10.2.1 to export as a Runtime geodatabase which will be supported in our upcoming v10.2 release.
0 Kudos
JasonAllen
New Contributor
Hi,

I have ArcGIS 10.1. How do I create a "Runtime" Geodatabase?
0 Kudos
JasonAllen
New Contributor
Hi again,

Updated to ArcGIS 10.2. I cannot see any "Runtime" geodatabase functionality? Also, I cannot find any patch for 10.2.1 or 10.2 SP1?
0 Kudos
DanO_Neill
Occasional Contributor III
There are two patterns to creating runtime geodatabases, 1. Services & 2. Desktop.  The desktop pattern will be a feature of the 10.2.1 release of the ArcGIS platform.  The services pattern is available on hosted feature services with enable sync feature.  The Android SDK Developer Guide has a Create an Offline map document which steps you through the services pattern under Include operational data > Generate a geodatabase from a feature service.  Let me know if you have any issues following that pattern to generate your runtime geodatabase files on device from hosted features services.
0 Kudos