i just want to send an broadcast when launch shortcut after search i didn't find any solution and i find one idea its launch an activity with the No Display and send broadcast from it and i do that's like this
<activity android:name=".activity.shortcut"
android:exported="true"
android:excludeFromRecents="true"
android:theme="@style/AppTheme.Transparent"
></activity>
and the theme Transparent
<style name="AppTheme.Transparent" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowIsFloating">true</item>
<item name="android:backgroundDimEnabled">false</item>
</style>
and the code for install shortcut its
Intent shortcutIntent = new Intent(getContext(), shortcut.class);
shortcutIntent.putExtra("name","name");
shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
//shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS); //no effect
//shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY); //no effect
Intent addIntent = new Intent();
addIntent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent);
addIntent.putExtra(Intent.EXTRA_SHORTCUT_NAME, conversationList.getFname());
addIntent.putExtra(Intent.EXTRA_SHORTCUT_ICON, mBitmap);
addIntent.putExtra("duplicate", false);
addIntent.setAction("com.android.launcher.action.INSTALL_SHORTCUT");
getContext().sendBroadcast(addIntent);
after run the app and create the shortcut when i click on the shortcut its open all the app and send brodcast so i just want to open the activity without launch main activity in application or just send broadcast when click on shortcut