Xamarin Android NFC - starts a specific intent but I need to know if the app was previously killed, or not -


the app xamarin android app using nfc technology.

in first place, app start up, user logs in, , can tap nfc cards. that's fine.

the problem when app manually killed - remove running tasks - nfc card tapped , triggers app open on specific intent card, bypassing login page.

i need figure out how know if app killed , being opened card tapping.

the issue background services started when app opened naturally, , bypassed if app killed/crashed , user taps card.

any in figuring out if app launched nfc card tapping, or if running , card tapped appreciated.

i thinking trying count if there other pages in stack, or in history, or way of knowing if service busy running - service started using startservice

startservice (new intent (this, typeof(demoservice))); 

just save value preferences when app started , remove when app shut down normally. if app starts , value in there can see app killed.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -