The Android SDK ships with the Android Device Monitor (ADM) app, which is packed with features that help you develop and debug your app either while it is running in an emulator or on a device. The Android Device Monitor supersedes the Dalvik Debug Monitor Service (DDMS) app, which provides similar capabilities. In this section, we will look at how we can use ADM to manage files.
First, let's add a menu item under the Tools menu in Xamarin Studio for easy access by performing the following steps:
Android Device Monitor
for the title.Android Device monitor.bat
and click on Open. The SDK location can be determined by clicking on SDK Locations | Android in the Options dialog box.To copy files to an emulator or device, perform the following steps:
/storage/sdcard/POIApp
. There should be no files listed under the folder. While working with actual devices rather than emulators, the physical folder to navigate to may not be obvious due to various mounts that may be in place. For example, the actual location on my HTC One, /mnt/shell/emulated/0
. ADM will display mounts to the right-hand side of each folder listed as follows:Push
file onto the Device button in the upper-right corner of the tab. Navigate to the data
folder in the assets location, select poi1.json
, and click on Open.*.json
file in the data
folder.POIApp
. You should now see the POIs listed.The files that we uploaded from the assets
folder are simple text files encoded using JSON. The JSON specifications can be viewed at www.json.org. We will not cover the JSON specifications in this book, but you can create additional JSON files using any text editor and using the existing files as templates.
3.14.130.24