[fpc-pascal] I need to have launcher intent compatible with Android 14

Wayne Sherman wsherman at gmail.com
Wed Feb 5 17:31:02 CET 2025


On Tue, Feb 4, 2025 Mgr. Janusz Chmiel wrote:
>. App can be installed, but user is
> helpless to find its launcher at The launcher desktop.
> Here is The short intent.
>          <intent-filter>
>              <action android:name    ="android.intent.action.MAIN" />
>              <category android:name ="android.intent.category.LAUNCHER" />
>          </intent-filter>
>
> I have got AN error from Android 14 from ADB that Intents must be
> specified explicitly or simlar message.

Possibly related to this change:
https://developer.android.com/about/versions/14/behavior-changes-14#safer-intents

"For apps targeting Android 14 (API level 34) or higher, Android
restricts apps from sending implicit intents to internal app
components in the following ways:
- Implicit intents are only delivered to exported components. Apps
must either use an explicit intent to deliver to unexported
components, or mark the component as exported.
- If an app creates a mutable pending intent with an intent that
doesn't specify a component or package, the system throws an
exception."


More information about the fpc-pascal mailing list