I used the android.intent.category.LAUNCHER option to make the app start right after the tablet starts up. I made it to keep my app even when I press the home button But there is a problem When the home button is pressed, onCreate of MainActivity is called again. I want to call onCreate only once because it is connected to the hardware. Is there a way?
I cannot use android.intent.action.BOOT_COMPLETED due to circumstances