Skip to content

Instantly share code, notes, and snippets.

@springcome
Created October 22, 2013 10:09
Show Gist options
  • Save springcome/7098155 to your computer and use it in GitHub Desktop.
Save springcome/7098155 to your computer and use it in GitHub Desktop.
어플이 설치되어 있는지 확인하기, android
// 카카오톡이 설치되어 있는지 확인
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
try {
this.getPackageManager().getPackageInfo("com.kakao.talk", PackageManager.GET_ACTIVITIES);
} catch (NameNotFoundException e) {
e.printStackTrace();
ToastUtil.showShotToast(this, "없음");
}
ToastUtil.showShotToast(this, "있음");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment