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 7842891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:25:33+00:00 2026-06-02T16:25:33+00:00

Hello i had implemented this code Using your own SQLite database in Android applications

  • 0

Hello i had implemented this code Using your own SQLite database in Android applications

It takes my db from assets folder and copy it in databases folder into device. Now how could i get that databse from my device ?

or to get is just possible if my device is rooted or even then it’s can’t be done ?

Thanks.

  • 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-06-02T16:25:36+00:00Added an answer on June 2, 2026 at 4:25 pm

    “currentDBPath” contains the path of the DB. You can copy it as a file and save it some where else using the following steps.

    String currentDBPath = "/data/"+getApplicationInfo().packageName+"/databases/db_name";
    
    FileChannel src = new FileInputStream(currentDB).getChannel(); // source
    FileChannel dst = new FileOutputStream(backupDB).getChannel(); // destination
    dst.transferFrom(src, 0, src.size()); // to copy from source to destination
    src.close();
    dst.close();
    

    Hope this is what you are looking for.

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

Sidebar

Related Questions

hello i had this code and it worked well: private void Textparsing() { using
I had this code trace in my Razor view @{ string markerPlacementScript = alert('Hello');
Hello I have this query... if (isset($_REQUEST['deletePost'])) { $q = $dbc -> prepare(DELETE FROM
Hello I'm trying to take backup from mysql command line client. I'm using mysqldump
Say if I had a string which had this text/html stored in it: Hello.
I had my code working earlier today, with first asks for your name with
Hello I have strange problem. I configured spring + hibernate. I`m using annotation configuration
Hello I am building a website using JSF 2.0. I am trying to set
(source: kominetz.com ) Hello. I'm diving into iOS development and am building my own
Introduction Hello folks, I recently learned to program in C! (This was a huge

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.