Saturday, March 17, 2012

Re: [android-developers] Re: application failing on similar devices

That kind of row count is definitely on the high side of things if you're running your query on the UI thread.

Given this, the difference you're seeing may be due to device performance variations, and have nothing to do with the different Android versions.

Even if you're not getting an ANR on your device, you may be coming close, and measuring your query performance should be helpful.

17.03.2012 19:14 пользователь "momo" <dunn74@gmail.com> написал:
I think the only real chance of success is for me to go find the device locally.

More generally, do you see anything especially problematic with this:

1. a single sqlite query joining 2 tables via a 3rd bridge table, selecting 2 colums with an order by and collate unicode, that'll return 3000-4000 rows.  invoked with db.rawQuery.
2. pass that to a simple custom adapter (BaseAdapter extension, getView creates a single textview, recycles views when possible)
3. a single ListView gets the adapter updated via setAdapter (not using notifyDataSetChanged because the cursors are from two different datasets).

Thanks for your help.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment