갑자기 운영중인 앱에 이슈가 생겨서 골치가 아프네요..
여러분의 도움이 간절히 필요합니다ㅠ
문제는,
현재 앱에 INSTALL_SHORTCUT 기능과 UNINSTALL_SHORTCUT 기능을 넣어서
특정 버튼 클릭시 지정한 아이콘에 지정한 이름의 SHORTCUT을 생성하게 해놓았는데,
특정기기나 특정 버전에서 중복생성 문제가 있어서 UNINSTALL_SHORTCUT 후에 INSTALL_SHORTCUT 을 실행하게 해놓았습니다.
앱 배포후에, 문제없이 동작하는 줄 알고 지내다 버전업하여 배포 후에
VOC 가 들어왔는데 앱을 업데이트 했더니 우리 앱이름으로 해당
SHORTCUT 이름이 덮어씌어지면서 하나더 생성되었다는 특이한 현상이 발생한다는 것입니다ㅠㅠ
테스트 기기로 재현해본 결과,
특정기기 (갤럭시노트2 -버전 4.1.1)에서 발생했으며,
기존 이벤트 SHORTCUT이 우리 앱 이름으로 SHORTCUT명이 바뀌고, 이벤트 SHORTCUT은 새로 생성되는 특이한 현상이 생기는 (우리 앱은 그대로 있고) 문제가 발생합니다...에효....어찌해야할까요...
관련하여 지식있는 분들의 답변부탁드립니다!!
참고로, 저희 코드는 다음과 같습니다.
-----------------------------------------------------------------------------------------------
try {
Intent shortcutIntent = new Intent(this,AAA.class);
shortcutIntent.setAction(Intent.ACTION_MAIN);
shortcutIntent.addCategory(Intent.CATEGORY_LAUNCHER);
shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP|Intent.FLAG_ACTIVITY_SINGLE_TOP);
Intent intent = new Intent();
intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent);
intent.putExtra(Intent.EXTRA_SHORTCUT_NAME, getString(R.string.CCC));
intent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE,
Intent.ShortcutIconResource.fromContext(this, R.drawable.BBB));
intent.putExtra("duplicate", false);
intent.setAction("com.android.launcher.action.INSTALL_SHORTCUT");
sendBroadcast(intent);
setResult(RESULT_OK,intent);
} catch (Exception e) {
CLOG.error(e);
}