Android Question Copy and write files

Discussion in 'Android Questions' started by Sub7, Feb 5, 2015.

  1. Sub7

    Sub7 Active Member Licensed User

    Hello all,
    i write and read some user informations in a file, the following pseudocode works on all my devices but i just got a feedback from a customer that the app force closes in his device,
    exactly when it is writing the file, what it could be?
    Is possible that file.dirinternal is not writable? this can happen?

    Sub Activity_Create(FirstTime As Boolean)

    If File.Exists(File.DirInternal,"file.syx") = False Then

    'Write default dummy values
    End if

    End sub

    'This is the sub i use to write in the file

    Sub writeUserFile(data1 As Int, data2 As Int, data3 As Int, data4 As String, data5 As String, data6 As String, data7 As Int)
    Dim raf As RandomAccessFile
    Dim WriteList As List
    File.DirInternal, "file.syx"False)
    "password", raf.CurrentPosition)

    End Sub

    so if dirinternal is always available, what's going on? :)
    Last edited: Feb 5, 2015
  2. Erel

    Erel Administrator Staff Member Licensed User

    File.DirInternal is always writable.
    Sub7 likes this.
  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