Auto start application after boot completed in Android

前端 未结 5 870
时光说笑
时光说笑 2020-11-30 07:44

I want to make an application which has auto start option in its settings. I have made Settings activity in my application which is derived from PreferenceActivity and give

5条回答
  •  眼角桃花
    2020-11-30 08:30

    You have to add the uses-permission android.permission.RECEIVE_BOOT_COMPLETED in your Manifest.

提交回复
热议问题