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

The Archive Base Latest Questions

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

I need to design an application that opens to a screen with a button

  • 0

I need to design an application that opens to a screen with a button that says connect, and when the connect button is hit, it initiates a socket connection, and if the connection is successful it launches a new screen, but once the connection is faulted I need it to return to the connection screen. I know I need to run the networking actions in a async task thread, I am just not sure about what kind of logic to use to initiate the task, and have the async task network thread return a true value if th

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

    AsyncTask has onPostExecute method which runs on the UI thread. There you can check whether the socket connection is a success or not, and start an activity using StartActivity.

    You can pass the URL to the class constructor that extends asynctask and using this url, you could start the socket connection.

    hope that helps.

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

Sidebar

Related Questions

I need to design a page for a web application that makes sense for
I need to design a custom text view that displays logs that my application
I'm looking to a design a protocol for a client-server application and need some
I need to design a data structure that supports the following operations: search element
I need to design a system that will control access to certain information. The
I have a c# WinForm application that I need to generate TabPages at runtime.
I'm building a desktop application that will run on multiple laptops. It will need
This is a generic C++ design question. I'm writing an application that uses a
I have an application that will be reading sequenced packets from a udp connection.
I want enter(Go.... etc) button on my iPad keypad. So that when I hit

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.