Learning Android™ Application Programming: A Hands-On Guide to Building Android Applications
by James Talbot, Justin McLean, Jorge Hernandez
Checking Table Creation
Android Debug Bridge contains a command-line tool that lets you connect to your device or emulator and perform various operations, including installing APK files and looking at the databases in the emulator or on a USB-connected device, but only if the device is rooted or the database is on the SD card.
The adb devices command shows a list of connected devices and emulators. First, connect to the emulator from the command line by typing this command:
adb -s emulator-5554 shell
This assumes you have only one emulator running. If you have more than one emulator running, look in the title bar of the emulator to get the correct name.
The –s emulator-5554 option connects to the emulator and shell, and it will start a remote ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access