17

In my app, I want to allow users to open the Google Play store to see all of my other apps. In iOS, I just use the following (example) iTunes link to pull them all up:

https://itunes.apple.com/us/artist/electronic-arts/id284800461?mt=8

Is there a way to get ALL of my apps to show (besides a search for my company name, which is rather generic)?

Ethan Allen
  • 14,425
  • 24
  • 101
  • 194

5 Answers5

35

Search for a product, including the pub: tag, as can be found at the API page entitled Linking to your products. Note that searching via a URL requires a different method. Both are included here. Start an intent like this:

try {
    startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://search?q=pub:Developer+Name+Here")));
} catch (android.content.ActivityNotFoundException anfe) {
    startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://play.google.com/store/apps/developer?id=Developer+Name+Here")));
}

Note that the market doesn't work on the emulator, so this code will instead pull it up in a URL. This method courtesy of this answer.

Community
  • 1
  • 1
PearsonArtPhoto
  • 38,970
  • 17
  • 111
  • 142
9

Just use the developer parameter. This is the shortcut for googles

https://play.google.com/store/apps/developer?id=Google+Inc.

Google's Apps

Just put a + between works if there are spaces

Jameo
  • 4,507
  • 8
  • 40
  • 66
6

Android actually has an even better way to handle this.

You can also group all your applications by the package names, provided you had the discipline to actually think over it. For instance, if all my apps start with com.mycompanyname.androidappname, I can simply search https://play.google.com/store/search?q=com.mycompanyname.*

PravinCG
  • 7,688
  • 3
  • 30
  • 55
  • This works like a charm. I'm using this to link to a subset of my apps, for them I have a "subdomain", i.e. com.mycompanyname.someofmyapps – Jose_GD Dec 10 '14 at 14:50
0

Now there are another ways described here

https://developer.android.com/distribute/marketing-tools/linking-to-google-play#OpeningPublisher

e.g. for Google Inc https://play.google.com/store/apps/dev?id=5700313618786177705

Vlad
  • 7,997
  • 3
  • 56
  • 43
0

You can use this, it works for me

private void moreApps(Context context, int devName){
        try {
            context.startActivity(new Intent(Intent.ACTION_VIEW,
                    Uri.parse(context.getString(R.string.url_market_search_app)
                            + context.getString(devName))));
        } catch (android.content.ActivityNotFoundException anfe) {
            try {
                context.startActivity(new Intent(Intent.ACTION_VIEW,
                        Uri.parse(context.getString(R.string.url_playstore_search_app)
                                + context.getString(devName))));
            } catch (Exception e) {
                Toast.makeText(context,
                        R.string.install_google_play_store,
                        Toast.LENGTH_SHORT).show();
            }
        }

}
Kumar Santanu
  • 603
  • 1
  • 7
  • 14
  • Please, don't post code without an explanation as an answer. Try to explain what your code does and how it solves the problem of the question. Answers with an explanation are usually more helpful and of better quality, and are more likely to attract upvotes. – Zsolt Meszaros Feb 04 '21 at 07:48