Android Nexus One Update is causing problems!

by Bob Kerns » Sun, 07 Feb 2010 03:23:01 GMT


Sponsored Links
 Is the entire application disappearing, or is it just this activity?
onDestroy() doesn't necessarily get called in the former case.




--



Android Nexus One Update is causing problems!

by Alex » Thu, 11 Mar 2010 01:08:31 GMT


 I posted in another thread, but I'll try here as well:

I'm having a similar lifecycle issue on the Nexus One.

Start the app ->OnCreate
Hit back -> no OnDestroy is called
Run app again ->OnCreate, followed by OnDestroy

The wierd thing is that it doesn't actually kill our application, so
it is left in a broken state since we are tearing things down in
OnDestroy.

-Alex





--


Sponsored Links


Android Nexus One Update is causing problems!

by Streets Of Boston » Thu, 11 Mar 2010 04:58:06 GMT


 I guess the 'this' value of the activity of the second onCreate is
different than the 'this' value of the onDestroy after that. It looks
like a new activity is created first and then the old one is
destroyed. The fact that onDestroy is not called when you hit Back
could be OK (when you show the activity again, onResume could be
called), but the fact that a new one is generated and then the old
one's onDestroy is called does not look good. I'm going to check this
out on my apps.







--



Other Threads

1. Activity be destroyed after press home key.

My manifest:
<activity android:label="@string/app_name" android:name="MainUI"
android:screenOrientation="landscape"
                        android:configChanges="orientation|keyboardHidden"
android:launchMode="singleTask">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
</activity>

<activity android:label="@string/settings_label"
android:name=".view.Settings"  android:screenOrientation="landscape"
                android:configChanges="orientation|keyboardHidden">
</activity>

I launch my app through program' icon, and then I open settings
activity(startActivityForResult(intent, SETTINGS);). At this time I
press Home key and re-launch my app through program's icon, the
settings activity will run OnDestroy() and settings activity is
closed. Why the settings is destroyed and how can I make the settings
activity still exist when users come back.

Thanks for your help.

--~--~---------~--~----~------------~-------~--~----~

2. ADT pluging for MyEclipse

Hi all,

Iam working on MyEclipse 6.0
can any one suggest me how can i set ADT plugin for MyEclipse 6.0

Thanks in Advance
-- 
RajveerG
Heritage America
http://bujjiaward.blogspot.com/

--~--~---------~--~----~------------~-------~--~----~

3. Having multiple gridviews in a activity

4. Changing application label from code

5. Utility class for database query

6. Get Telephony Country code

7. Error : applying many patches