Hi Shane,
a good starting point is the Download Package Sample included with AppStudio for ArcGIS. Here is how you can find it:
- Open AppStudio for ArcGIS Desktop Edition
- Login with your ArcGIS Online credentials
- Expand the Search (top-right corner) and expand the Groups section
- Check the Sample Apps Group
- Download the Internal Package and Download TPK samples
To run the samples, simply double click on them on your Desktop.
- Download TPK: When the app starts, it checks to see if a TPK is stored locally. If not, it reaches out to ArcGIS Online and downloads the TPK. Once the TPK is local, it is added to the map. At the moment, you can go offline and use the map. I like this sample because it shows how you can separate the app and the TPK, allowing for easy updates to your TPK without having to touch the app. The sample can be modified to have the app download the package again if the date in ArcGIS Online is newer than the local file.
- Internal Package: This sample embeds the TPK with your app
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.
Ismael