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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:37:00+00:00 2026-06-10T14:37:00+00:00

The only way to get and visualize the data table of my database inside

  • 0

The only way to get and visualize the data table of my database inside external devices is by atribution of privilege of superuser privilege in external device? Don’t exist another way that allow visualize the data tables as in emulator?

I make this question because this way of superuser privilege not inspire me security.

Thanks for your attention (PS: Sorry by mistakes, but english is not my mother language 🙂 )

  • 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-10T14:37:02+00:00Added an answer on June 10, 2026 at 2:37 pm

    You can add functionality to export the database file from the internal read-only app storage to the SD-Card by simply letting your app copy the file.

    Then use whatever ways you have to get it from there. Works on any device and no root required.

    private void exportDb() {
        File database = getDatabasePath("myDb.db");
        File sdCard = new File(Environment.getExternalStorageDirectory(), "myDb.db");
        if (copy(database, sdCard)) {
            Toast.makeText(this, "Get db from " + sdCard.getPath(), Toast.LENGTH_LONG).show();
        } else {
            Toast.makeText(this, "Copying the db failed", Toast.LENGTH_LONG).show();
        }
    }
    
    private static boolean copy(File src, File target) {
        // try creating necessary directories
        target.mkdirs();
        boolean success = false;
        FileOutputStream out = null;
        FileInputStream in = null;
        try {
            out = new FileOutputStream(target);
            in = new FileInputStream(src);
            byte[] buffer = new byte[8 * 1024];
            int read;
            while ((read = in.read(buffer)) != -1) {
                out.write(buffer, 0, read);
            }
            success = true;
        } catch (FileNotFoundException e) {
            // maybe log
        } catch (IOException e) {
            // maybe log
        } finally {
            close(in);
            close(out);
        }
        if (!success) {
            // try to delete failed attempts
            target.delete();
        }
        return success;
    }
    
    private static void close(final Closeable closeMe) {
        if (closeMe != null)
            try {
                closeMe.close();
            } catch (IOException ignored) {
                // ignored
            }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After loading a model I the only way to get to the data seems
I'm trying to get the elapsed times in miliseconds in windows. The only way
Is there a way to get some text to appear only when the [draft]
is there any way in Oracle, to get only the dd-mm-yyyy part from an
Without resorting to asymptotic notation, is tedious step counting the only way to get
It seems like the only way to get approval for a Bot account is
The sha1 hash of abc is a9993e364706816aba3e25717850c26c9cd0d89d The only way to get Mathematica to
With the AddressBook API, the only way to get a list of all of
I realized the only way to get a background image properly aligned was counting
In Python , is the following the only way to get the number of

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.