Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I would like to mass install few apps at one time from a single FTP server - from Android phone, without using adb command.

The phone will be rooted and will have and the option to install non-Market apps turned on.

I know it is possible to install many apps using single adb command (http://www.androidsim.net/2011/06/how-to-18-mass-installing-multiple.html) but I would like to do this using an Android app that would download all the apps and install them. I am looking for a ready-made solution (app/code snippet) or a clues for implementing FTP connection.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

This is a way of programatically installing APKs

the code snippet you're looking for is:

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(Environment.getExternalStorageDirectory() + "/download/" + "app.apk")),"application/vnd.android.package-archive");
startActivity(intent);
share|improve this answer
    
Thanks, I've searched Android SE archives but didn't search SO archives. –  REACHUS Feb 27 '12 at 16:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.