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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:05:33+00:00 2026-06-04T10:05:33+00:00

I have an example Android app that I compiled in Eclipse and installed on

  • 0

I have an example Android app that I compiled in Eclipse and installed on my Android tablet. It establishes communication between my tablet and my Arduino board.

It is an example program from this link: “Seeeduino Demo – Android App” on this URL:
http://www.seeedstudio.com/wiki/index.php?title=Seeeduino_ADK_Main_Board

There is a section that simply sends one byte from my tablet to the Arduino board.

byte data;
data=1;
server.send(new byte[] {(byte) data});

It works, but it sends other bytes besides the one byte. I need to understand how this server.send() function works, but I can find nothing about it in the Android references.

Can anyone point me to a reference that covers the server.send() function? I would like to send exactly one byte at a time and nothing else.

  • 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-04T10:05:35+00:00Added an answer on June 4, 2026 at 10:05 am

    I had a quick look at the source for the MicroBridge. The following is the working part of the send method:

        public void send(byte[] data) throws IOException
          {
                  try {
                          output.write(data);
                          output.flush();
                  } catch (SocketException ex)
                  {
                          // Broken socket, disconnect
                          close();
                          server.disconnectClient(this);
                  }
          }   
    

    I would say that there is data in the pipe and is getting writen out with the call to output.flush().

    The source for MicroBridge can be found here: MicroBridge

    Hopefully this gets you started.

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

Sidebar

Related Questions

I have an android app that has various activities. for example there is a
I'm wondering, if I have an APK that supports for example Android 2.3.7 and
I have an Android app that talks to .net web service via http over
I have a current Android app that uses i18n via resources. res/values-es/strings.xml and so
I have an Android app that I would like to convert to an Android
I have an android app that extends a MapActivity, so I can't extend TabActivity.
I have an Android app that I have just prepared for localization, with one
I have an android app that listens for json commands over a socket. I
I have an Android app modeled after the LunarLander example by Google. I am
I have an Android App that is published in a 'free' and 'pro' version.

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.