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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:55:52+00:00 2026-06-15T09:55:52+00:00

I am completely new to Java and slowly learning the basics so apologies if

  • 0

I am completely new to Java and slowly learning the basics so apologies if this sounds idiotic.

I am trying to create an application that on a button click it sends a specific command to a certain IP and Port. The port will be fixed at Port 32, but the IP will be taken from an Intent.

public class IPControl extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // Get the message from the intent
    Intent intent = getIntent();
    String message = intent.getStringExtra(IPEntry.ACTUALIP);

This is as far have gotten.

It will need to connect to the IP send a command of “Root” (Username) and then wait for a reply then send another command ‘Root’ (Password) and then wait for another reply, then after the connection has been established, I want to be able to send further commands on button click.

I have been racking my brains and searching the web for days and cannot seem to find the right solution.

I am going to be learning Java properly, it is on my list of things to do but this is vital for me to complete first.

If someone could help it would be extremely appreciated.

  • 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-15T09:55:54+00:00Added an answer on June 15, 2026 at 9:55 am

    Here is full example of TCP/IP type of work in android

    TCP /IP

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

Sidebar

Related Questions

Just a warning: I'm completely new to Java and am trying to teach myself
I'm completely new to javascript, but I'm trying to create a beta form for
Disclaimer: I'm completely new to Java EE/EJB and all that, so bear with me.
Please forgive me if any of this is wrong -I'm completely new to Java.
I know something about Java but completely new to Enterprise Java. I'm trying my
Being completely new to Java EE (but not to Java itself) I'm trying to
I'm completely new to Eclipse/Java/Android programming, so this might sound like a dumb question,
I'm trying to build a application for the iPhone, although I am completely new
So I'm completely new to regular expressions , and I'm trying to use Java's
I am completely new to java, but I have urgent requirement to create 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.