안드로이드 개발 질문/답변
(글 수 45,052)
서버에서 버전업된 앱을 다운받아 재설치를 하려 합니다.
코드는
File apkFile = new File(strSaveFileName);
Uri apkUri = Uri.fromFile(apkFile);
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(apkUri, "application/vnd.android.package-archive");
startActivity(intent);
요렇게 해서 설치 액티비티로 전환이 됩니다.
설치 액티비에서 재설치가 완료 되고 열기버튼을 누르면 서비스가 실행이 되야 될건데
실행이 안되네요 -- --
실행이 되기위한 방법이 없나요?
물론 앱실행을 됩니다.
설치단계에서 마지막에 열기에서 안됩니다. ㅠㅠ