Arduino Mega 2560 and Android USB OTG serial communication
So I figured it out.

It was the VendorID. I found it and noticed, that the VIDs of the UNO and Mega are different.
I adjusted the code and now everything works as I expect.
So, thank you Chris Startton for the correct hints.

Thank you all.