I have the following line:
String textEncoding = ((payload[0] & 128) == 0) ? "UTF-8" : "UTF-16";
Both options: “UTF-8” and “UTF-16” are in “Red”, representing an error with “Cannot resolve character”.
I'm not sure what to do with this, I'm new to Android, and I'm not sure if there is anything specific that I need to do so that Android Studio finds out what they are. Suggestions are welcome.
Edit: previous assignment
byte[] payload = record.getPayload();
String textEncoding = ((payload[0] & 128) == 0) ? "UTF-8" : "UTF-16";
source
share