I just tried the shortcut example (https://www.b4x.com/android/forum/threads/add-shortcuts-to-your-android-application.11444/) and I am getting an error.
When I try to place a new shortcut on the homescreen, I get a "App Isn't installed" error (reported by the launcher) on two different phones (Samsung S4 and a Nexus) running two different OS (Android 5.0.1 and 7.1.1).
Any ideas what is wrong?
(I did have to add the below code into the manifest because the example didn't include it for some reason)
When I try to place a new shortcut on the homescreen, I get a "App Isn't installed" error (reported by the launcher) on two different phones (Samsung S4 and a Nexus) running two different OS (Android 5.0.1 and 7.1.1).
Any ideas what is wrong?
(I did have to add the below code into the manifest because the example didn't include it for some reason)
B4X:
AddApplicationText(<activity android:windowSoftInputMode="stateHidden" android:launchMode="singleTop" android:name="shortcutactivity"
android:label="Add Shortcut" android:screenOrientation="unspecified">
<intent-filter>
<action android:name="android.intent.action.CREATE_SHORTCUT"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>"
)
Last edited: