# \[Android Mode4.0\] oscP5, udp library error

**URL:** <https://discourse.processing.org/t/android-mode4-0-oscp5-udp-library-error/15017>\
**Category:** Processing for Android\
**Created:** [October 29, 2019, 2:39pm UTC](https://discourse.processing.org/t/android-mode4-0-oscp5-udp-library-error/15017 "2019-10-29T14:39:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)\
**Post date:** [October 29, 2019, 2:39pm UTC](https://discourse.processing.org/t/android-mode4-0-oscp5-udp-library-error/15017/1 "2019-10-29T14:39:39Z")

</div>

[Android Mode4.0] oscP5, udp library error

Good morning. After updating your Android version,

1. The oscP5 library does not work.
2. The udp library does not work.

Is there a solution?  
Or is there an example source code for udp?

---

<div class="post-metadata">

**Author:** ![macbrayne](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@macbrayne](https://discourse.processing.org/u/macbrayne)\
**Post date:** [October 29, 2019, 11:34pm UTC](https://discourse.processing.org/t/android-mode4-0-oscp5-udp-library-error/15017/2 "2019-10-29T23:34:47Z")

</div>

_Did oscp5 ever work with Android? I thought you were required to use the native networking stack on Android._

**And are you sure you want to use UDP for connections?**

UDP **does not** guarantee delivery of data. If you **need 100% of the data** and in correct order, you can use **sockets** , which utilize TCP/IP.  
If you are developing a audio chat package loss probably isn’t your concern, the audio might get a bit choppy, but when developing a chat every package, every message should arrive.

For custom socket handling:  
[DatagramSockets Reference](https://developer.android.com/reference/java/net/DatagramSocket) (UDP) & [Sockets Reference](https://developer.android.com/reference/java/net/Socket) both on Android Developers

I am not yet experienced in networking. You should probably wait for another answer. 😉

---

<div class="post-metadata">

**Author:** ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)\
**Post date:** [October 30, 2019, 5:25am UTC](https://discourse.processing.org/t/android-mode4-0-oscp5-udp-library-error/15017/3 "2019-10-30T05:25:00Z")

</div>

@macbrayne

Thanks for the reply.

---

<div class="post-metadata">

**Author:** ![akenaton](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@akenaton](https://discourse.processing.org/u/akenaton)\
**Post date:** [October 30, 2019, 2:41pm UTC](https://discourse.processing.org/t/android-mode4-0-oscp5-udp-library-error/15017/4 "2019-10-30T14:41:28Z")

</div>

@GWAK === , @macbrayne  
oscP5 last update: 2011; so it is impossible that this lib ever works with android mode…@macbrayne is right: use the android API for that and use sockets tcp/ip
