SerialPortInfo through Intent Xamarin always returning null

sheeja varghese 21 Reputation points
2021-03-26T08:54:06.767+00:00

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

Developer technologies | .NET | Xamarin
Developer technologies | C#
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.