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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:57:31+00:00 2026-05-13T15:57:31+00:00

When the user opens the application, there is a screen with a button on

  • 0

When the user opens the application, there is a screen with a button on it, which says “login.”

The user clicks on the button, and a webview pops up to allow him to log in to the website.

After logging in (the app would need to know somehow), the webview would disappear, and then a list of usernames will pop up. (ListView?)

When the user clicks on one of the usernames, a webview of the username’s profile will pop up. Of course, when the user pushes “back”, it goes back to the list of usernames.

Can someone explain this to me in terms of Activity and Views? Am I using two activities to do this? Do I hide webview or listview when the user clicks between them?

I did the tutorial (notepad tutorial), but I’m still confused as to what is the best way to develop this.

Thanks

  • 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-13T15:57:31+00:00Added an answer on May 13, 2026 at 3:57 pm

    When the user opens the application, there is a screen with a button on it, which says “login.” The user clicks on the button, and a webview pops up to allow him to log in to the website. After logging in (the app would need to know somehow),

    Yo can do this with two separate Activity classes. I would put the WebView in its own Activity. This is easier than managing lots of different View objects yourself. Also, you’ll get transitions between different things if you put each part in its own Activity.

    You’ll can launch the login Activity with the startActivityForResult() method, allowing it to return if the login was successful or not.

    If you want to detect the login, you can monitor events in a WebView using a WebViewClient. You set the WebViewClient of your WebView using the setWebViewClient() method.

    the webview would disappear,

    Simply start the next Activity using an Intent and call the finish() method on your first Activity. If you do this then the use won’t come back to login button Activity if they click back as it won’t be on the stack any more.

    What I’m not clear on is how long the login at the website will be valid for. You may need to set the flags on the Activities in your Manifest, to ensure the user has to log in again if they leave and then return to your application.

    and then a list of usernames will pop up. (ListView?)

    Use a ListActivity. This is an Activity which comes with the API designed for displaying a single ListView.

    When the user clicks on one of the usernames, a webview of the username’s profile will pop up. Of course, when the user pushes “back”, it goes back to the list of usernames.

    So use the onListItemClick() method in ListActivity to detect the touch and launch a new Activity containing the WebView to show the profile. As this is in a new Activity the back handling is all automatic.

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

Sidebar

Ask A Question

Stats

  • Questions 424k
  • Answers 424k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I think you need to animate item's container. At first,… May 15, 2026 at 12:01 pm
  • Editorial Team
    Editorial Team added an answer According to the gawk manual: "An important aspect about arrays… May 15, 2026 at 12:01 pm
  • Editorial Team
    Editorial Team added an answer The data you send is not correct. Here's the command… May 15, 2026 at 12:01 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.