Android Question [Solved]PositionsOnThailand Coding Problem

Theera

Well-Known Member
Licensed User
Longtime User
My project is PositionsOnThailand for learning which is from Erel's Example(Anchors2) ,I don't know that the problem come from tambon.csv about 7,000 records,or not? ( I coded some wrong code.)
Please help me to consider how to be resolved this problem.
 

Attachments

  • PositionsOnThailand.zip
    251.6 KB · Views: 31
Solution
Trying to load all items gives an OutOfMemoryError after 155 ms or 5835 items...

The load of the limited 500 items (there's a test for the debug mode #if debug) works fine.
Index time: 36 ms (500 Items)


The filling of the list probably needs some lazy loading... i try to look into it...
@Erel doesn't recommend using BBCodeView with large...

PaulMeuris

Well-Known Member
Licensed User
Trying to load all items gives an OutOfMemoryError after 155 ms or 5835 items...

The load of the limited 500 items (there's a test for the debug mode #if debug) works fine.
Index time: 36 ms (500 Items)


The filling of the list probably needs some lazy loading... i try to look into it...
@Erel doesn't recommend using BBCodeView with large datasets:
The generated bbcode text can get quite large. I wouldn't use BBCodeView like this with a larger dataset.
 

Attachments

  • 1730194656270.png
    14.5 KB · Views: 27
Last edited:
Upvote 0
Solution

Theera

Well-Known Member
Licensed User
Longtime User
Thank you for testing
 
Upvote 0

Theera

Well-Known Member
Licensed User
Longtime User
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…