7
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

AmazonAppstore対応時のまとめ

Posted at

【目次】

 0.概要
 1.アプリへのリンク
 まだ、これだけ

【0.概要】

 自分が、GoogelPlayStore用のアプリをAmazonAppstore用に対応させた際の、
 対応個所などをまとめて行こうかと思っています。

  Amazonスマホ【Fire Phone】も発表されたことですし^^
  ・POSTS TAGGED FIRE PHONE
  ・Amazonスマホ「Fire Phone」発表、Amazonは何を狙う?
  ・無双! Fire Phone発表に見るAmazonの強さ (1/3)
  ・アマゾン初のスマホFire Phone、ついに発表されました

【1.アプリへのリンク】

「Links to Google Play.」 と、
 GooglePlayにリンクしてるから駄目よって言われた場合の対応です。

スマホから

 パッケージ名を利用して
 GoolgePlayStoreページへ飛ばすには、下記の様に書いていますが~。
 (※getPackageName()部分に、任意のパッケージ名を設定。)

スマホからGoolgePlayStoreへ
	// GooglePlayStore
	Uri uri = Uri.parse("market://details?id=" + getPackageName());
	Intent intent = new Intent(Intent.ACTION_VIEW, uri);
	startActivity(intent);

 AmazonAppstoreに対応する場合は、下記こんな感じ。
  「market://details?id=」⇒ 「amzn://apps/android?p=」 に変更するだけ。

スマホからAmazonAppstoreへ
	// AmazonAppstore
	Uri uri = Uri.parse("amzn://apps/android?p=" + getPackageName());
	Intent intent = new Intent(Intent.ACTION_VIEW, uri);
	startActivity(intent);

Amazonの参考ページ

※補足としてブラウザから

 ブラウザから(PCから)の場合、短縮URLだと飛ばない罠。
 (端末にインストール済みのブラウザからも飛ばない。)

 なので、ブラウザからの場合、「http://~」を使う。

ブラウザからGoolgePlayStoreへ
	// GooglePlayStore
	Uri uri = Uri.parse("http://play.google.com/store/apps/details?id=" + getPackageName());
	Intent intent = new Intent(Intent.ACTION_VIEW, uri);
	startActivity(intent);

 AmazonAppstoreに対応する場合は、

ブラウザからAmazonAppstoreへ
	// AmazonAppStore
	Uri uri = Uri.parse("http://www.amazon.co.jp/gp/mas/dl/android?p=" + getPackageName());
	Intent intent = new Intent(Intent.ACTION_VIEW, uri);
	startActivity(intent);

  という事で、下記のリンク開くかな~実験。

  amzn://apps/android?p=jp.gr.java_conf.KateroseAndroid.amz.mbr.u0006.v001

  http://www.amazon.co.jp/gp/mas/dl/android?p=jp.gr.java_conf.KateroseAndroid.amz.mbr.u0006.v001

7
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?