Android Question how do i create stringlist ?

madammar

New Member
i am new to this B$A development environment it feels very good environment so far , i am trying to understand the basics how do i create string list ?
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

madammar

New Member
welcome in th e community

B4X:
dim mylist as List
mylist.initialize
mylist.Add("This is a String")
mylist.Add("another string")

Yes i am missing the tutorial its very useful but some stuff did not found in the tutorial section
is this List need to be free some where or its free it self ?
also can i assign this list To Webview in loadhtml function ?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
is this List need to be free some where or its free it self ?
No. The memory will be released by the garbage collector when there are no live references to the list.

also can i assign this list To Webview in loadhtml function ?
You need to better explain what you are trying to do.
 
Upvote 0

madammar

New Member
I am trying to use webview as chatbox
So I thought that I can add strings in a list then load it as complete page in webview each time I need .

Maybe there is better way that I can follow
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…