It's a bug maybe. But you can save the intent in SharedPreference if
you want to modify it and remember it. IMO.

On 12月4日, 上午8时15分, sdphil <[email protected]> wrote:
> on Android 1.5, is setIntent / getIntent broken?
>
> Here's my scenario.
>
> I have an activity and it does some action based on the intent.
>
> Then later, I modify the intent by --
>
> Intent intent = getIntent();
> // modify the intent here...
> setIntent(intent);
>
> Then, I switch to landscape mode (change orientation).
>
> When I call getIntent() - I get the very first intent, not the
> modified intent.
>
> If I call getIntent() after I call setIntent(), it looks like the
> changes i made to the intent have taken place; the intent is modified
> as expected, it's only after I change orientation that i re-fetch the
> intent and it seems to give the first intent.
>
> The unusual thing is that this works fine in Android 1.6 or later, but
> does not work in Android 1.5.
>
> Known issue?
>
> tia.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to