DZone
Mobile Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Mobile Zone > Ionic: How to Access or Browse SQLite Database

Ionic: How to Access or Browse SQLite Database

The article has instructions on how you can access or browse SQLite database embedded in your android app.

Ajitesh Kumar user avatar by
Ajitesh Kumar
CORE ·
Jul. 08, 16 · Mobile Zone · Tutorial
Like (1)
Save
Tweet
11.82K Views

Join the DZone community and get the full member experience.

Join For Free

The article has instructions on how you can access or browse SQLite database embedded in your android app. The way that works for me is to copy the database onto my system and access the same.

Make sure you have connected your mobile phone to your laptop/desktop. Check with command “adb devices” to see that your device (phone) is listed.

The following commands can be used to get the Cordova SQLite database on your hard disk filesystem:

  • adb shell
  • run-as package-name-of-the-app
  • chmod 666 databases/database_name
  • exit
  • cp /data/data/package-name-of-app/databases/database_name /sdcard/
  • run-as package-name-of-the-app
  • chmod 600 databases/database_name
  • exit; exit

Once you are on system command prompt, execute the following command to copy the database file to current directory:

adb pull /sdcard/database_name 


With the above command, you should be able to find the database copied in the current directory.

Use SQLite browser to open the database and browse the data.

That is it!

Database SQLite Ionic (mobile app framework)

Published at DZone with permission of Ajitesh Kumar, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Top 10 Java Language Features
  • Why Blockchain Technology Is the Future of Data Storage
  • How to Submit a Post to DZone
  • TURN Time Into Value

Comments

Mobile Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo