Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between android.intent.category.LAUNCHER and android.intent.category.IOT_LAUNCHER

I was going through the sample program of Android things and i have found 2 there.

One was having <category android:name="android.intent.category.LAUNCHER" /> and another was having <category android:name="android.intent.category.IOT_LAUNCHER"/> , So what is the basic diffence between both of them?

reference link

like image 200
Ravi Avatar asked Dec 15 '16 11:12

Ravi


2 Answers

The documentation states:

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

The Activity declared as IOT_LAUNCHER will automatically start, when the device boots.

The definition in AndroidManifest.xml must contain the intent filter with 3 elements:

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

Look here for more info.

There is nothing that prevents you from declaring the same activity as a default start Activity to be run from Android Studio. The same Activity would be run a boot and by a programmer.

like image 132
R. Zagórski Avatar answered Sep 30 '22 15:09

R. Zagórski


Please find below difference between IOT_LAUNCHER and LAUNCHER:

IOT_LAUNCHER:

This intent is for Android Things which is an extended Android Framework for Internet Of Things(IOT) which is used for embedded programming using Android. Please check this link for more information.

LAUNCHER:

This intent is for normal Android application which is for mobile and Tablet Device.

There is also one more intent action which is, LEANBACK_LAUNCHER used for Android TV applications. Google Play store filters applications using this intent actions only.

Thanks.

like image 36
AndiGeeky Avatar answered Sep 30 '22 16:09

AndiGeeky