Listview 2 sluggish on android.. How to fix? Please help

Im writting an app (arent we all) and using the code from the listview2 / tableview sample. I compiled the sample and my app and tested both on a samsung galaxy s vibrant froyo 2.2. The list is very sluggish and jerky. Does anyone know how to adjust this to fix this issue? I was quite surprised and disappointed at the performance.

I only have about 20 items in the list with 2categories.

Thanks larry. [import]uid: 11860 topic_id: 13064 reply_id: 313064[/import]

What version of Corona are you using?

As we all know Android has had performance difficulties with Corona but it’s something that is constantly being improved on. [import]uid: 52491 topic_id: 13064 reply_id: 47967[/import]

As Peach mentioned, Corona app performance on Android is not as consistant as it is on iOS but don’t look at it as a limitation, look at it as CHALLENGE. I have found that there are ways to get around many of Androids quirky performance issues. Another problem is that there seems to be issues with the Galaxy S line of phones in particular most likely due to changes Samsung made to Android for these devices (such as using an ancient file system). I have a Samsung Fascinate (Verizons version of the Galaxy S) which I use for testing and have run in to performance problems myself. One of the easiest things to try is setting fps to 30 in your config.lua file. I can’t guarantee it will fix your problem but it’s worth a try. [import]uid: 27965 topic_id: 13064 reply_id: 47973[/import]

I’ll give the 30fps a try. I’m just surprised that something like the listview2 sample would be slow. I might understand if it was something graphics intensive, bunt not something as simple as the list view/tableviews

I’ll let you know how it goes thanks for the feedback.
[import]uid: 11860 topic_id: 13064 reply_id: 47985[/import]

I’ve run in to a few head scratchers myself. I don’t use the tableview or ui libraries myself so I’m not sure if there is something in them that might cause performance problems although I think they use transitions which can be a bit wonky on Android. Using a timer to put a delay in between transitions can help sometimes although it’s not a fix for every situation. The way I see it is if I can get my app to work on a device that is known to have problems with Corona apps then it should run on anything else just fine. [import]uid: 27965 topic_id: 13064 reply_id: 47995[/import]

Thanks for all the feedback.

Changing the FPS=30 worked and fixed 90% of the issue and I can live with it.

Thanks

Larry [import]uid: 11860 topic_id: 13064 reply_id: 47997[/import]

That’s great! Glad it helped. [import]uid: 27965 topic_id: 13064 reply_id: 47998[/import]