'Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim writer As TextWriter
Dim Reader As TextReader
Dim EditText1 As EditText
Dim Button1 As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Button1_Click
writer.Initialize(File.OpenOutput(File.DirRootExternal, "test.txt" , False))
writer.WriteLine(EditText1.Text & CRLF)
End Sub
'in pratica ti salva ciò che scrivi sulla editext dentro la sd del telefono sotto forma di txt. con nome test.txt
' se vuoi salvare ad esempio all'interno della cartella del programma stesso allora devi inserire questo qui sotto.
'writer.Initialize(File.OpenOutput(File.DirAssets, "test.txt" , False))