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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:09:34+00:00 2026-05-27T16:09:34+00:00

I am trying to implement a buffer in an android application so I can

  • 0

I am trying to implement a buffer in an android application so I can buffer an incoming stream of byte arrays from a bluetooth connection. I need to do some processing of the byte arrays as i receive them, and that is why I would like to use some sort of buffering.

Basically, I would receive a byte array, store it in the buffer, and then while the next byte arrays are coming into the buffer, I would be pulling them out in the order that they came in to do my processing. In other words, I would need a first in, first out implementation.

Could anyone point me in the right direction as to what type of buffer I should use? I am not sure if there is a specific name for what I am looking for. If you could direct me to some good resources for buffer implementation, that would also be very useful.

If any of this isn’t clear, please ask and I will do my best to clarify.

  • 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-27T16:09:34+00:00Added an answer on May 27, 2026 at 4:09 pm

    Are you buffering the bytes coming in, or arrays of bytes? If you are buffering arrays of bytes, you might want a LinkedBlockingQueue

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

Sidebar

Related Questions

Am trying to implement a generic way for reading sections from a config file.
im trying to implement some behaviors when a mapview element scrolls... by coding a
I'm trying to implement a circular buffer in C, and have come across this
I am trying to implement a bidirectional client-server program, where clients and servers can
I'm trying to replace what I would usually implement as a circular-buffer+. The function
I am trying to implement a (T)LV protocol over TCP sending protocol buffers from
I am trying to implement a camera controlled scene using the camera code from:
I'm trying to implement a Solution, where on service schedules some work to a
I'm currently trying to implement a subclass of stringbuf to allow the buffer to
I'm using Visual c++. I'm trying to implement a circular buffer, this CB must

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.