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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:20:31+00:00 2026-05-27T06:20:31+00:00

Upon launching my application, a few web service calls are made to check for

  • 0

Upon launching my application, a few web service calls are made to check for new data on our server. When I launch the applciation from scratch it works fine, but my app runs in the background until the user hits the back button a bunch of times, but I would still like our web service calls to be made whether he’s launching a fresh instance or resuming an instance that was kept in the background.

Is there a method that’s called when the applcition regains focus? (And only when it “regains” focus?)

Thanks a lot.

  • 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-27T06:20:32+00:00Added an answer on May 27, 2026 at 6:20 am

    This page explains Android activity lifecycle: http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle

    Activity’s onResume() will be called every time the activity is brought to foreground but that happens also when launching it for the first time. If you are looking for a method that is called only when the focus regained, try onRestart().

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

Sidebar

Related Questions

Upon installation of a Windows Service, an application is using a custom action to
I have an android application in which upon clicking netbank icon I am launching
I'm using NetBeans to develop some simple applications to solve puzzles . Upon launching
Upon launching a sinatra app, I get the following error message: /home/matt/.rvm/gems/ruby-1.9.3-p125/gems/backports-2.5.1/lib/backports/tools.rb:310:in `require': cannot
i have created an options menu for my database class. Upon launching the options
Upon user login I check their roles. If they have no roles I want
Upon coding, I realized I had made a mistake. I used git checkout 7e57dbf5a7245...
I'm using c#, .net 4, WIX 3.5, Windows Vista. I have made my application
Upon receiving a TCP RST packet, will the host drop all the remaining data
I am trying to dynamically create a UIWebView inside a class file upon launching

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.