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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:41:53+00:00 2026-06-06T15:41:53+00:00

My client wants their app to always show a WARNING screen when the application

  • 0

My client wants their app to always show a “WARNING” screen when the application starts or when it awakens from sleep. I’ve tried creating an onResume() event in my master activity (which every other activity inherits from), but this causes an endless loop:

  1. Activity is called, onResume() is fired
  2. Warning screen fires, causing the calling activity to be paused
  3. User clicks OK to accept the message, returning the user to the prior screen
  4. Activity is woken up
  5. Go to 1

Even if I could get around the endless loop, the Warning screen would fire whenever a new activity loads. This is what I like to call a Bad Thing.

Is there a way to mimic the onResume() event but at the application level rather than at the activity level, so that I can avoid these scenarios but still have the warning pop up on application wake?

  • 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-06T15:41:55+00:00Added an answer on June 6, 2026 at 3:41 pm

    Why not just use SharedPreferences.

    http://android-er.blogspot.com/2011/01/example-of-using-sharedpreferencesedito.html

    Store the time the popup is brought up, and if it was within 5 mins, or something, then don’t pop it up.

    This will break your loop and not completely annoy the user.

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

Sidebar

Related Questions

I'm developing a web app for which the client wants us to query their
A client wants to ensure that I cannot read sensitive data from their site,
My Client wants a native iPhone App that displays their mobile site optimized for
I have a client who wants their app code signed, so we pointed them
I've got a client who wants their videos (provided by a third party) displayed
We have a client who wants to build an app that essentially functions as
I have a client who wants me to build an Android version for their
I have a weird situation, client does't want their application to support multitasking so
Hi i'm new to android my client want to run the app in their
I'm building a web-app that allows people to select their US state from a

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.