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 7690087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:18:59+00:00 2026-05-31T20:18:59+00:00

I have more or less been able to understand and implement all these concepts

  • 0

I have more or less been able to understand and implement all these concepts in parts but somehow totally confused as what to put where and how do they fit together.

In short this is what I am trying to achieve on a non-rooted android phone

  1. Have an SMS broadcast receiver listen for incoming SMS with secret code
  2. Lock the screen if sms has keyword lock.

How do BroadCastReceivers and DeviceAdminRecivers go hand in hand?

Eg. I have the working code for intercepting an SMS. A switch case which calls a dummy(empty) lockScreen() function. Now where should I put DeviceAdminReceiver’s code so that I can lock the screen (a new Activity with a password box with HOME and other menu buttons disabled) ?

So basically its from BroadcastReceiver -> Device Admin -> Activity.

Please help me.

  • 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-31T20:19:00+00:00Added an answer on May 31, 2026 at 8:19 pm

    The easiest way would be to create a custom HOME screen and add features mentioned below so that it looks like a custom lock screen :

    1. Remove Notification/Status bar from the custom LockScreen activity
    2. Catch and Disable HOME/MENU button clicks when LockScreen activity is visible
    3. Have and SMS broadcast receiver call the custom LockScreen activity when secret “LOCK PHONE” sms is received.
    4. Have a PhoneBroadstReceiver to make the LockScreen reappear with some delay(100ms) so that the incoming call system default screen doesn’t push your lockScreenActivity to the background

    P.S : DeviceAdmin can be used to lock your phone and show up the system default lock screen if the password has been set

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

Sidebar

Related Questions

The title more or less says it all: I have a function which takes
I've been getting some strange linking errors in XCode. I understand more or less
I have a class that retrieves its memeber (more or less 10 members) from
I have a variety of time-series data stored on a more-or-less georeferenced grid, e.g.
I have the following code in a c++ listener class (more or less), which
I have more than one OpenID as I have tried out numerous. As people
Where I have more than one table in my database for use with (similar,
How can one have more than a Wizard control on the same page without
I would like to have more than one button. I tried to copy code
It seems that I have more trouble getting standard Unix things to run on

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.