This is what worked for me:
<PreferenceScreen
android:title="Internal activity"
android:summary="This will launch internal activity screen">
<intent
android:action="android.intent.action.MAIN"
android:targetPackage="com.myapp"
android:targetClass="com.myapp.MyInternalActivity"
android:data="mydata" />
</PreferenceScreen>
Kevin
On Jun 9, 10:09 am, Tushar <[email protected]> wrote:
> Hi,
>
> Using PreferenceScreen in xml format we can launch activity by
> specifying Intent as shown in sample application
>
> <intent android:action="android.intent.action.VIEW"
> android:data="http://www.android.com" />
>
> This will launch Browser activity which is registered to handle http
> protocol.
>
> But I would like to launch my internal activity by explicitly
> specifying it's name e.g.
>
> <PreferenceScreen
> android:title="Internal activity"
> android:summary="This will launch internal activity
> screen">
> <intent android:name="com.myapp.MyInternalActivity"
> android:data="mydata" />
>
> </PreferenceScreen>
>
> But this is not working. Getting exception of ActivityNotFound .
>
> Am I missing anything ?
>
> -- Tushar
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---