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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:42:15+00:00 2026-05-31T21:42:15+00:00

I successfully inserted some data into my sqlite database(I confirmed this by printing out

  • 0

I successfully inserted some data into my sqlite database(I confirmed this by printing out the long ID that is returned from an insert and it was something other than -1) so i know that it is there. problem is is that the sqlite database that I am viewing using the SQLite Database Browser is in the assets folder(i used this to copy already made up data for other tables into the tablet directory) – in this case it is /data/data/packagename/files/ –

Tablet is motorola xoom ICS(4.0.3) and developing on a macbook pro. Any suggestions on what i could use to view the data?

the adb program is in android-sdk-mac_x86/platform-tools and i perform the following command:

./adb shell

  • but i get no where – nothing but permission issues. I saw where someone suggested the firefox add-on but …really? is that the best there is? Seems like to me there would be a better avenue for developers to look at their data in the database. If you are going to insert stuff into the database you want to be able to look at the contents in case you need to debug your selects later(as a very good example).

EDIT: i cannot get the firefox plugin to work either. Doesnt seem to recognize any external devices.

any ideas? 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-05-31T21:42:16+00:00Added an answer on May 31, 2026 at 9:42 pm

    I had a similar issue – and decided to put a button in my app that when clicked, copied the database to the SD Card. You can then use DDMS to copy the database from the SD Card to your connected machine and fire up whatever you want to inspect the db, verify values, etc.

    package com.me.myPackage;
    
    import java.io.File;
    
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    
    import android.content.Context;
    import android.os.Environment;
    import android.widget.Toast;
    
    public class Utility {
    
    public static void backupDatabase(Context context) throws IOException {
    
        // Open your local db as the input stream
        String inFileName = PATH_TO_YOUR_DB;
        File dbFile = new File(inFileName);
        FileInputStream fis = new FileInputStream(dbFile);
    
        File outputDirectory = new File(
                Environment.getExternalStorageDirectory() + "/PATH_FOR_BACKUP");
        outputDirectory.mkdirs();
        SimpleDateFormat sdf = new SimpleDateFormat(Constants.DATE_TIME_FORMAT_FOR_DATABASE_NAME); // append date time to db name
    
        String backupFileName = "/MyApp_" + sdf.format(new Date()) + ".db3"; 
        String outFileName = outputDirectory + backupFileName;
    
        // Open the empty db as the output stream
        OutputStream output = new FileOutputStream(outFileName);
    
        // transfer bytes from the inputfile to the outputfile
        byte[] buffer = new byte[1024];
        int length;
        while ((length = fis.read(buffer)) > 0) {
            output.write(buffer, 0, length);
        }
        // Close the streams
        output.flush();
        output.close();
        fis.close();
    
        Toast.makeText(context, "Database backup complete", Toast.LENGTH_LONG)
                .show();
    }
    

    }

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

Sidebar

Related Questions

I want to import data from Excel worksheet into SQL Server database (2008). I
I've recently written a custom API for inserting data into my database from multiple
I'm using a transmorgrifier recipe to import some data from drupal into a Plone
I successfully installed the latest QuantumGrid from DevExpress, but I've never worked with this
I have successfully connected to an Oracle database (10g) from C# (Visual Studio 2008)
I have a script where I submit some fields that get entered into a
I successfully created the Database and inserted a row however I cannot Query it
Is there some way to get a value from the last inserted row? I
I have an INSERT statement that looks like this: INSERT INTO officer (officer_number, name,
I've been struggling to make it work, but cannot pass the inserted data from

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.