Android Development--adb,sqlite Database application

Source: Internet
Author: User

First, play the adb

ADB's all-called Android Debug Bridge, is the role of the Debug bridge.

What's the use of ADB? : with adb tools, we can manage the status of devices or phone simulators. You can also do a lot of phone operations, such as installing software, system upgrades, running shell commands, and so on.

1, find the next good eplice file, copy this file path, such as my E:\adt-bundle-windows-x86_64-20140702\sdk\platform-tools, open cmd

      

Publish Android Program

View the line connection device:adb devices

        Shell mode to enter simulator: adb shell

           

instructions for installing the application: adb install <.apk storage path >

           

            

        Uninstall the application's instructions: ADB Uninstall <Android Program package name >

          Note: Instead of specifying the program name during the uninstall operation, the package name can be opened

              

       Get administrator privileges: adb root

              

Use ADB to implement the brush operation:

ADB Shell Mount-a
ADB push recovery-rav1.0g.img/system/recovery.img
ADB push recovery-rav1.0g.img/sdcard/recovery-rav1.0g.img
adb shell flash_image recovery/sdcard/recovery-rav1.0g.img reboot

      re-mount file system: ADB remount

Restart your phone: adb reboot

    

Manipulating databases with ADB directives

Learn about SQLite data types first

          

        Perform ADB shell operations into your Android operating system

Execute the following command: Sqlite3 settings.db

           

Get help:.

           

Create a table

Add data

          

Querying data

          

modifying data

          

Delete data

            

Delete tables: drop table name;

Exit Sqlite;quit.

Android Development--adb,sqlite database application

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.