Changes

Jump to: navigation, search

Testing Android Studio Apps on a Physical Android Device

240 bytes removed, 18:36, 16 January 2015
no edit summary
</pre>
== Enabling ADB on Android 45.4 0 based Devices ==
Before ADB can connect to an Android device, that device must first be configured to allow the connection. On phone and tablet devices running Android 45.4 0 or later, the steps to achieve this are as follows:
1. Open the Settings app on the device and select the About tablet or About phone option.
2. On the About screen, scroll down to the Build number field (Figure 6-1) and tap on it seven times until a message appears indicating that developer mode has been enabled.
[[Image:android_about_screenandroid_about_screen2.png|The Build Number on the About screen of an Android 45.4 0 device]]
3. Return to the main Settings screen and note the appearance of a new option titled Developer options. Select this option and locate the setting on the developer screen entitled USB debugging. Enable the checkbox next to this item as illustrated in Figure 6-2 to enable the adb debugging connection.
[[Image:android_enable_usb_debuggingandroid_enable_usb_debugging2.png|Enabling USB debugging on an Android 45.4 0 device]]
Figure 6-2
[[Image:android_media_device_connectionandroid_media_device_connection2.png|Android device connected notification]]
Figure 6-3
 
 
5. Select the media device notification entry and on the resulting panel (Figure 6-4) change the connection type to Camera (PTP).
 
[[Image:android_connect_as_camera_ptp.png|Configuring an Android device as a PTP camera device]]
 
Figure 6-4
[[Image:android_studio_choose_device_physicalandroid_studio_choose_device_physical2.png|Choosing a physical device in the Android Studio device chooser]]
Figure 6-11

Navigation menu