Re: How to Bundle Database File In APK and How To Access That File In Phone

This is a discussion on Re: How to Bundle Database File In APK and How To Access That File In Phone within the Android Forum forums, part of the Android Discussions category; Hi All, I am new to android apk creation. I am seeking your kind help. 1. I would like to bundle/add an database file into ...

Results 1 to 2 of 2

Thread: Re: How to Bundle Database File In APK and How To Access That File In Phone

  1. #1
    Android Lurker epic's Avatar
    Join Date
    Jul 2016
    Posts
    1

    Re: How to Bundle Database File In APK and How To Access That File In Phone

    Hi All,


    I am new to android apk creation. I am seeking your kind help.

    1. I would like to bundle/add an database file into the apk, I have the source code of the apk, but science I am new to the android, I don't know in which folder I need to place that db so that once the apk get installed in the device, I can access that database file.

    2. I also want to know how to see that file once that apk get installed in the android phone. Generally in android we won't be having the access to the files which are installed. For example, In windows, we can find the installed files in the "program files" folder, is there any way to see these files in the phone.?

    Looking forward for your kind help.

    Thanks and Regards

  2. Android.net is the premier Android Forum. Registered users do not see these ads. .

  3. #2
    Android Lurker maadidevelopment's Avatar
    Join Date
    Aug 2013
    Location
    India
    Posts
    11
    Thanked
    1 times
    Twitter
    mobileappsindia
    You can include a file in your assets/ folder. In your SQLiteOpenHelperonCreate() method, you can open the file and read from it, and use that to create your database.

Remove Ads

http://www.scramblerducati.org/

Sponsored Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. How to Access Boot File
    By PR41 in forum ZTE Android Phones
    Replies: 0
    Last Post: 11-22-2014, 01:34 PM
  2. How to install ZIP file or APK file on rooted N1
    By jigsb in forum Nexus One Development & Hacking
    Replies: 15
    Last Post: 02-04-2011, 02:41 PM
  3. trying to gain logical access to the sdcard - through its special file.
    By guywithaquestion in forum Nexus One Development & Hacking
    Replies: 0
    Last Post: 04-06-2010, 09:15 AM
Android Forum