How do I access the scanner stream on a Motorola MC40N0, using code in C# and Xamarin Android?How do I get the identifier that corresponds to it?
I know that I can get notifications by using Stream.Notification. I can also access alarms by using Stream.Alarms. I want to know how to get the scanner media stream. I am trying to change the volume of the scanner stream., so I need the Stream value to pass to SetStreamVolume():
audioManger.SetStreamVolume( /* what stream goes here? */, volume, VolumeNotificationFlags.AllowRingerModes );
How do I get the scanner media stream on an android MC40 using C# and xamarin? |
1 Replies
Hi,
I'm not sure why you are seeing that scanner volume icon, I have a couple of MC40s here and it is not on either of them.
Regardless, there is an API call to specify which audio stream the scanner uses for its volume (ScannerConfig.AudioStreamType - Zebra Technologies Techdocs ) and you can specify the alarm or ringer so hopefully that will work for your application
Darryn.