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

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -