How to call one android application from another android application
- by Akshata
I want to call one android application from another application
I have tried example on site
http://www.anddev.org/install-run_applications_from_within_another_application-t6909.html
but it is not working for me
It is giving Package parse error..
Please replay as soon as possible.
Consider there are two applications: Application1 and Application2
I want to call Application2 from Application1
I got some sample code to do this:
Intent i = new Intent();
i.setAction(android.content.Intent.ACTION_VIEW);
i.setDataAndType(Uri.fromFile(fileName),"application/vnd.android.package-archive");
startActivity(i);
here fileName = "file://data/data/package_name/files/Application1.apk";
But I am getting Package Error and
skipping file://data/data/package_name/files/Application1.apk