MurdochPizgatti / app-start-on-bootup

App Launch on System Boot-up

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use this JAR file in Unity project

Note: Regarding JAR file creation and usage, please refer to the Guideline

ModifyAndroidManifest

Add permission

<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />

ClassName

android:name = "com.Example.Bootcomplete.MainActivity"

Register system broadcast

<receiver android:name=".BootReceiver" >
            <intent-filter android:priority="1000">
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
</receiver>

Note: it is required to run the application before next device boot-up

About

App Launch on System Boot-up


Languages

Language:Java 100.0%