android - Screen flicker/freeze when attaching NFC tag -
in application have screens have map loaded. overriding nfc selection dialog (when attach nfc tag selection dialog appears or application listens nfc events launches automatically). no selection dialog shown, nor application launched when attach nfc tag screen flickers/freezes 1 second or less. happens in screens have map loaded. other screens not reacting this. can problem? can somehow make map screens work others ?
this base activity other activities extend in order override
public class navigatorbasefragmentactivity extends fragmentactivity { pendingintent mpendingintent; nfcadapter mnfcadapter; private string[][] mtechlists; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); // initiate nfc in order catch onnewintent if (naviapp.checkminapilevel10()) { mnfcadapter = nfcadapter.getdefaultadapter(this); mtechlists = new string[][] { new string[] { nfca.class.getname() } }; mpendingintent = pendingintent.getactivity(this, 0, new intent(this, getclass()) .addflags(intent.flag_activity_single_top), 0); } } @override protected void onnewintent(intent intent) { log.d("navigatorbasefragmentactivity", "detected nfc tag attach"); } @override protected void onresume() { super.onresume(); // listen nfc tag attachment if (naviapp.checkminapilevel10()) { if (mnfcadapter != null) { mnfcadapter.enableforegrounddispatch(this, mpendingintent, null, mtechlists); } } } }
my navigationactivity map displayed extends base activity.
Comments
Post a Comment