0
App 및 Updater 앱을 만들었습니다. 업데이터 응용 프로그램은 사용 가능한 경우, 최신 버전을로드 한 후 다음 코드를 설치, 매우 간단합니다 : 그것은 permissons 후, 안드로이드 4.4.2 모든 안드로이드 버전에서 잘 작동하지만 것Android에서 작동하지 않는 앱 작동 4.4.2
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(PATH_TO_APK)), "application/vnd.android.package-archive");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
대화 상자에서 앱을 설치할 수 없다고 말합니다.
나는 내 문제 해결Environment.getExternalStorageDirectory().getPath() + "/.temp.apk";