취미 기록용 블로그

안드로이드 sd 메모리에서 apk 설치하기

File apkFile = new File(apk파일경로);
	if(apkFile.exists() == true ){
		Intent intent2 = new Intent(Intent.ACTION_VIEW);
		intent2.setDataAndType( Uri.fromFile(apkFile), "application/vnd.android.package-archive");
		this.startActivity(intent2);                
	}

안드로이드에서 APK 설치하게 해주는 명령


Comments

답글 남기기

이메일 주소는 공개되지 않습니다. (이름과 이메일은 안써도 됩니다)

이 사이트는 Akismet을 사용하여 스팸을 줄입니다. 댓글 데이터가 어떻게 처리되는지 알아보세요.