B4X:
Sub Button4_Click
Activity.LoadLayout("2nd")
ListView1.Initialize("ListView1")
Activity.AddView(ListView1, 0, 0, 100%x, 70%y)
ListView1 = File.ListFiles(File.DirInternal)
Panel1.Visible = False
Panel3.Visible = True
End Sub
Above are my list view coding. What it was supposed to do is to show me other page that consist of the list view of the files that I have had in my saved files when I click the button. However, when I clicked it, there's an error on it and it just opt out. I thought putting in the ListView1 = File.ListFiles(File.DirInternal) code was supposed to lead me to the saved files. Anybody know what have I done wrong and explain it to me please? I'll attach the full in this post.