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

I have several different servers used for different purposes. Everyone use mysql, but it
everyone I have some question about tasks in Linux, I know that all tasks
Surprisingly can't find a match for my question. I have one table that I
I hope that this question will not have the same luck with this one
Ok, so i have been trying to put everyone one of my classes in
Hi every one I have these classe @Entity @Table(name = login, uniqueConstraints={@UniqueConstraint(columnNames={username_fk})}) public class
Hello every one I have wrote a simple code in html5 in which I
Hai every one I am developing an windows application in which i have to
everyone. I have some labels that I draw them in the xib file, and
the title might be too generic, but I have a very specific question about

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.