I think it do not work unless do something in the target app’s manifest.xml



http://developer.android.com/guide/topics/manifest/activity-element.html

android:exported

Whether or not the activity can be launched by components of other
applications - "true" if it can be, and "false" if not. If "false", the
activity can be launched only by components of the same application or
applications with the same user ID.

I have not test this yet!

Hope this can help you.



  _____

From: [email protected]
[mailto:[email protected]] On Behalf Of Sujay Krishna
Suresh
Sent: Thursday, June 25, 2009 3:04 PM
To: [email protected]
Subject: [android-developers] Re: How to call an activity of other app from
another app



Intent i = new Intent();
//do all ur put extras set data's here...
i.setComponent(new ComponentName(<packageNameString>,
<fullyQualifiedClassNameOfActivity> ));
startActivity(i);

On Thu, Jun 25, 2009 at 11:29 AM, manoj <[email protected]> wrote:


can you show me some piece of code?

Thanks,
Manoj.

On Jun 25, 10:49 am, Sujay Krishna Suresh <[email protected]>
wrote:

> yes it is possible... make use of the setcomponentname method in ur
> intent...
>

> On Thu, Jun 25, 2009 at 11:16 AM, manoj <[email protected]> wrote:
>
> > Hi,
>
> > How can I call an activity of app A from app B.
>
> > Is it possible? if so how?
>
> > Thanks,
> > Manoj.
>
> --

> Regards,
> Sujay
> Yogi Berra <http://www.brainyquote.com/quotes/authors/y/yogi_berra.html>
-

> "I never said most of the things I said."






--
Regards,
Sujay
Bill Cosby <http://www.brainyquote.com/quotes/authors/b/bill_cosby.html>   -
"A word to the wise ain't necessary - it's the stupid ones that need the
advice."


--~--~---------~--~----~------------~-------~--~----~
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