spider22
Lurker
Hello
I have a button on my application which onclick downloads the APK in the buffer and then installs the APK ...
Here is the code
File dir = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "/android/data/org.xbmc.kodi");
if (!dir.exists())
dir.mkdirs();
else {
String[] ar = dir.list();
String a = "";
}
String apk_url = "http://mirrors.kodi.tv/releases/android/arm/kodi-16.1-Jarvis-armeabi-v7a.apk";
// new DownloadFIle().execute(apk_url, file);
DM.buff = true;
DM.TrialStarter(apk_url, apk_url, (FragmentActivity) MainActivity.this);
break;
Its working fine in Android 5.1 but not in Android 6.0
Please assist
I have a button on my application which onclick downloads the APK in the buffer and then installs the APK ...
Here is the code
File dir = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "/android/data/org.xbmc.kodi");
if (!dir.exists())
dir.mkdirs();
else {
String[] ar = dir.list();
String a = "";
}
String apk_url = "http://mirrors.kodi.tv/releases/android/arm/kodi-16.1-Jarvis-armeabi-v7a.apk";
// new DownloadFIle().execute(apk_url, file);
DM.buff = true;
DM.TrialStarter(apk_url, apk_url, (FragmentActivity) MainActivity.this);
break;
Its working fine in Android 5.1 but not in Android 6.0
Please assist