Android-Rate icon indicating copy to clipboard operation
Android-Rate copied to clipboard

Add the method so that developers can control their own jump market

Open lufuqiang opened this issue 8 years ago • 1 comments

Hi,As you know,China can't access google market,we have many app market,so,can you add a method so that developers can control their own jump market?

lufuqiang avatar Mar 30 '17 10:03 lufuqiang

@lufuqiang In https://github.com/Vorlonsoft/AndroidRate (Release 1.1.6+) you can do it:

Appstores

You can use different app stores.

Chinese app stores

The first Chinese app store found on the user device will be used. The Library doesn't check the availability of your application on the app store.

AppRate.with(this).setStoreType(StoreType.CHINESESTORES); // 19 chinese app stores: 腾讯应用宝, 360手机助手,
// 小米应用商店, 华为应用商店, 百度手机助手, OPPO应用商店, 中兴应用商店, VIVO应用商店, 豌豆荚, PP手机助手, 安智应用商店,
// 91手机助手, 应用汇, QQ手机管家, 机锋应用市场, GO市场, 宇龙Coolpad应用商店, 联想应用商店, cool市场

Other store

AppRate.with(this).setStoreType(String); // Any other store,
                                         // String - an RFC 2396-compliant URI to your app
                                         // e. g. "https://otherstore.com/app?id=com.yourapp"
                                         // or "otherstore://apps/com.yourapp"

Сustom Intents

You can set custom action to the Rate button. For example, you want to open your custom RateActivity when the Rate button clicked.

AppRate.with(this).setStoreType(Intent[]); // Any custom intents, Intent[] - array of intents,
                                           // first will be executed (startActivity(intents[0])),
                                           // if first fails, second will be executed (startActivity(intents[1])), etc.

AlexanderLS avatar Apr 27 '18 18:04 AlexanderLS