It looks like the sample code for AliasActivity isn't currently being
included in the SDK, I'll get that changed.  For what it's worth,
though, the main utility of it is if you want to create an .apk that
doesn't include any code but just resource definitions to launch other
things.  For you it's probably just as easy to write your own Activity
that calls startActivity() with the desired Intent and then finish()
(which is all AliasActivity does after parsing the XML intent
definition).

Redirecting to another activity -is- done with startActivity() and
then finish().  I don't know off-hand why you are having troubles.
The Forwarding and Redirection API demos can be used as examples:

http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/app/

On Oct 12, 8:31 am, Anm <[EMAIL PROTECTED]> wrote:
> The AliasActivity looks interesting, as a way to redirect a user to
> another activity/intent under a different name.  I can see this being
> used to put a launcher icon to a document/url. But I don't see any
> examples of it, or documentation of the XML to configure it.  (From
> the docs: "To use this activity, you should include in the manifest
> for the associated component an entry named "android.app.alias". It is
> a reference to an XML resource describing an intent that launches the
> real application. ")
>
> Does anyone have any pointers?
>
> Secondly, I think I want to make a something that acts similar to the
> AliasActivity as my app's entry point, but redirects to the most
> recently used activity.  Calling startActivity() followed by finish()
> still invokes the activity after returning from the child activity
> (its still on the activity stack, despite the finish() call), leading
> to a loop that re-enters the child.  What should I be doing instead?
> (I.e., What does AliasActivity do?)
>
> Anxiously awaiting the sources so I can answer these types of
> questions on my own.
>
> Anm
--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to