Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3482902
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T10:36:45+00:00 2026-05-18T10:36:45+00:00

In order to publish my Android app I had to change the package name

  • 0

In order to publish my Android app I had to change the package name from the com.example.project I had used during development.
Although, after I changed the package name I cannot access the sqlite database any longer. I tried accessing it through the .adb, and it works with the old package-name but not the new one.

How can i access the db in order to put it under the new package? I have a copy of the old un-altered project file.

Many thanks! AK

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T10:36:45+00:00Added an answer on May 18, 2026 at 10:36 am

    Is this on the emulator or a phone? If you are developing on a phone and have built up a DB you want:

    • If the phone is rooted – use a file explorer (or DDMS views file explorer) and get it from /data/data/com.example.prackage/databases and place it in your new package folder.

    • If the phone isn’t rooted – if you have the original package code, create a backup script to copy the sqlite file from the folder /data/data/com.example.prackage/databases – you will need to know the DB file name too. Then in the new package create the reverse of the code to copy the file from the SDCard to the new packages DB folder.

    • If on the emulator – use the DDMS views file explorer to get the file from the database folder.

    This link may help with backup and restore:

    Backup / Restore Sqlite to SDCard

    UPDATE

    One method, using the DDMS File explorer

    1. Navigate to data/data/com.old.package/databases
    2. Select the database file
    3. Click on the floppy disk with an arrow (top right of the file explorer)
    4. Save the file somewhere you know.
    5. Navigate to data/data/com.new.package/databases
    6. Click on the phone with an arrow.
    7. Find the file you just saved.

    That should copy the DB to the new package so you can use it as you did before.

    The above is a GUI for using the adb from a command prompt to copy the DB file from the old package to the new package, something like:

    adb pull /data/data/com.example.package/databases C:\tempdb

    That should make a copy of the old DB, then:

    adb push C:\tempdb /data/data/com.example.package/databases

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a facebook connect app to publish content to user's streams. In order
I am about to publish the paid app to the android market. The app
I have created an app which I publish in the android market. After a
Order deny,allow deny from all allow from xx.xx.x.xx RewriteRule . - [F] I have
in order to recover data from server I use XMLHttpRequest and my code is
When I publish a component in SDL Tridion, the page it's used on doesn't
We publish an update patch to our software package in a single executable file.
I'm about to publish a new version of an app to the Market. In
I have a query that looks like this: SELECT article FROM table1 ORDER BY
I'm currently developing an Android application using InApp Billing functionality. In order to perform

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.