0
我得到apk在服務器。我怎樣才能自動安裝apk上android沒有市場NOT系統應用
,我嘗試
File apkFile = new File("/sdcard/Download/openapk.apk");
Uri apkUri = Uri.fromFile(apkFile);
Intent webIntent = new Intent(Intent.ACTION_VIEW);
webIntent.setDataAndType(Uri.fromFile(apkFile), "application/vnd.android.package-archive");
webIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(webIntent);
此代碼。 顯示在圖片下方後。這個代碼是我點擊安裝按鈕時的 。開始安裝。 但我想自動安裝。apk執行
也許可能在apk執行後自動安裝。 ?
不,不可能。 – camelCaseCoder
請勿拍下錯誤信息。將錯誤消息**作爲文本**添加到您的問題。 –
@camelCaseCoder也許,如果我的應用程序系統的應用程序。可能? –