# UDP library (hypermedia.net.\*;) not working in android mode?

**URL:** <https://discourse.processing.org/t/udp-library-hypermedia-net-not-working-in-android-mode/42093>\
**Category:** Processing for Android\
**Created:** [May 29, 2023, 1:09pm UTC](https://discourse.processing.org/t/udp-library-hypermedia-net-not-working-in-android-mode/42093 "2023-05-29T13:09:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Olivier](https://avatars.discourse-cdn.com/v4/letter/o/d2c977/32.png) [@Olivier](https://discourse.processing.org/u/Olivier)\
**Post date:** [May 29, 2023, 1:09pm UTC](https://discourse.processing.org/t/udp-library-hypermedia-net-not-working-in-android-mode/42093/1 "2023-05-29T13:09:58Z")

</div>

It looks like I can’t receive UDP on in android mode.  
I have set all sketch permissions “on”  
If I use the artnet library in android mode then I receive UDP, but need other ports and data now…  
What am I doing wrong???  
Simple sketch below, just to see if I receive anything at all?

\<

```auto
import android.os.Bundle;
import android.view.WindowManager;

void onCreate(Bundle bundle) {
  super.onCreate(bundle);
  getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
}

import hypermedia.net.*;
UDP udp; // define the UDP object

int dataint3=5;

PFont f;

void setup() {
  fullScreen(P2D);
  orientation(LANDSCAPE);
  udp = new UDP( this, 6454 );
  udp.listen( true );
  background(102);
  printArray(PFont.list());
  f = createFont("SpaceMono-Regular.ttf", 102);
  textFont(f);
}

void draw() {
  background(102);
  text(dataint3, 600, 600);
}

void receive( byte[] data ) { // <-- default handler
dataint3=22;
}

```

>

---

<div class="post-metadata">

**Author:** ![Olivier](https://avatars.discourse-cdn.com/v4/letter/o/d2c977/32.png) [@Olivier](https://discourse.processing.org/u/Olivier)\
**Post date:** [May 29, 2023, 1:44pm UTC](https://discourse.processing.org/t/udp-library-hypermedia-net-not-working-in-android-mode/42093/2 "2023-05-29T13:44:50Z")

</div>

Sorry, does work after reset Phone…
