NfcAdapter.getDefaultAdapter(this) returns null in emulator
- by DixieFlatline
I am trying to test ForegroundDispatch (http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/nfc/ForegroundDispatch.html) in emulator API 10 (Android 2.3.3).
When i call NfcAdapter.getDefaultAdapter(this), i get null. Why is this so?
Code:
public class ForegroundDispatch extends Activity {
private NfcAdapter…