From java to android

try

import io.inventit.processing.android.serial.*;
void setup() {
  
println(this, Serial.list(this)[0], 9600);
}

void draw() {
}