android device admin: notification on disable request?
<p>i would like to display a message <em>before</em> the user disables device admin for my app. from the google tutorial page,</p>

<p><a href="http://developer.android.com/guide/topics/admin/device-admin.html" rel="nofollow">http://developer.android.com/guide/topics/admin/device-admin.html</a></p>

<p>it seems all you do is implement onDisableRequested() in your receiver.</p>

<pre><code>@Override
public CharSequence onDisableRequested(Context context, Intent intent) {
    return context.getResources().getString(R.string.device_admin_disable_requested);
}
</code></pre>

<p>there's also an action, android.app.action.DEVICE_ADMIN_DISABLE_REQUESTED. the docs say you must listen for this, but the examples don't show it in the tutorial, so i'm not sure what i'm supposed to do there, but in my manifest, i have,</p>

<pre><code>        &lt;intent-filter&gt;
            &lt;action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /&gt;
            &lt;action android:name="android.app.action.DEVICE_ADMIN_DISABLE_REQUESTED" /&gt;
        &lt;/intent-filter&gt;
</code></pre>

<p>anyway, with the method implemented, and listening for the action, the above callback is not called. any ideas? thanks.</p>
