12

Is there a url format available such that clicking on the url will open the Android (Gphone) Marketplace to a particular app's page for installation?

Does it work with the 'current' Android OS ver in the wild?

Eg, can I put something on my customized Android website better than

  1. Please open the Marketplace application,
  2. search for FBReader
  3. then install it

The app that I want to point people to is the epub reader, FBReader http://www.fbreader.org/FBReaderJ/

4

3 に答える 3

5

ここの情報に基づく: http://developer.android.com/distribute/googleplay/promote/linking.html

これを探しているようです:

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

id= の後に、ストアで直接リンクしたいアプリのパッケージ名が続きます。

パッケージ名を確認するには、デバイスにアプリをダウンロードしてインストールし、実行します

adb shell

次のコマンドを使用します。

pm list packages -f

デバイスにインストールされているすべてのものが一覧表示されるため、探しているアプリを簡単に見つけることができるはずです。

于 2012-11-30T17:12:10.103 に答える
1

これは、標準の HTML アンカー タグとして機能するはずです。

https://market.android.com/search?q=pname:com.google.earth

したがって、「pname」パラメーターについては、あなた (Larry K) は次のように使用する可能性があります。

https://market.android.com/search?q=pname : [ org (ドット) geometerplus (ドット) zlibrary (ドット) ui (ドット) android ]

...に似ている:

market://search?q=pname:com.google.earth

はい?

于 2011-03-02T04:11:11.717 に答える
0

私はあなたのウェブサイトを見回しましたが、あなたがあなたのサイトでこれを理解していることがわかりませんでしたので、最近学んだことを共有したいと思いました. リンクを作成する場合: market://search?q=org.geometerplus.zlibrary.ui.android

これにより、マーケットプレイスのアプリに直接リンクされます。

于 2010-09-15T15:30:18.133 に答える