Friday, July 2, 2010

[android-developers] Problem with Intents (I think)

New to Android so experimenting with some areas that are probably way
over my head. Nevertheless,
I will plow on.


Top Level Description:

I have an activity (call it ActA) that is started via 'startActivity'
and is passed some data through a bundle.
The data is an unflattened componentname which, from my understanding
is, a combination
of the packagename and the class.

ActA creates a new intent and then does a
'setcomponent(ComponentName.unflattenfromstring)'
from the value extracted out of the bundle.

ActA executes a 'startActivity' (call it ActB) with the new intent and
then ActA
terminates itself.


Observations
In general this seems to work and the new activity (ActB) pops up on
the screen. However, I have seen
several case where it doesn't. When it doesn't work ActB is
displayed correctly but I can
no longer start ActA. When it works properly (the way I want ) ActA
will start ActB and I can do
this several times in a row.

It is always the same applications that prevent me from using ActA
again. There are no errors, log.i
messages seem to confirm the above flow. If I terminate ActB using
the back button then the
whole process works again until I hit specific activities.

Final
I can certainly provide more info but at this point I wasn't sure what
is of value. Any help
would be appreciated.


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

No comments:

Post a Comment