0 코드
Uri uri = Uri.parse("market://details?id=" + this.getPackageName());
Intent goToMarket = new Intent(Intent.ACTION_VIEW, uri);
goToMarket.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY | Intent.FLAG_ACTIVITY_NEW_DOCUMENT | Intent.FLAG_ACTIVITY_MULTIPLE_TASK);
try {
startActivity(goToMarket);
} catch (ActivityNotFoundException e) {
startActivity(new Intent(Intent.ACTION_VIEW,
Uri.parse("http://play.google.com/store/apps/details?id=" + this.getPackageName())));
}
return true;
1 사실, 이 사이트 소개
https://code-examples.net/ko/q/a50cf5
구글에서 "code-examples.net" -site:code-examples.net 로 검색하면, 트위터 달랑 하나 나온다. 그만큼 구글링에 의존하고 있는데 목록을 따로 하루 하나씩 봐 두는 것도 나중에 찾기 까다로운 녀석이 나왔을 때 도움이 된다고 생각한다.