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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:29:38+00:00 2026-05-31T01:29:38+00:00

I have a two activity application. One is a HomePage. Another is a DataPage

  • 0

I have a two activity application. One is a “HomePage”. Another is a “DataPage” activity that just contains a webview. When the user clicks on a button on the HomePage, I show the DataPage and load the URL. The problem is the URL is a very slow loading page. I want to solve that problem by creating both activities when my app is open. The home page will be visible, the DataPage will be hidden. I will immediately start the WebView of the DataPage so that it loads in the background. Then when the user clicks on the button, I will reveal the DataPage, with most of its data already loaded.

I dont know how to create an activity in an initially hidden state. And then bring that activity into the front? Is there a way of doing that?

  • 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-31T01:29:39+00:00Added an answer on May 31, 2026 at 1:29 am

    If your Activity is not in the foreground, then it either has never been created, its in the Paused state, or in the Stopped state. You won’t be able to have it render itself in the background during any of those times. You can read more about that here which contains the following flow chart of an Activity's lifecycle:

    Activity Lifecycle Flowchart

    There are a variety of ways to retrieve data through a background thread. Would it be possible to download the page as a locally cached file, so the DataPage only needs to render the HTML/CSS/JavaScript when it opens? If the rendering page is the bottleneck, this won’t help you much though.

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

Sidebar

Related Questions

I have two buttons on my application. One button starts a new Game (lets
I have two activities, one is main and I have another activity called Test
I'm writing my first Android application and I have one activity that I'd like
I have an activity with two buttons, start and stop. If the user press
I have here two applications in two different projects in eclipse. One application (A)
I have strange issue. My application have multiple activitys, on one activity is setting
Let say that I have two Activity to develop in Android. Upon the end
i have one application it has mapview . problem is that i want to
I'm writing an application which have two modes; one view mode and one edit
I have two Live Wallpapers that belong to the same Application and I am

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.