ActivityNotFoundException when different package's targetClass in PreferenceScreen
The application's default package is "example.app". and the target activity's package is "example.app.abc". Calling startActivity() for "example.app.abc.TheActivity" in java code just works, but specifying it on preference.xml doesn't work: <PreferenceScreen android:key="key" android:title="@string/title" > <intent android:action="android.intent.action.MAIN" android:targetPackage="example.app.abc" android:targetClass="TheActivity" /> </PreferenceScreen> I tried android:targetClass="example.app.abc.TheActivity" but it doesn't work too. Is it impossible to start an activity of non-default