あなたのアドオンのショートカット法の物乞いでは(サーバDBから例のショートカット名やidに)あなたのショートカットに
をuniqie IDを使用する必要があります。
if (loadBoolean(context, String.valueOf(shortcutid))) return;
sendbroadcast方法の後に呼び出す必要があります。
をセーブとロード方法の
saveBoolean(context, true, String.valueOf(shortcutid));
コード:
protected static boolean saveBoolean(Context context, boolean value, String tag) {
try {
PreferenceManager.getDefaultSharedPreferences(context).edit().putBoolean(tag, value).apply();
} catch (Exception e) {
return false;
}
return true;
}
protected static boolean loadBoolean(Context context, String tag) {
boolean value = false;
try {
value = PreferenceManager.getDefaultSharedPreferences(context).getBoolean(tag, false);
} catch (Exception ignored) {}
return value;
}
[ホームスクリーンのショートカットが存在するかどうかを判断する方法](http://stackoverflow.com/questions/9322165/how-to-determine-if-a-home-screen-shortcut-exists) –