We can use intents in PreferenceActivity.
Here is some examples of usage of <intent> in PreferenceActivity.
<PreferenceScreen android:title="Show in market." > <intent android:action="android.intent.action.VIEW" android:data="market://details?id=jp.ne.sakura.ccice.audipo" /> </PreferenceScreen>
<PreferenceScreen android:title="Send an mail to developer." > <intent android:action="android.intent.action.VIEW" android:data="mailto:hogehoge@foo.com" /> </PreferenceScreen>
<PreferenceScreen android:title="Share this app." > <intent android:action="android.intent.action.SEND" android:mimeType="text/plain" > <extra android:name="android.intent.extra.TEXT" android:value="Texts to share." /> </intent> </PreferenceScreen>
0 件のコメント:
コメントを投稿