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

  • Home
  • SEARCH
  • 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 7044667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:26:13+00:00 2026-05-28T02:26:13+00:00

Root access is possible. Basically I need a way to read content: //settings/system/alarm_alert from

  • 0

Root access is possible.
Basically I need a way to read content://settings/system/alarm_alert from an application and get the time (or time remaining) of the alarms.

I found the old project android-alarm-database, but that only works for the older alarm clock application.

  • 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-28T02:26:13+00:00Added an answer on May 28, 2026 at 2:26 am

    The DeskClock application (that replaced the older AlarmClock application) sets alarms using the Alarm Manager. Unfortunately its not possible to read the existing alarms from the Alarm Manager, unless you know the PendingIntent that created it. DeskClock stores these PendingIntents, as well as other alarm information, in an internal database. However, there is another way to discover the time of the last alarm set or removed:

    DeskClock sends out a broadcast intent called android.intent.action.ALARM_CHANGED when it updates the status bar icon (with an extra boolean alarmSet to indicate on/off) and updates Systems.Settings.NEXT_ALARM_FORMATTED which you can receive using the following broadcast receiver:

    private static final String tag = "TestReceiver"; 
    @Override
    public void onReceive(Context context, Intent intent) 
    {
        Log.d(tag, "intent=" + intent);
        Boolean message = intent.getBooleanExtra("alarmSet",false);
        Log.d(tag, "alarmSet: " + message);
        Log.d(tag, "next alarm: " + Settings.System.getString(context.getContentResolver(),android.provider.Settings.System.NEXT_ALARM_FORMATTED));    
    }
    

    and with the following intent filter in your AndroidManifest.xml:

    <receiver android:name=".TestReceiver">
        <intent-filter>
            <action android:name="android.intent.action.ALARM_CHANGED"></action>
        </intent-filter>
    </receiver>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to get root access via su to lunch a TcpDump binary (I
I know you need root access if you want to capture a screenshot by
I have a PHP script that I need to run as root from the
Possible Duplicate: Obtain root access via su on the Android emulator Hi, I'm working
I am using a machine on which I do not have root access and
In my Servlet I would like to access the root of the context so
My application's context root is /foobar and I am running an exploded deployment with
I have an ssh account but do not have root access and hence cannot
Possible Duplicate: Deserializing XML, how do I access attributes? I am deserializing the following
I am using JACOB to access system information through WMI. I have not found

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.