In this preferred screen, the user disconnects the device from their account. At the moment, I have an Unlink device, as soon as the user clicks on it, the cancellation occurs.
But I would like to add a piece of text as follows:
Joe Foo Device ( joefoo@gmail.com ) - Unlink Device
Can I do it? I also need to dynamically add the username from the settings.
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" > <Preference android:title="@string/pref_title_advanced_unlink" > <TextView somehow must be in here android:id="@id/user_name_and_email" /> <intent android:action="android.intent.action.VIEW" android:targetPackage="com.example.tvrplayer" android:targetClass="com.example.tvrplayer.UnlinkActivity" android.setflags="FLAG_ACTIVITY_CLEAR_TOP"/> </Preference> </PreferenceScreen>
source share