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?
<
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;
}