From 19fa8fee256be818737e1a3f05df358354476701 Mon Sep 17 00:00:00 2001 From: Scott Main Date: Tue, 6 Mar 2012 11:23:36 -0800 Subject: [PATCH] Fix badge generator URLs and images, and update script to generate different alt text for the different button styles. Also change homepage announce link for blog post. Change-Id: Ibbdc2e8abad3c218d030299eb60ba5bee75db232 --- docs/html/guide/publishing/publishing.jd | 105 +++++++++++++---------- docs/html/index.jd | 2 +- 2 files changed, 60 insertions(+), 47 deletions(-) diff --git a/docs/html/guide/publishing/publishing.jd b/docs/html/guide/publishing/publishing.jd index acceecf693b7e..b9513ab034ef8 100644 --- a/docs/html/guide/publishing/publishing.jd +++ b/docs/html/guide/publishing/publishing.jd @@ -320,7 +320,8 @@ URI is:

Note: If you create a link to open Google Play from your web site and the user selects it from an Android-powered device, the device's Google Play application will resolve the link so the user can use the Google Play application on the device instead of opening the web -site. As such, you should always use {@code http://play.google.com/store/...} URIs when creating a link on +site. As such, you should always use {@code http://play.google.com/store/apps/...} URIs when +creating a link on a web page. When pointing to your apps from within your Android app, use the {@code market://} URIs in an intent, so that the Google Play application always opens.

@@ -333,7 +334,7 @@ the application description, screenshots, reviews and more, and choose to instal

The format for the URI that opens the details page is:

-

<URI_prefix>details?id=<package_name>

+

<URI_prefix>apps/details?id=<package_name>

The <package_name> is a placeholder for the target application's fully-qualified package name, as declared in the {@code package} attribute of the {@code <manifest>} element.

+

For example: http://play.google.com/store/apps/details?id=com.example.myapp

+

Opening the app details page from your Android app

@@ -355,12 +358,12 @@ Google Play:

 Intent intent = new Intent(Intent.ACTION_VIEW);
-intent.setData(Uri.parse("market://details?id=com.android.example"));
+intent.setData(Uri.parse("market://details?id=com.example.android"));
 startActivity(intent);
 

This will open the Google Play application on the device to view the {@code -com.android.example} application.

+com.example.android} application.

Opening the app details page from a web site

@@ -369,17 +372,17 @@ com.android.example} application.

format:

- http://play.google.com/store/details?id=<package_name> + http://play.google.com/store/apps/details?id=<package_name>

For example, here's a link that opens an application's details page on Google Play:

-<a href="http://play.google.com/store/details?id=com.android.example">App Link</a>
+<a href="http://play.google.com/store/apps/details?id=com.example.android">App Link</a>
 

When clicked from a desktop web browser, this opens the Google Play web site to view the -{@code com.android.example} application. When clicked from an Android-powered device, users are +{@code com.example.android} application. When clicked from an Android-powered device, users are given the option to use either their web browser or the Google Play application to view the application.

@@ -456,17 +459,16 @@ web browser or the Google Play application to perform the search.

Build a Google Play button

-

Use the following form to generate a "Get it on Google Play" or "Android App -on Google Play" button that you can use on your web site. Input either your -application's package name or publisher name and the button will take users to -Google Play to either view your application's information or view a list of your -published apps. If users click the button while on an Android-powered device, -the Google Play application will respond to show users your application(s).

+

Use the following form to create a button for your web site that takes users to your application +on Google Play. Input either your application's package name or your publisher name and the button +will take users to Google Play to either view your application's information or view a list of your +published apps. If users click the button while on an Android-powered device, the Google Play +application will respond to show users your application(s).

-

This form offers four versions of the official brand badges at -recommended sizes. +

This form offers two styles of the official brand badge each at recommended sizes. You can pick +between either "Get it on Google Play" or "Android app on Google Play." You should not modify the +badge images in any way. For more usage guidelines, +see the Android Brand Guidelines.