On Tue, Aug 10, 2010 at 8:25 PM, Open <[email protected]> wrote: > I'm seeing the same thing and wondering the same. In my case I'm > fetching an internet resource in setViewValues so calling it three > times is very expensive.
Do not do network I/O on the main application thread. Do that work in an AsyncTask. >> If it is, then what's the best way of performing potentially expensive >> work in ViewBinder#setViewValue? >> For example, retrieving the results of another cursor whcih is used to >> construct the bound view. Don't do that work in the ViewBinder. Do a join on your database I/O (or merge cursors if one data source is not SQLite). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

