[android-developers] Re: Problem in going in back/previous activity

2009-03-07 Thread Jeffrey Yasskin
I ran into this problem too, and in my case it wasn't so easy to go find all of the c.close() calls since I hadn't written any. For the next person who runs into this, it turns out that SimpleCursorAdapter.changeCursor() will close the previous cursor (as documented). So instead of calling

[android-developers] IndexOutOfBoundsException when I call stopManagingCursor in an OnItemSelectedListener

2009-03-07 Thread Jeffrey Yasskin
Activity.performStop() contains the following loop (around line 3394 in the 1.0 SDK release and at http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/app/Activity.java;h=4dc4b6a48b85f9caad4234b8e29fafdc9260840c;hb=HEAD#l3504): final int N =

[android-developers] Re: IndexOutOfBoundsException when I call stopManagingCursor in an OnItemSelectedListener

2009-03-07 Thread Jeffrey Yasskin
work for you kind of defeats the purpose, I suppose. Can you please file a bug athttp://b.android.com? On Sat, Mar 7, 2009 at 4:50 PM, Jeffrey Yasskin jyass...@gmail.com wrote: Activity.performStop() contains the following loop (around line 3394 in the 1.0 SDK release and at http

[android-developers] Re: Solved Preferences Reset Problem

2009-02-22 Thread Jeffrey Yasskin
http://developer.android.com/guide/topics/manifest/application-element.html#persistent says that persistent=true means that the system will try to keep your app running at all times. It doesn't seem to have anything to do with preferences, although having fewer restarts could easily make any

[android-developers] Re: How to make my screen :1 momentarily appear before switching to sceren:2

2009-02-22 Thread Jeffrey Yasskin
I'm fairly new at this, so take the following with a grain of salt. Android has a UI thread, which is the only place things render. While Screen1.onStart() is running, it's occupying the UI thread, so nothing, including screen1, can be displayed to the user. Thread.sleep () just keeps the UI