question

sheejavarghese-8238 avatar image
0 Votes"
sheejavarghese-8238 asked Viorel-1 commented

SerialPortInfo through Intent Xamarin always returning null

Hi,

I created a Xamarin.android project for serial communication from a sensor through usb port of an android device. When I try to get data using 'Intent.GetParcelableExtra(EXTRA_TAG) as UsbSerialPortInfo;' is always returning null. Extra_Tag is declared as ' public const string EXTRA_TAG = "PortInfo";' . I don't find a proper documentation somewhere to set up the project for serial communication through Xamarin. Can anyone please help?

Thank you

dotnet-csharpdotnet-xamarinformsdotnet-android
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


Did you check if Intent.GetParcelableExtra(EXTRA_TAG) is also null?

0 Votes 0 ·

0 Answers