How to run android program without open the app?

后端 未结 3 711
忘了有多久
忘了有多久 2021-01-28 04:56

My app can be opened by NFC, and then use the information in the tag to do some processing, the processing is around 5 seconds.

If my app is opened by NFC, I don\'t want

3条回答
  •  被撕碎了的回忆
    2021-01-28 05:19

    Put the line setContentView(com.airbutton.R.layout.test); inside an IF to validate if you should display it or not. Remember that activities can exist without an UI.

提交回复
热议问题