I want to call one android application from another application
I have tried some examples, but they are not working for me, I'm getting a Package parse error.
Consider there are two applications: Application1 and Application2
I want to call Application2 from Application1
Here is the 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";