[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 changeC

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

2009-02-23 Thread Komal
Hi,, The Problem is solved, I am posting the solution because some body may face same problem and need solution. In my app i am using startManagingCursor(c) for managing cursor,,so the method handles all functions of cursor,,i doesn’t need to close the cursor. I have removed all c.close() from my

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

2009-02-19 Thread Sundog
You closed your database - probably on the activity exit - and subsequently tried to access it. Been there, done that! ;) On Feb 18, 5:09 pm, Komal wrote: > Hi, > Thnx for replying. > when i am pressing back button ,it is throwing exception,, > in my Logcat,, > > Java.lang.RuntimeException:Unab

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

2009-02-18 Thread Komal
Hi, Thnx for replying. when i am pressing back button ,it is throwing exception,, in my Logcat,, Java.lang.RuntimeException:Unable to resume activity {android.myempapp/ android.myempapp.MoreData}: java.lang.IllegalStateException : attempt to acquire a reference on a close SQLiteClosable} and on

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

2009-02-15 Thread Greg Krimer
Transitioning to a previous activity via the Back hard-key should be handled by Android for you (unless you are capturing the Back key event yourself, which does not sound like what you are doing because onPause() of your second activity is getting called). The only way I have screwed this up is w

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

2009-02-15 Thread Komal
Hi, Thnx for replying. Its calling onPause() method of second activity but its not calling onResume() of first activity. why it is so?? This is my code for calling next activity protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l,

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

2009-02-13 Thread Sundog
To expand on that, I had exactly this problem and found that my first activity's onResume() was indirectly reinitializing something it shouldn't have, and kaboom. On Feb 9, 9:05 pm, Komal wrote: > Hi, > I am developing simple application. > I have one activity which displays list of name of empl

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

2009-02-13 Thread Sundog
If your two activities are calling and returning properly, check your first activity's onResume() function for something screwy. At least put a log statement there to tell you if it even gets that far. Might do the same with the second activity's onPause() too. On Feb 9, 9:05 pm, Komal wrote: >

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

2009-02-12 Thread for android
stacktrace?? On Fri, Feb 13, 2009 at 10:20 AM, Komal wrote: > > No one can solve my problemsomebody please help me > > On Feb 10, 3:05 pm, Komal wrote: > > Hi, > > I am developing simple application. > > I have oneactivitywhich displays list of name of employees. I m > > fetching the em

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

2009-02-12 Thread Komal
No one can solve my problemsomebody please help me On Feb 10, 3:05 pm, Komal wrote: > Hi, > I am developing simple application. > I have oneactivitywhich displays list of name of employees. I m > fetching the employees name from database. > when i click on any of the name ,i will display