I am attempting to create a widget for android 4.0 phone. But the widget might crash after user clicks the "clear data" button in application's setting view. I looked into logcat, it says"IndexOutofBoundsException" in getViewat() method. This is super weird in my eyes, since I put log in both getCount() and getViewat() methods. Firstly, getCount() methods return 1, but the consequence getViewat() is still trying to get view at position 1 and 2. Is there anyone see this problem before? any thoughts would be appreciated, thanks
-- 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

