The difference between android.intent.category.LAUNCHER and android.intent.category.IOT_LAUNCHER

I was passing a sample Android program and I found there 2.

One had <category android:name="android.intent.category.LAUNCHER" /> , and the other had <category android:name="android.intent.category.IOT_LAUNCHER"/> . So what is the main difference between the two?

link link

+5
source share
2 answers

The documentation states:

An application designed to run on an embedded device must declare activity in its manifest as the main entry point after loading the device

An activity declared as IOT_LAUNCHER will automatically start when the device IOT_LAUNCHER up.

The definition in AndroidManifest.xml should contain an intent filter with three elements:

  • Action: ACTION_MAIN
  • Category: CATEGORY_DEFAULT
  • Category: IOT_LAUNCHER

Check here for more information.

There is nothing to prevent you from declaring the same activity as the default launch of the default Activity from Android Studio. The same Activity will start the download by the programmer.

+5
source

Below find the difference between IOT_LAUNCHER and LAUNCHER :

IOT_LAUNCHER:

This is the intention for Android Things, which is an advanced Android platform for the Internet (IOT) that is used for embedded programming using Android. For more information, see Link.

LAUNCHER:

This is the intention for a regular Android application that is designed for mobile devices and tablet devices.

There is another intention that LEANBACK_LAUNCHER used for Android TV applications. Google Play only saves filters through these steps.

Thanks.

+2
source

Source: https://habr.com/ru/post/1261326/


All Articles