Android Question List InsertAt

peggjones

Active Member
Licensed User
Longtime User
Whenever I try to use InsertAt with a list I get

"unsupported operation exception"

Is this a bug?

Many thanks.
 

Roycefer

Well-Known Member
Licensed User
Longtime User
You are probably using an immutable List which you get by assigning an Array to a List. If you want to add a bunch of items to a List, use List.AddAll and the List will remain mutable.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…