Add my app to AutoStart apps list in android programmatically

前端 未结 3 492
Happy的楠姐
Happy的楠姐 2021-01-07 23:13

I want my app to be in the autostart list after installation.

I know when I install an app like (whatsapp) it goes automatically to the autostart list. I want my app

3条回答
  •  耶瑟儿~
    2021-01-07 23:30

    Few popular apps run in background without being killed during memory cleanup cycle (many of the popular OEMs customize the stack ROM for battery/memory optimization), because they are "White listed" by these manufactures. For your app you can whitelist it either manually (via corresponding "settings" for the devices) or pragmatically by redirecting users to the corresponding settings page to white list the app.

    Please have a look for details here

提交回复
热议问题