Bug 11163 - NfcXample application should properly handle devices without NFC
Summary: NfcXample application should properly handle devices without NFC
Alias: None
Product: Android
Classification: Xamarin
Component: Samples ()
Version: 4.8.x
Hardware: PC Mac OS
: Normal enhancement
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2013-03-14 12:42 UTC by PJ
Modified: 2013-06-13 16:09 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description PJ 2013-03-14 12:42:07 UTC
Steps to reproduce this issue:
1. Open X.S/VS
2. Open NfcXample application.
3. Debug/Run the application on device without NFC
4. Click 'Write new tag'.

Actual result: After clicking on 'Write new tag', application throwing
exception 'System.NullReferenceException'.

Expected result:
Sample should warn user that their device does not support NFC
Sample should demonstrate to developers the proper way to check for a device feature before attempting to use it.

Supplement info:

Environment details:
All Mac and Windows
VS 2012/2010
MFA 4.6.6
X.S 4.0 -044fa4cbe7ed4c9e1f81cbdb516a9c2136d49d48
Comment 1 Peter Collins 2013-06-13 16:09:21 UTC
Fixed in monodroid-samples master / 7f15b5f09488631216f10b9255cfa3618d67d928