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
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
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
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
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
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,
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
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:
>
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
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
10 matches
Mail list logo