starting the same activity....

by sdphil » Sat, 24 Apr 2010 05:53:54 GMT


Sponsored Links
 I have a weird issue, and I'll describe it in somewhat abstract terms
in the hopes that someone can see something I'm obviously doing wrong.

I have an activity with some data on it (call it Activity A1).  The
user hits a button and I launch another instance of that same
activity, but with different data (call that Activity A2).  Now, I hit
the "back" button (hardware) and instead of showing the data from A1,
it shows the data from A2.  If I force an orientation change, it shows
the data from A1 correctly.

I am not using static data anywhere and I am using the default onPause
and onResume.  It's almost as if Android is reusing the GUI controls
even though it's a different instance of the activity.

thoughts?

tia.

--



starting the same activity....

by krox » Sun, 25 Apr 2010 04:09:15 GMT


 Hi!

Hmm that sounds weird, I just created a testApp and it worked as
expected (that is it did not update the UI-elements in A1 when I
updated them in A2). Would you mind posting the sourcecode?

//Erik



>


Sponsored Links


Other Threads

1. Content Provider Permission

Hi All,
         I want to delete Downloads provider data. And I have added
permission in AndroidManifest.xml,  But it doesn't work, the log gave
me a pid and an uid, I guess the problem is caused by these two ids.If
it's true, what can I do  to solve this problem.

AndroidManifest.xml as follows:
...
<uses-permission
android:name="android.permission.ACCESS_DOWNLOAD_MANAGER" />
    <uses-permission
android:name="android.permission.ACCESS_DOWNLOAD_MANAGER_ADVANCED"/>
...

Java code as follows:
...
ContentResolver resolver = context.getContentResolver();
resolver.delete(DownLoads.URI, null, null);
...

Log as follows:
...
07-07 13:59:10.038: ERROR/ContentProvider(726):
java.lang.SecurityException: Permission Denial: writing
com.android.providers.downloads.DownloadProvider uri 
content://downloads/download
from pid=1714, uid=10085 requires
android.permission.ACCESS_DOWNLOAD_MANAGER
...


Any suggestion or best an example is greatly appreciated.

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

2. Dose Android sdk 1.5 allow to create our own screen when a call is in or out

Does this mean I need to change the source code to get the new screen?
Is there any  reference materials?





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

3. Download manager

4. How does 2 different package share the same aidl interface?

5. Android Hook

6. Can you record a video of the screen?

7. Android Screen Shot