Hi,

I'm trying to install apks by program (permision has been set), code
as following show:
        Intent intent = new Intent(Intent.ACTION_VIEW);
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        intent.setAction(Intent.ACTION_VIEW);
        intent.setDataAndType(Uri.fromFile(file), "application/
vnd.android.package-archive");
        mContext.startActivity(intent);
it could work, but, there always the prompt from system such like "are
you sure you want to install this application", then an operation must
set to continue the install process.

I need to install the apks only by one choice at the very begining,
then it will install all of them automatically without any prompt
during the process. What should I do?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to