Obsolete: follow these instructions instead: https://www.b4x.com/b4a.html

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

hi how are you, could you help me solve a problem with my app? I am using b4a 9.8 and I test the apps on a cell phone with android 9 .... my app will need to save a list of data in a .txt permanently, but I have not been able to make this work already that when executing that part of the app it closes and I cannot find solutions could you guide me? Sub WRITE_SDcard
Dim List1 As List
List1.Add (ONA)
List1.Add (OFFA)
List1.Add (ONB)
List1.Add (OFFB)
List1.Add (ONC)
List1.Add (OFFC)
List1.Add (OND)
List1.Add (OFFD)
List1.Add (ONF)
List1.Add (OFFF)
File.WriteList (File.DirRootExternal, "List.txt", List1)
End Sub this I use to write


Sub LEO_LIST
Dim List1 As List
List1 = File.ReadList (File.DirRootExternal, "List.txt")
ON1 = List1.Get (0)
OFF1 = List1.Get (1)
ON2 = List1.Get (2)
OFF2 = List1.Get (3)
ON3 = List1.Get (4)
OFF3 = List1.Get (5)
ON4 = List1.Get (6)
OFF4 = List1.Get (7)
ON5 = List1.Get (8)
OFF5 = List1.Get (9)
End Sub
and esot I use it to read the app compiles well but when testing it stops working .. ... I would really appreciate your help to make it work .... thank you very much!


PD:
Download an example with the same lines of code that was made for an older android and that app if it works on my phone

pablolagreca
Автор

Did I miss where you downloaded the Resources?

allannyb