I am creating an android app which depends on some other android apps. So if these dependent apps are not already there on the users mobile, I would like to download them programmatically from play store. But during this process I don't want the control to go to the Play store app (i.e. no Play store app activity should be visible). Is is possible to achieve this using some service, google API? How do I go about implement this? I tried the market api and it worked but now while installation I am getting "unknown sources" pop up. Is it possible to get rid of form this ?? What is difference between downloaded apk from play store app and market api ??
Asked
Active
Viewed 1.6k times
8
-
you're not exactly supposed to do that, so i don't think it is possible – njzk2 Dec 04 '12 at 13:26
-
@njzk it's possible, see my answer below – Ahmad Dec 04 '12 at 13:28
1 Answers
3
There is an unofficial market API: And this is how you can download apps with it.

Ahmad
- 69,608
- 17
- 111
- 137
-
-
1I tried the market api and it worked but now while installation I am getting "unknown sources" pop up. Is it possible to get rid of form this ?? What is difference between downloaded apk from play store app and market api ?? – user1875798 Dec 07 '12 at 05:37
-
2While this approach downloads the app from the store, it installs it in such a way that it will not be recognized as coming from the store. It will not receive automatic updates. The "unofficial market API" may also stop working at any time and in any way. Depending on internal implementation details of the Play Store in this way is the very soul of What Not To Do When Developing Software. – j__m Nov 15 '13 at 02:28