[转]Android Market 链接的生成与分享

转自:http://android.kgmoney.net/2010/10/30/link-to-android-app-using-android-market-links/


Anyway, there a several ways to create Android Market Links, and they are the following:

  • Linking Directly to the App Listing
  • Searching by its Java Package Name
  • Searching by Developer Name
  • Searching by Keyword
  • Searching with a Combination of Parameters


1)Linking Directly to the App Listing

is the most direct way to get a visitor at your website to find your app in the market.  This method requires you to know the Java package name of you app and looks like the following:


http://market.android.com/details?id=<packagename>

- or -

market://details?id=<packagename>

For example:


    http://market.android.com/details?id=net.kgmoney.TalkingCallerID
    - or -
    market://details?id=net.kgmoney.TalkingCallerID

 

2)Searching by its Java Package Name

s basically the same as a direct Android Market link as described above, except that it will take the user to a search results page first, where they will have to choose you app.  I’m not really sure why this would be used in place of a direct market link, but it is done like this:

 

    http://market.android.com/search?q=pname:<package>
    - or -
    market://search?q=pname:<package>


For example:

    http://market.android.com/search?q=pname:net.kgmoney.TalkingCallerID
    - or -
    market://search?q=pname:net.kgmoney.TalkingCallerID

 

3)Searching by Developer Name

is a slightly more general way to link to Android apps in that it will show a results page listing all the apps developed by a given developer.  This is very useful if you would like to show existing users what else you have to offer.  Here’s how to do it:


    http://market.android.com/search?q=pub:<Developer Name>
    - or -
    market://search?q=pub:<Developer Name>

For example:


    http://market.android.com/search?q=pub:<Developer Name>
    - or -
    market://search?q=pub:<Developer Name>

 

4)Searching by Keyword

makes your link even more general, allowing you to direct the user to a list of apps relating to your selected keyword.  This is how it works:

 

    http://market.android.com/search?q=talking caller id
    - or -
    market://search?q=<substring>

 

For example:

 

    http://market.android.com/search?q=talking caller id
    - or -
    market://search?q=talking caller id

 

5)Searching with a Combination of Parameters

simply combines the above search links.  This is done as follows:

 

    http://market.android.com/search?q=<substring> pname:<package> pub:<Developer Name>

 

For example:


    http://market.android.com/search?q=talking caller id pname:net.kgmoney.TalkingCallerID pub:kgmoney.net


 


 

你可能感兴趣的:(android)