English 中文(简体)
我怎么能利用Intent和通过开发商名称过滤亚马孙应用仓库?
原标题:How can I do an Amazon App Store search using an Intent and filter it by developer name?

Is there a way to start an Intent on the Kindle Fire that will cause the AppStore app to open and display all the apps for a certain developer? For instance, on a phone/tablet with the Android Market installed, I can do this:

Intent otherApps = new Intent(Intent.ACTION_VIEW,Uri.parse("market://search?q=pub:"" + developerName + """));
activity.startActivity(otherApps);

我在安的市场展示了我的所有看法。 我能否与亚马孙应用仓库一道这样做? 如果是,如何? 我曾尝试过这种带有其他似乎有效的名称(例如“ZeptoLab”)的字句,我没有受到任何过滤。 这只是把我 drop倒在完全不受渗透的寄售处。 看看“市场http://details?id= Package.name”的具体数据似乎可行。

问题回答

http://developer.amazon.com/help/faq.html#Marketing”rel=“noreferer” https://developer.amazon.com/help/faq.html#Marketing :

http://www.amazon.com/gp/mas/dl/android?p=包装名称”rel=“noreferer” http://www.amazon.com/gp/mas/dl/android?p=包装名称。 (在包件名称是你的包裹名称)。

If you want to link to the list of all your applications on the Amazon Appstore use the URL http://www.amazon.com/gp/mas/dl/android?p=packagename&showAll=1.

e.g. 。 http://www.amazon.com/gp/mas/dl/android?p=com.rovio.angry鸟类s&showAll=1

这里可以看到:rel=“noreferer”>https://developer.amazon.com/sdk/in-app-purchasing/sample-code/deeplink.html

Update(deep linking):

amzn://apps/android?p=

http://developer.amazon.com/help/tuabg.html“rel=“nofollow”https://developer.amazon.com/help/tuabg.html

For in-app advertising or mobile browser based linking, please: Use this link structure: http:// www.amazon.com/gp/mas/dl/android?p=com.example.package/ref=mas_pm_app_name

For a link that directs to a list of all of your apps within our U.S. store, please: Use this link structure: http://www.amazon.com/gp/mas/dl/android?p=com.example.package&showAll=1

现在,你认为亚马孙将在其自己的网站上有这一正确之处,但我用黑体表示的第一部分是错误的。 这实际上是:

通知&,而不是/。 我希望这能帮助其他一些人,因为我的一些时间没有多少细节。

我在此提出的解决办法是利用奇基的建议:

我在一份资源档案中添加了一条灯光,表明该信是否在亚马孙养家或安康市场公布。 Yeah,每当你公布你的照片时,你就不得不改变这种说法,但认为这种说法与你出版时的记忆一样。 列入检查名单。 就像这一点一样:

在资源档案中:

 <bool name="app_is_in_amazon_app_store">true< /bool>

法典:

public class SomeUtil
{


 private static Boolean isInAmazonAppStore;


 public static boolean isInAmazonAppStore(Activity activity)
 {

       if (isInAmazonAppStore == null) 
        {
           isInAmazonAppStore =   activity.getResources().getBoolean(R.bool.app_is_in_amazon_app_store) ;
        }

       return isInAmazonAppStore;

 }

    public static void startOtherMarketAppsActivity(Activity activity)
    {
        try
        {
            Intent otherApps = null;

            if (isInAmazonAppStore(activity))
            {
              otherApps = new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.amazon.com/gp/mas/dl/android?p=" + getPackageNameInAmazonAppStore(activity) + "&showAll=1")); 
            }
            else
            {
              otherApps = new Intent(Intent.ACTION_VIEW,Uri.parse("market://search?q=pub:"" + getAndroidDeveloperName(activity) + """));
            }

            activity.startActivity(otherApps);
        }
        catch(Exception ex){  /* error handling */} 
}




相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...