마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

구글설치페이지로 가면서 다른 intent를 실행하려면 어떻게 해야하는가요?

0 추천

안녕하세요^^

두 가지 intent 작업이 있는데 intent2와 intent3을 순서대로 실행하려고 합니다.

구글설치페이지로 가면서 다른 intent를 실행하려면 어떻게 해야하는가요?

방법을 모르겠습니다. 도와주세요ㅠ

감사합니다~

boolean isInstalled = isPackageInstalled("com.kt.android.showtouch");
if(value == 2 && isInstalled){
Log.d("Sample", "설치완료");
}else{

Log.d("Sample", "미설치");
Intent intent2 = new Intent(Intent.ACTION_VIEW,
Uri.parse("https://play.google.com/store/apps/details?id="));
startActivity(intent2);
}


Intent intent3 = new Intent(Intent.ACTION_VIEW,
Uri.parse("http://www."));
startActivity(intent3);

 

marimari (520 포인트) 님이 2015년 9월 4일 질문

1개의 답변

0 추천
그럼 설치화면이 뜬 상태에서 창이 하나 또 뜨게 됩니다.

설치화면이 닫힐 때를 알고 싶으면 startActivityForResult 로 실행해야 해요.
쎄미 (162,410 포인트) 님이 2015년 9월 4일 답변
...