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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:19:41+00:00 2026-05-22T20:19:41+00:00

I am using Theme.Dialog activity to display user a reminder whenever Alarm triggers, It

  • 0

I am using Theme.Dialog activity to display user a reminder whenever Alarm triggers, It has two buttons OK and Skip, now I want user to press any one of these buttons whenever this reminder activated and displayed on screen, so that reports can be generated. But If user mistakenly presses the back button or Home button that activity goes in the background and alarm keeps playing and there is no way for me to bring that activity back in front. Is there any way to disable the back or home button when this activity is on device’s screen or any other better alternative to keep the activity in front unless user presses any one of the given buttons?

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

    As per Android architecture you can handle back button but not Home so what you can do is override the onPause() method of you activity and dismiss your alarm there, as per your requirement to keep the activity in front unless one of the button you supplied is not used is not possible

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

Sidebar

Related Questions

i am using the common file dialog . i think there will be many
I am using fbconnect api in my project.When the login dialog gets opened where
What are event and UI parameters in jQuery Dialog? Can I get a mouse
I am using ASP.NET partial views like in this example <% using (Html.BeginForm()) {
I'm building an application using WPF that will be a designer of sorts, meaning,
Does anyone know how to do that? My skills in using VBA aren't very
Is there some way to have Eclipse NOT present the Android Device Chooser dialog
How do I set the maximum width of a ViewGroup? I am using a
I am starting an activity with a Serializeable extra. This extra contains a List
Good morning, I have problem with using MasterPage and jQuery. I using jQuery UI

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.