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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:38:09+00:00 2026-05-23T01:38:09+00:00

Hi everyone i have one question i.e. i have some database table’s which are

  • 0

Hi everyone i have one question i.e. i have some database table’s which are already exist in database but i am not able to use them in my application. I am able to connect to database but i am not getting the tables which i have already created. I am not creating tables programmectically but i want to use existing table in my database. If i am creating tables programmetically then it’s fine but how can i use existing table.
If anyone is having any idea plz suggest me some solution.

  • 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-23T01:38:10+00:00Added an answer on May 23, 2026 at 1:38 am

    Answer to my question is simpelly copy your database by using the followig code.

    private void CopyDataBase() throws IOException {

        // open the local database 
            InputStream copy = context.getAssets().open(UR_DB_NAME);
    
        // path where database is created 
        String path_DB = DB_PATH + DB_NAME;
    
        // Open the empty dbOut as the output stream
        OutputStream dbOut = new FileOutputStream(path_DB);
    
        // copy database from the inputfile to the outputfile
        byte[] buffer = new byte[1024];
        int length;
        while ((length = copy.read(buffer)) > 0) {
            dbOut.write(buffer, 0, length);
        }
    
        // Close the streams
        dbOut.flush();
        dbOut.close();
        copy.close();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok, so i have been trying to put everyone one of my classes in
I have a problem in my project with the .designer which as everyone know
As everyone knows, sometimes developers have to document stuff. Or capture some stuff for
Everyone in my office uses Macs and therefore most use Safari. We have a
What java GUI layout manager does everyone use? Lately, I have been using MigLayout
The question will best be understood with an example. I have Hospital One who
My question is one I have pondered around when working on a demanding network
Hi everyone this is my first question here and im not a programmer. I
Everyone has accidentally forgotten the WHERE clause on a DELETE query and blasted some
Everyone (at least everyone who uses a compiled language) has faced compilation errors but

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.