Android Question sqlite database file on SDCard

Discussion in 'Android Questions' started by Binary01, Feb 12, 2015.

  1. Binary01

    Binary01 Member Licensed User

    Hi,

    I created a database app. It can access database from internal storage.
    sample code is here:

    'process global
    Dim DBFileName As String : DBFileName = "sample.db3"
    Dim DBFileDir As String : DBFileDir = File.DirDefaultExternal

    'Activity_Create
    If FirstTime Then
    If File.Exists(File.DirDefaultExternal, DBFileName) = False Then
    File.Copy(File.DirAssets, DBFileName, DBFileDir, DBFileName)
    End If
    SQL1.Initialize(DBFileDir, DBFileName, True)
    End If

    Now, I want to access database file on SD Card.
    How?

    Thanks.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    eps and Peter Simpson like this.
  3. Binary01

    Binary01 Member Licensed User

    Thank Erel for your quick reply.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice