Tuesday, 8 January 2013

How to install .apk programmatically in android

  Here the blow code is used to call .apk file from the android programmatically.
  Status.apk is the .apk file name.you can use your .apk file name.
             
                Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(
Uri.fromFile(new File(Environment.getExternalStorageDirectory()
+ "/" + "Status.apk")),
"application/vnd.android.package-archive");
startActivity(intent);

No comments:

Post a Comment

Android SQLite Database Viewer or Debuging with Stetho

Every Android Developer uses SQLite Database to store data into the Android Application data. But to view the data in SQLite have a lot of...