-
Notifications
You must be signed in to change notification settings - Fork 35
Description
Uploaded your code to a Samsung galaxy j2 prime with android 6.0.1 but it doesn't work.
FTF232 is recognized, but DTR AND TX pin always have led on. I change the CTS PIN and nothing happens.
When connecting RX pin to led, the o board led switch on (I believe is the receive led).
This is my first time with android development, how can I debug to see what is happening?
The buttons in the app change color when pressed, but the blink does not make the buttons change color.
In the code in MainActivity.java I get a warning in line 69:
registerReceiver(mUsbReceiver, usbIntentFilter);
and in UsbIOService.java line 95:
registerReceiver(usbReceiver, filter);
"mUsbReceiver is missing RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED flag for unprotected broadcasts registered for com. docvolt. UsbIOService. USB_PERMISSION_GRANTED, com. docvolt. UsbIOService. NO_VALID_USB, com. docvolt. UsbIOService. USB_DISCONNECTED, com. docvolt. UsbIOService. USB_NOT_SUPPORTED, com. docvolt. UsbIOService. USB_PERMISSION_NOT_GRANTED More... (Ctrl+1)
Inspection info: In Android U, all receivers registering for non-system broadcasts are required to include a flag indicating the receiver's exported state. Apps registering for non-system broadcasts should use the ContextCompat#registerReceiver APIs with flags set to either RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED. If you are not expecting broadcasts from other apps on the device, register your receiver with RECEIVER_NOT_EXPORTED to protect your receiver on all platform releases. Issue id: UnspecifiedRegisterReceiverFlag"
also in UsbIOService.java lines:
160
PendingIntent mPendingIntent = PendingIntent.getBroadcast(UsbIOService.this, 0, new "Intent(ACTION_USB_PERMISSION), 0);
Missing PendingIntent mutability flag More... (Ctrl+1)
Inspection info: Apps targeting Android 12 and higher must specify either FLAG_IMMUTABLE or FLAG_MUTABLE when constructing a PendingIntent. FLAG_IMMUTABLE is available since target SDK 23, and is almost always the best choice. See https:// developer. android. com/ guide/ components/ intents-filters#CreateImmutablePendingIntents for a list of common exceptions to this rule. Issue id: UnspecifiedImmutableFlag"
257
public void setArduinoFunctionsCB(ArduinoListener cb) {
mArduinoFunctions = cb;
}
"Class 'ArduinoListener' is exposed outside its defined visibility scope "