# How can I transfer REAL-TIME data between Android and PC?

**URL:** <https://discourse.processing.org/t/how-can-i-transfer-real-time-data-between-android-and-pc/21929>\
**Category:** Processing for Android\
**Created:** [June 16, 2020, 9:20pm UTC](https://discourse.processing.org/t/how-can-i-transfer-real-time-data-between-android-and-pc/21929 "2020-06-16T21:20:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamjustcurious](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/iamjustcurious/32/8016_2.png) [@iamjustcurious](https://discourse.processing.org/u/iamjustcurious)\
**Post date:** [June 16, 2020, 9:20pm UTC](https://discourse.processing.org/t/how-can-i-transfer-real-time-data-between-android-and-pc/21929/1 "2020-06-16T21:20:00Z")

</div>

Hi. So basically I want to transfer **real-time** data( **string** , **int** , **boolean** …) between Android sketch and PC(laptop) sketch. How can I do it?

---

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [June 16, 2020, 9:39pm UTC](https://discourse.processing.org/t/how-can-i-transfer-real-time-data-between-android-and-pc/21929/2 "2020-06-16T21:39:16Z")

</div>

Check these links:

- [https://forum.processing.org/one/topic/networking-between-android-and-server-connectbot-type-of-thing](https://forum.processing.org/one/topic/networking-between-android-and-server-connectbot-type-of-thing)
- [https://www.geneticmoo.com/networking-processing-for-android/](https://www.geneticmoo.com/networking-processing-for-android/)
- [https://forum.processing.org/two/discussion/23978/looking-for-net-library-alternative](https://forum.processing.org/two/discussion/23978/looking-for-net-library-alternative)

By the way, if you find a reference of plain simple java and Android, you can always use it in Processing.

Kf

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [June 16, 2020, 10:12pm UTC](https://discourse.processing.org/t/how-can-i-transfer-real-time-data-between-android-and-pc/21929/3 "2020-06-16T22:12:14Z")

</div>

I like to use the oscP5 lib for communication. You can set the data type for each message.  
See [here](https://discourse.processing.org/t/oscp5-for-the-apde/18402).

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [June 20, 2020, 7:58pm UTC](https://discourse.processing.org/t/how-can-i-transfer-real-time-data-between-android-and-pc/21929/4 "2020-06-20T19:58:37Z")

</div>

Hello,

I have written Processing apps for Android used the Ketai library and serial over Bluetooth with success:  
[http://ketai.org/](http://ketai.org/)

Try first with an app that sends data such as:

> <https://play.google.com/store/apps/details?id=nextprototypes.bluetoothtRGB>
>
> Simple Bluetooth RGB controller.
> Try to use with AVR, PIC, Arduino, Raspberry Pi, etc...
> 
> Default data size is 3 bytes(RGB).
> This 3 bytes(RGB) data can be able to change to string 6 bytes data.
> ex. "FFFFFF"
> 
> If you want , you can add Alpha component and several markers.
> 
> Maximum number of buttons: 20
> (By the screen size, the number of buttons that can be arranged is limited.)
> 
> The value of controller can be backup
> 
> About backup
> ・ storage location is displayed when you save.
> ・ The data saved fold...

There are numerous other apps that send the sensor data from an Android as well.

`:)`
