Hi,
I add one views in a layout by designer or by code.
Let set as exemple, 1 buttons (can be also a Panel view or else).
I gave it a name: BT1.
Using the code bellow, I can retrieve my button, but my problem is:
How to retrieve the name (BT1) or at least a unique ID for this button ???
My purpose is to get a unique identifier for my view each time the apk is launched (identifer must be the same each time the apk is launched)
Too involved by my project, I can't find how.
If solution is quite basic, sorry in advance !!!!.....
I add one views in a layout by designer or by code.
Let set as exemple, 1 buttons (can be also a Panel view or else).
I gave it a name: BT1.
B4X:
Dim BT1 as Button
bt1.initialize("BT1")
Activity.AddView(BT1, 10%x, 20%y, 10%x, 10%x )
Using the code bellow, I can retrieve my button, but my problem is:
How to retrieve the name (BT1) or at least a unique ID for this button ???
My purpose is to get a unique identifier for my view each time the apk is launched (identifer must be the same each time the apk is launched)
B4X:
For Each v As View In Activity.GetAllViewsRecursive
log(v.????)
Next
Too involved by my project, I can't find how.
If solution is quite basic, sorry in advance !!!!.....