简体   繁体   中英

App takes a very long time to start after rebooting the device

My application is running in Kiosk mode, so the user cannot launch third-party applications. Also, my application is set to autoload after rebooting the smartphone. The application starts in the Kiosk mode after rebooting the smartphone. The problem is that the launch of the application takes a long time and the user, if desired, can have time to launch some third-party programs.

After researching this issue, I realized that this is most likely related to the priority of starting services. System services/applications are loaded first, and then user applications are loaded. I found out in the sources that you can increase the priority of the application, but this only works on privileged applications, otherwise the priority level is only 0.

Is it possible to somehow speed up the download of the application or transfer the application to the privileged category when installing the application?

Perhaps this will help. The application is the owner of the device and the installation takes place using a QR code after device wipe.

As advised by @GabeSechan I set my app as launcher. It's solved my problem

    <activity
        android:name=".MainActivity">
        <intent-filter>
            <category android:name="android.intent.category.LAUNCHER" />
            <category android:name="android.intent.category.HOME" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM