How to call one android application from another android application
Posted
by Akshata
on Stack Overflow
See other posts from Stack Overflow
or by Akshata
Published on 2010-04-28T10:06:44Z
Indexed on
2010/04/30
4:37 UTC
Read the original article
Hit count: 303
android
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
© Stack Overflow or respective owner