android - Installing an APK results in a parse error -


i created app-debug.apk file in /sdcard/download

i have code:

@override public void onclick(view v){     intent intent = new intent(intent.action_view);     intent.setdataandtype(uri.fromfile(new file(environment.getexternalstoragedirectory() + "/sdcard/download/" + "app-debug.apk")),     "application/vnd.android.package-archive");     intent.setflags(intent.flag_activity_new_task);     startactivity(intent); } 

i getting error:

parse error

there problem parsing package.

how can modify programmatically without getting error?


Comments

Popular posts from this blog

ios - Memory not freeing up after popping viewcontroller using ARC -

Java JSoup error fetching URL -

webstorm - PhpStorm file cache conflict with TypeScript compiler -