I didn't ask for getViewAt(index>=1), this method is called by android framework(I think it's called by RemoteViewsAdater).
I can not figure out the reason RemoteViewsAdatper is calling getViewAt(index>=1) after it called getCount() which returns 1. I suspect that this is an android bug, since I didn't do anything wrong according the docs. On Thursday, June 14, 2012 6:57:17 PM UTC+8, Harri Smått wrote: > > On Jun 14, 2012, at 1:37 PM, Ethan Gao wrote: > > Firstly, getCount() methods return 1, but the consequence getViewat() is > still trying to get view at position 1 and 2. > > If getCount() returns 1, you shouldn't ask for getViewAt(index) where > index >= 1. It's your responsibility to make sure you do not exceed > getCount() limits (at least usually). > > -- > H -- 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

