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

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,279 questions
{count} votes