I have been testing all the aspects of my application, including writing to an external file. The following code is representative of what I have been using.
I had assumed since it was being written to 'dirrootexternal' that it was being written to the sdcard. I found out that is not the case. It is still internal on the device. That's fine because when I connect via usb, I can transfer those files to my computer and it works great. So if the internal storage of the device is full, how would files be written to the sd and bypass internal? I am guessing that the typical use of an sd would be to transfer music, videos and movies to a device. My tablet has 4gb of internal storage so I doubt I will ever need anything else but I suppose I am not a typical user. Thank goodness I have a device to work with to learn all these things before I release my app to the public.
Jim
B4X:
If chkmultinvWriter.Checked =True Then
filename=txtfilename.Text
Msgbox("A file named " & filename & " will be created for your use. See manual for details","Write to sd card")
writer.Initialize (File.OpenOutput (File.DirRootExternal ,filename,True))
writer.Write("MULTIPLE INVERSE ROUTINE" & CRLF & CRLF)
writer.Write ("Point range = " & txtrange.Text & CRLF )
writer.Write ("Inverses " & CRLF )
writer.Write(txtdisplay.Text )
writer.Close
End If
I had assumed since it was being written to 'dirrootexternal' that it was being written to the sdcard. I found out that is not the case. It is still internal on the device. That's fine because when I connect via usb, I can transfer those files to my computer and it works great. So if the internal storage of the device is full, how would files be written to the sd and bypass internal? I am guessing that the typical use of an sd would be to transfer music, videos and movies to a device. My tablet has 4gb of internal storage so I doubt I will ever need anything else but I suppose I am not a typical user. Thank goodness I have a device to work with to learn all these things before I release my app to the public.
Jim