http://stackoverflow.com/questions/4547461/closing-the-database-in-a-contentprovider
https://groups.google.com/forum/#!msg/android-developers/NwDRpHUXt0U/jIam4Q8-cqQJ
Am Dienstag, 21. Juni 2011 11:29:52 UTC+2 schrieb Jay:
Hi,
I am new to Android and I am looking at the Notepad Tutorial sample
But what if you need to close the connection and you don't want to put it
in the onDestroy, coz the onDestroy gets called when you change the
orientation.
We don't need to keep closing and opening the connection when ever the
activity gets recreated. Also we need it such a way that the
Got it, thanks Michael. -Jay
2011/6/23 Michael Kuethe de02...@googlemail.com
Hi Jay,
no you just have to call the closing mechanism once. Normally during
the onDestroy() event of last Activity that remains on the system.
This is normally the launcher Activity.
@Override
protected
Hi Jay,
no you just have to call the closing mechanism once. Normally during
the onDestroy() event of last Activity that remains on the system.
This is normally the launcher Activity.
@Override
protected void onDestroy() {
Log.d(TAG, onDestroy fired!);
4 matches
Mail list logo