• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Application terminates in Android 6.0

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
 
Please post the stack trace from your Logcat window, and use [code][/code] tags for your code fragments. Thanks.
 
Back
Top Bottom