Timeline for How to open the Google Play Store directly from my Android application?
Current License: CC BY-SA 4.0
40 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 7, 2022 at 4:11 | history | edited | Cat | CC BY-SA 4.0 |
added 79 characters in body
|
S Nov 7, 2022 at 4:10 | history | suggested | Ryanhtech | CC BY-SA 4.0 |
Fixed last sentence readability
|
Nov 6, 2022 at 16:05 | review | Suggested edits | |||
S Nov 7, 2022 at 4:10 | |||||
Nov 7, 2021 at 16:09 | review | Suggested edits | |||
Nov 7, 2021 at 21:26 | |||||
Feb 22, 2021 at 20:14 | history | edited | Cat | CC BY-SA 4.0 |
deleted 19 characters in body
|
S Feb 22, 2021 at 15:15 | history | suggested | Bugs Happen | CC BY-SA 4.0 |
added code for Kotlin
|
Feb 22, 2021 at 6:15 | review | Suggested edits | |||
S Feb 22, 2021 at 15:15 | |||||
Oct 14, 2018 at 9:05 | comment | added | Ashwin | I think you should use application id instead of package name. | |
Aug 9, 2018 at 8:20 | review | Suggested edits | |||
Aug 9, 2018 at 9:41 | |||||
Jun 23, 2018 at 21:34 | comment | added | Bostrot | @DhavalRajani It wouldn't work on my emulator but on real hardware for me. | |
Feb 8, 2018 at 10:02 | comment | added | Dhaval Rajani | market:// is not working if i am redirecting from another domain url. For example if user is opening url example.com/blabla in his browser and i am simply redirecting to market://details?id=com.example.blabla previously its working but from 1 week onwards its not working. can anyone help me regarding this. i am using nodejs for URL redirection. | |
Mar 27, 2017 at 4:10 | comment | added | MPaulo | Developer is now: From a website: play.google.com/store/dev?id=<developer_id> From an Android app: market://dev?id=<developer_id> | |
Dec 23, 2016 at 11:08 | history | edited | Daniele Segato | CC BY-SA 3.0 |
Add Note about this method being handled by multiple markets
|
Aug 4, 2016 at 5:56 | comment | added | Coda | This solution assumes there is an intent to open a web browser. This isn't always true (like on Android TV) so be cautious. You may want to use intent.resolveActivity(getPackageManager()) to determine what to do. | |
Jul 29, 2016 at 14:15 | history | edited | OlivierH | CC BY-SA 3.0 |
Broken link fix
|
Jun 8, 2016 at 3:02 | review | Suggested edits | |||
Jun 8, 2016 at 3:05 | |||||
Dec 7, 2015 at 22:32 | comment | added | wblaschko | You still need the context to launch the intent. Context.startActivity() | |
Sep 22, 2015 at 15:56 | review | Suggested edits | |||
Sep 22, 2015 at 16:11 | |||||
Aug 10, 2015 at 15:42 | comment | added | Christian García |
For projects using the Gradle build system, appPackageName is in fact BuildConfig.APPLICATION_ID . No Context /Activity dependencies, reducing the risk of memory leaks.
|
|
Jul 30, 2015 at 15:33 | history | edited | Cat | CC BY-SA 3.0 |
You're welcome to submit your own code as an answer, but there is nothing wrong with using Exceptions in this way. It is not being used to control flow; it is handling the edge case of when the Play Store is not installed (which is already rare).
|
Jul 30, 2015 at 8:05 | history | edited | Aleks N. | CC BY-SA 3.0 |
it's generally a bad practice to base your logic on exceptions, especially if you can prevent that
|
Jan 22, 2015 at 14:18 | comment | added | Berťák | This solution does not work, if some application uses intent filter with "market://" scheme defined. See my answer how to open Google Play AND ONLY Google Play application (or webbrowser if GP not present). :-) | |
Jan 15, 2015 at 16:19 | comment | added | Cat |
@offset No, unfortunately not. There might be an Intent you could capture on package addition, but even then I don't think the OS provides you the control to switch over to your app. (Just to do something in the background.)
|
|
Jan 15, 2015 at 10:56 | comment | added | offset | Can I return to my app after the download is finish? Thanks. | |
Dec 28, 2014 at 20:09 | history | edited | Cat | CC BY-SA 3.0 |
Updating for HTTPS
|
Dec 28, 2014 at 20:09 | comment | added | Cat | @ooolala Need, no. Should have, yes. Will change that. | |
Dec 28, 2014 at 6:29 | comment | added | ooolala | Doesn't the web link need https now? | |
Oct 31, 2014 at 2:17 | comment | added | Cat | @SagiMann-TROPHiT Honestly, I'm not sure. You'd be better off starting a new question. | |
Oct 30, 2014 at 11:57 | comment | added | Sagi Mann | What if I want to open Play with a 'referrer' param? Am I expected to simply add it to the URI, e.g. "market://xxxxx&referrer=abc" ? Or do I need to update some other part of the Intent/action/etc? | |
Jul 29, 2014 at 3:12 | comment | added | code4jhon | For how to open google play independently (not embedded in a new view in the same app) please check my answer. | |
Dec 16, 2013 at 16:13 | history | edited | Cat | CC BY-SA 3.0 |
added 90 characters in body
|
Dec 16, 2013 at 15:50 | review | Suggested edits | |||
Dec 16, 2013 at 15:53 | |||||
Nov 8, 2013 at 23:05 | review | Suggested edits | |||
Nov 8, 2013 at 23:22 | |||||
Sep 4, 2013 at 11:14 | comment | added | Nathiya | thank u for the post. Me also tried with this code but it shows the option to select the browser/playstore. rajesh if u got the answer for this issue means update the post. | |
Aug 11, 2013 at 13:18 | comment | added | Stefano Munarini |
if you want to redirect to all Developer's apps use market://search?q=pub:"+devName and http://play.google.com/store/search?q=pub:"+devName
|
|
Sep 7, 2012 at 5:23 | vote | accept | Rajesh Kumar | ||
Aug 1, 2012 at 5:51 | comment | added | Cat |
Not sure what to tell you. I use this code on both 2.3.3 and 4.1 and both open up the Play Store. Additionally, the docs say market:// "Launches the Play Store app".
|
|
Aug 1, 2012 at 5:46 | comment | added | Rajesh Kumar | I have tried already with this code, this is also shows the option to select the browser/play store, because my device have installed both apps(google play store/browser). | |
Aug 1, 2012 at 5:44 | history | edited | Cat | CC BY-SA 3.0 |
added 75 characters in body
|
Aug 1, 2012 at 5:34 | history | answered | Cat | CC BY-SA 3.0 |