Establishment of the DAY4 database | | Database External Query | | Using the command line to manipulate the database

Source: Internet
Author: User

# # #数据库的创建

  1. Build a project
  2. Test first to see if a new project can run successfully
  3. Create a personcontrary package and establish a person class to implement the Basecolumns excuse, add all the table column names to this class, and declare the final variable
  4. Create a database helper class, override the method, and build a constructor method.

# # #数据库对外的查询

1. Copy the compile ' com.facebook.stetho:stetho:1.3.1 ' into the Build (app) and synchronize the code

public class MyApplication extends application {
public void OnCreate () {
Super.oncreate ();
Stetho.initializewithdefaults (this);
}
}
3. Add the Registration Form
4. Open Google Chrome, enter Chrome://inspect
# # #运用命令行来查看数据库
1. Go to Command Manager
2. Enter the ADB shell into the simulator console
3. Go to the database path
4. Enter Sqlite3 xxx.db Enter the SQL command to query the database by command

Establishment of the DAY4 database | | Database External Query | | Using the command line to manipulate the database

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.