Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7512941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:01:32+00:00 2026-05-30T00:01:32+00:00

I would like to display a message before the user disables device admin for

  • 0

I would like to display a message before the user disables device admin for my app. from the Google tutorial page,

http://developer.android.com/guide/topics/admin/device-admin.html

It seems all you do is implement onDisableRequested() in your receiver.

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

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,

        <intent-filter>
            <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
            <action android:name="android.app.action.DEVICE_ADMIN_DISABLE_REQUESTED" />
        </intent-filter>

anyway, with the method implemented, and listening for the action, the above callback is not called. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T00:01:36+00:00Added an answer on May 30, 2026 at 12:01 am

    The "disable requested" message appears in a dialog when the user goes to settings > security > device admins and disables the device admin from there.

    If you call DevicePolicyManager.removeActiveAdmin() from your app, the method in your device admin receiver is not called and the message is not otherwise displayed to the user. I guess the idea is that if you are calling removeActiveAdmin() from your app, you can throw up any sort of warning you want before allowing the user to do so.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In JSF page I would like to display a message for a few seconds
I would like to set up an error page which will diplay a message
I would like to display details of an xml error log to a user
I would like to display tagcloud in my home page. Found this wordpress flash
I have a scenario where I would like to display a message to the
In an app I'm coding I would like to make an alert message to
I would like to be able to catch exception from the server and display
In the code below, I would like to display a status message while fetching
I'm creating a bash script and would like to display a message with a
I would like display something more meaningful that animated gif while users upload file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.