Hello All, I would like to develop an app with offline capabilities with the ability to download basemaps as tile packages similar to ArcGIS Collector. Is there a sample that show the workflow for accomplishing this? Does anyone have a workflow (code sample) they would be willing to share that does this. Also, is there a way within QT Creator to simulate offline mode when testing the apps using appstudio?
If you have access to the Runtime SDK samples, you can reference the Tiled Layers > "Download tile cache online" sample. It shows how to take an online service that has the Export Tiles capability enabled, and generate a tile cache to use offline with ArcGISLocalTiledLayer.
What do you mean for simulating offline mode? AppFramework should have an isOnline type of flag that will tell you if you have a network connection or not. Maybe you could turn off your WiFi to simulate going in offline mode?
a good starting point is the Download Package Sample included with AppStudio for ArcGIS. Here is how you can find it:
To run the samples, simply double click on them on your Desktop.
To open the source code, simply select the sample in the gallery, and push the Qt Creator button. To run the app from within Creator do a Alt-Shift-R.
Hope it helps.
Thank you all for your helpful responses. Luke, the Runtime SDK samples has exactly what I was looking for and much more. This will definitely aid in the development of our app moving forward.