If the activity does not define any intent filters in its manifest, make
sure it is accessible to other packages through android:exported="true".

On Sun, Jan 25, 2009 at 9:47 AM, [email protected] <
[email protected]> wrote:

>
> My application has 2 packages because one is shared with my other
> applications.
> I want to start an activity of the shared package.
> I tried the following:
>   Intent intent = new Intent();
>   intent.setClassName(shardedPackageName,sharedActivityName);
>   startActivity(intent);
>
> It throws an ActivityNotFoundException and suggests that the activity
> might not
> be in the manifest.  But how do I list an acitivity from another
> package in the manifest?
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

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