바로가기(ShortCut)생성시 언어 지원 방법?
일반적으로 런처에서 롱클릭해서 생성하는 경우 홈스크린 앱리스트가
멀티 랭기지를 지원합니다.
Intent i = new Intent();
Intent shortcutIntent = new Intent(this,Sample_ShortCutActivity.class);
i.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent);
i.putExtra(Intent.EXTRA_SHORTCUT_NAME, getString(R.string.app_name));
//Bitmap bm = BitmapFactory.decodeResource(getResources(), R.drawable.starnote_icon_shortcut);
//i.putExtra(Intent.EXTRA_SHORTCUT_ICON, bm);
Parcelable iconResource = Intent.ShortcutIconResource.fromContext(this, R.drawable.icon);
i.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, iconResource);
i.putExtra("duplicate", false); // // Do not allow duplicate items
i.setAction("com.android.launcher.action.INSTALL_SHORTCUT");
sendBroadcast(i);
하지만 위와 같은 방식의 코드상으로 생성된 숏컷의 경우는 언어 병경을 해도 언어가 그대로 처음 생성된 언어 그대로입니다.
바로가기 생성시 멀티랭기지 지원 방법이 있는지 문의합니다...




i.putExtra(Intent.EXTRA_SHORTCUT_NAME, getString(R.string.app_name));
숏컷생성하실때
app_name 스트링을 참조하도록하셨는데
res\values\string.xml 만 정의하신거 아닌가요??
예> 한국어 : res\values-ko\string.xml 에서 .app_name을 "한국어로 나와라"같이 추가해주시면 될거같네요
values-ko 같은 폴더명은 아래 링크하는 국가별 언어코드참조하셔서 추가하시면 됩니다.
http://en.wikipedia.org/wiki/ISO_639-1_language_matrix