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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T08:47:00+00:00 2026-06-16T08:47:00+00:00

In alarm app, user gives input String for alarm message and sets alaram. I

  • 0

In alarm app, user gives input String for alarm message and sets alaram.
I am able to set and listen alarm.but how to display message set by user?
have set many times to set alarm, how can i display respective message for that specific alarm

  • 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-06-16T08:47:01+00:00Added an answer on June 16, 2026 at 8:47 am

    You should have an onReceive(Context context, Intent intent) function in your BroadcastReceiver. It looks something like:

    public void onReceive(Context context, Intent intent) {   
        PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE);
        PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, ""); // Second argument is an arbitrary String tag
        wl.acquire();
    
        // Put YOUR code here (between WaitLocks)
        String userInputtedString = intent.getBundleExtra("UserText")
        Toast.makeText(context, userInputtedString, Toast.LENGTH_LONG).show();
    
        wl.release();
    }
    

    In order to get that Bundle you have to pass in an intent extra when creating the alarm

    Intent intent = new Intent(context, AlarmNotification.class);
    intent.putExtra("UserText", userInputedString);
    PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, intent, 0);
    

    I just showed an example of a Toast message, but you can change that to a Notification or AlertDialog also.
    Let me know if this helps.

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

Sidebar

Related Questions

There is functionality in my app where a user can set multiple reminders. But
I have an alarm app in the appStore and want to set it up
I am making an app that allows the user to set an alarm based
I try to create alarm app but I don't know how to set song
I am making an app where the user can set an alarm based on
I have in mind a simple alarm app for the purpose of hourly alerts/reminders.
I am going to set daily alarm in my app. All works fine in
I am working on App which will set an alarm on ios for a
I have an android app with the following Alarms setup: Alarm A is of
I need to set custom alarm tone in my App. Could anyone please just

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.