Created
October 22, 2013 10:09
-
-
Save springcome/7098155 to your computer and use it in GitHub Desktop.
어플이 설치되어 있는지 확인하기, android
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 카카오톡이 설치되어 있는지 확인 | |
@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