Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Android
  4. Where is the location of sqlite db on android device

Where is the location of sqlite db on android device

Scheduled Pinned Locked Moved Android
databaseandroidsqlite
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    aahamdan
    wrote on last edited by
    #1

    Hi Expert, I have developed android program that save data on SQLite Database, I need to know where is the location of created database, furthermore, I need to save database file on the root of android device or on custom path, I don't need to save created file on hidden file. Regards, Ahmad

    OriginalGriffO N 2 Replies Last reply
    0
    • A aahamdan

      Hi Expert, I have developed android program that save data on SQLite Database, I need to know where is the location of created database, furthermore, I need to save database file on the root of android device or on custom path, I don't need to save created file on hidden file. Regards, Ahmad

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here... A very quick search using your subject as the search term gave over half a million hits: Where is the location of sqlite db on android device - Google Search[^] - all of the hits on the first page tell you where it is. In future, please try to do at least basic research yourself, and not waste your time or ours.

      Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      A 1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here... A very quick search using your subject as the search term gave over half a million hits: Where is the location of sqlite db on android device - Google Search[^] - all of the hits on the first page tell you where it is. In future, please try to do at least basic research yourself, and not waste your time or ours.

        Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

        A Offline
        A Offline
        aahamdan
        wrote on last edited by
        #3

        I did my best, and coming here was my last choice.

        1 Reply Last reply
        0
        • A aahamdan

          Hi Expert, I have developed android program that save data on SQLite Database, I need to know where is the location of created database, furthermore, I need to save database file on the root of android device or on custom path, I don't need to save created file on hidden file. Regards, Ahmad

          N Offline
          N Offline
          Nick_3141592654
          wrote on last edited by
          #4

          Ahmed, an Android application has an "Internal" data area - that is, an area within the Android file system where data used by that application alone resides. An app's sqlite DB lives in this area. You say that you want the DB to exist in the "root" area. In that case you're talking about "External" storage. It's called external because it is outside the app's assigned part of the file system. Most applications, that aren't part of the system, do NOT access External storage, and to do so an app requires special permissions that are not granted by default. Can you explain more about what problem you're trying to solve by wanting to put your DB in External storage? There may be a more conventional and easier way to achieve your aims.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups