Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2025-02

I need to have launcher intent compatible with Android 14

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mgr. Janusz Chmiel

Dear developers,
Please, how to redesign The following piece of androidmanifest.xml so The resulting intent will be acceptable for Android 14 core? It refuse to accept This intent so app can not be installed if developer specify Android34 Api target in The androidmanifest.xml Overide this lead to The bad fact. 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.
Thank you for your help.

Reply by email

Wayne Sherman
to Mgr. Janusz Chmiel
Show quoted text 10 lines
. 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."

Reply by email