Gentlemen, do not tell me? My application uses USB(it is checked to use the default for USB) and now the application turns on when Android loads, Android 4.4 everything works, and in Android 6.0.1 but minimized, and how to make it start up right away unfolded?

1 Answers 1

1) Default launcher.
2) Start the Activity from the auto-start service.
  • senks for the answer.But at least some example has already done everything according to the bulky answers, and does not work.


    <?Xml version="1.0" encoding="utf-8"?&Gt;
    <manifest xmlns: android=""
      <uses-permission android: name="android.permission.RECEIVE_BOOT_COMPLETED"/>
            android: allowBackup="true"
            android: icon="@ mipmap/ic_launcher"
            android: label="@ string/app_name"
            android: roundIcon="@ mipmap/ic_launcher_round"
            android: supportsRtl="true"
            android: theme="@ style/AppTheme">
                android: name=".BootCompletedReceiver">
                  <action android: name="android.intent.action.BOOT_COMPLETED"/>
          <activity android: name=".MainActivity">
                  <action android: name="android.intent.action.MAIN"/>
                  <category android: name="android.intent.category.LAUNCHER"/>

    package org.nativescript.b360124.test_wifi;
    import android.content.BroadcastReceiver;
    import android.content.Context;
    import android.content.Intent;
    public class BootCompletedReceiver extends BroadcastReceiver {
        public void onReceive(Context context, Intent intent) {
            Intent i=new Intent(context, MainActivity.class);
    – Mysterious Mongoose Apr 15 '19 at 13:01
  • <intent-filter>
    			<action android: name="android.intent.action.MAIN"/>
    			<category android: name="android.intent.category.HOME"/>
    			<category android: name="android.intent.category.DEFAULT"/>
    – Irritating Yeti Apr 15 '19 at 13:09
  • Irritating Yeti, thanks for registering these categories and now you don’t even have to do a BootCompletedReceiver, the app starts in kiosk mode. – Mysterious Mongoose Apr 17 '19 at 12:00