private CaNfcInterface(Context context, Activity activity) {
Log.d(MYTAG, "NFC registerNfcReceiver");
- mContext = context;
+ synchronized(CaNfcInterface.class) {
+ mContext = context;
+ }
mActivity = activity;
mAdapter = NfcAdapter.getDefaultAdapter(mContext);