Android Question Device Admin description line?

noeleon

Active Member
Licensed User
How do you put description text of your admin app?

201906265626_071956.png
 
Last edited:

Erel

B4X founder
Staff member
Licensed User
Longtime User
You should post smaller images.

Try this:
B4X:
AddApplicationText(<receiver android:name="anywheresoftware.b4a.objects.AdminReceiver2"
       android:description="@string/admin_description"
        android:permission="android.permission.BIND_DEVICE_ADMIN">
    <meta-data android:name="android.app.device_admin"
            android:resource="@xml/device_admin" />
    <intent-filter>
        <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
    </intent-filter>
</receiver>)
CreateResource(values, strings.xml,
<resources>
  <string name="admin_description">This is the description</string>
</resources>
)
 
Upvote 0
Top