Activity.LoadLayout("Layout1") 'example of layout with 1 button (btn), 2 labels(lbl1 and lbl2) and 1 panel (pnl)
'the tag names are: btn, lbl1, lbl2, pnl
Dim MyList As List
MyList.Initialize
For Each v As View In Activity.GetAllViewsRecursive
MyList.Add(v.Tag)
Next
File.WriteList (File.DirInternal, "mylist.txt", MyList)
Dim List1 As List
List1 = File.ReadList(File.DirInternal, "mylist.txt")
For i = 0 To List1.Size - 1
Log(List1.Get(i))
Next
' btn
' lbl1
' lbl2
' pnl