Android: Best way to populate ListView from native data source -
the bulk of app i'm porting written in c++. have need display big amount of rows in listview using info retrieved native code.
say illustration have 50,000 rows of info - song names. i'm worried performance beingness slow , i'm worried using lots of memory unnecessarily.
what best way populate listview - should i:
get jni code populate arraylist of all items making add() calls invoked c++? some how populate number of visible rows listview requests? something elseit happens info retrieving in sqlite database - not sure if help matters or not. ideally maintain of database access within c++ code open suggestion before set out on task.
as have mentioned info available in sqlite database, can access sqlite database android app layer using sqlite related classes available in android. helps processing of info through jni layer. modification of list items straight done on sqlite db rather passing info through jni layer & updating same in native layer(here guess c++).
android listview arraylist jni native
No comments:
Post a Comment