Début de l'activité à partir d'un autre package

J'ai ce manifeste:

<manifest ...
    package="com.my">

    <application ...>

        <activity ...
            android:name=".app.Run">
            <intent-filter >
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

    <activity ...
    android:name=".app.Preferences"/>

    <activity ...
    android:name=".library.error.ErrorDialog"/>

    </application>

</manifest>

Comment puis-je commencer ErrorDialog activité de Run activité?

Intent intent = new Intent();
intent.setComponent(new ComponentName("com.my.library.error", "com.my.library.error.ErrorDialog"));
startActivity(intent);

Ou

Intent intent = new Intent();
intent.setComponent(new ComponentName("library.error", "library.error.ErrorDialog"));
startActivity(intent);

Pas de travail


MEA CULPA... MEA CULPA...

Mon ErrorDialog Activité n'était pas public. 😀

check this out, ça pourrait aider: à l'aide d'une Intention stackoverflow.com/questions/2741857/...
Manifeste du package: com.mon“.

OriginalL'auteur user1993006 | 2013-01-20