Take the 2-minute tour ×

Is it possible to programmatically call another .apk file from my current Application in Android?

share|improve this question
To answer your question, yes, it's possible. Of course you probably didn't mean to ask a yes/no question and would like to know how to do this - but that question is too broad. What does "call another .apk" mean to you? There are multiple possibilities with different solutions. –  mah Jul 15 '12 at 11:06

1 Answer 1

try as:

        Intent intent = new Intent(Intent.ACTION_VIEW);
        File(Environment.getExternalStorageDirectory() + "/path/" 
        + "app_apk.apk")), "application/vnd.android.package-archive");
share|improve this answer
Wow, really? Your answer seems to either know a lot about what the poster is trying to do, or it's more suitable towards your own programming needs instead of something generic. –  mah Jul 15 '12 at 11:07
@mah : he is asking for calling an .apk from own application then maybe possible he us asking for installing an .apk from own appliction?? –  ρяσѕρєя K Jul 15 '12 at 11:10
calling an .apk -- via service? just launching an activity (through action? class/name? etc.? starting an activity for result? perhaps simply sending a broadcast would meet his needs? Until you know his needs (which he failed to mention) you have no reasonable way to answer him (and with regards to simply starting some remote activity, your answer is so far from being helpful I have to seriously wonder if the upvote you received was your own doing). –  mah Jul 15 '12 at 11:15
As to "asking for installing a .apk from his own application" I'll assume English is not your first language and I simply don't understand your, as the notion of what your chosen words suggest is really preposterous without having far more of a question than what the poster provided. –  mah Jul 15 '12 at 11:16
Say ,I have 2 applications onto my sdcard namely location.apk and detect.apk. Now from my location program i would want the detect application to run/execute which will basically take images. –  Joyson Jul 16 '12 at 13:26

Your Answer


