2011-10-05 20 views
5

我想從我的應用程序寫在亞馬遜市場的審查。 但是我可以使用此代碼爲Android市場做到這一點。如何使用應用程序在亞馬遜市場上撰寫評論?

Uri marketUri = Uri.parse("market://details?id=" + getPackageName()); 
Intent intent = new Intent(Intent.ACTION_VIEW); 
intent.setData(marketUri); 
startActivity(intent); 

比我應該爲亞馬遜市場做同樣的事情做什麼?

回答

11

對於亞馬遜App Store檢查此鏈接https://developer.amazon.com/help/faq.html它有很多有用的信息。回答你的問題是,在「營銷」

Intent goToAppstore = new Intent(Intent.ACTION_VIEW, 
     Uri.parse("http://www.amazon.com/gp/mas/dl/android?p=com.jakar.myapp")); 
     goToAppstore.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 
     context.startActivity(goToAppstore); 

,將打開亞馬遜的應用程序商店的myapp。 (當然用你的包名切換「com.jakar.myapp」)。

對於具有相同的APK文件,同時支持Android和亞馬遜的市場中看到:How to support Amazon and Android Market (Google Play) links in same APK

+1

亞馬遜已將鏈接移至「鏈接說明」下的「商標和徽章」部分。 https://developer.amazon.com/public/resources/marketing-tools/using-badges –

+0

但我發現這個網頁是爲我解決問題的網頁,因爲我使用的是HTML5 Web應用程序,並且只是想通過我的ASIN像這樣amzn:// apps/android?asin = B004FRX0MY:https://developer.amazon.com/sdk/in-app-purchasing/sample-code/deeplink.html –

0

只需使用此代碼,沒有什麼特別的:

Uri marketUri = Uri.parse("<link-to-the-amazon-market>"); 
Intent intent = new Intent(Intent.ACTION_VIEW); 
intent.setData(marketUri); 
startActivity(intent); 

此意圖將任何形式的它認識到,如果沒有特殊Uri形式亞馬遜市場Uri的工作,只是將用戶重定向到市場的網頁。希望這可以幫助。

+0

但我沒有「鏈接到的 - 亞馬遜市場」我它將上傳所以我用getPackgeName的後可用機器人。但我對亞馬遜的初始鏈接感到困惑。誰能幫我 ? – Mahek

相關問題