mirror of
https://github.com/ethauvin/android-about-box.git
synced 2025-04-25 10:47:10 -07:00
Handle both publisher or developer page.
This commit is contained in:
parent
c6fae1ad37
commit
6fbb16f264
1 changed files with 10 additions and 3 deletions
|
@ -69,9 +69,16 @@ public final class AboutBoxUtils {
|
||||||
String webURI = null;
|
String webURI = null;
|
||||||
switch (buildType) {
|
switch (buildType) {
|
||||||
case GOOGLE:
|
case GOOGLE:
|
||||||
// per: https://developer.android.com/distribute/marketing-tools/linking-to-google-play.html#OpeningPublisher
|
// see:
|
||||||
appURI = "market://dev?id=" + publisher;
|
// https://developer.android.com/distribute/marketing-tools/linking-to-google-play.html#OpeningPublisher
|
||||||
|
// https://stackoverflow.com/questions/32029408/how-to-open-developer-page-on-google-play-store-market
|
||||||
|
if (publisher.matches("\\d+")) {
|
||||||
webURI = "http://play.google.com/store/dev?id=" + publisher;
|
webURI = "http://play.google.com/store/dev?id=" + publisher;
|
||||||
|
appURI = webURI;
|
||||||
|
} else {
|
||||||
|
appURI = "market://search?q=pub:" + publisher;
|
||||||
|
webURI = "http://play.google.com/store/search?q=pub:" + publisher;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case AMAZON:
|
case AMAZON:
|
||||||
appURI = "amzn://apps/android?showAll=1&p=" + packageName;
|
appURI = "amzn://apps/android?showAll=1&p=" + packageName;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue