diff --git a/app/src/main/java/top/itning/getupearly/MainActivity.java b/app/src/main/java/top/itning/getupearly/MainActivity.java index dd68703..e77fa44 100644 --- a/app/src/main/java/top/itning/getupearly/MainActivity.java +++ b/app/src/main/java/top/itning/getupearly/MainActivity.java @@ -48,6 +48,10 @@ public class MainActivity extends AppCompatActivity { * 微博早起奖金 */ private static final String WEIBO_GET_UP_EARLY_URL = "https://getup.sc.weibo.com/home"; + /** + * 支付宝早起打卡挑战赛 + */ + private static final String ALI_SPORTS_SERVER_URL_SCHEME = "alipays://platformapi/startapp?appId=20000067&url=https%3a%2f%2factivity-alisports.taobao.com%2fgetup"; @Override protected void onCreate(Bundle savedInstanceState) { @@ -87,6 +91,10 @@ public void onBtnClick(View view) { startUrlScheme(ALI_SPORT_URL_SCHEME); break; } + case R.id.ali_sport_server: { + startUrlScheme(ALI_SPORTS_SERVER_URL_SCHEME); + break; + } default: Toast.makeText(this, "未知选项", Toast.LENGTH_LONG).show(); } diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index fe35832..cbaed38 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -42,6 +42,18 @@ android:text="@string/weibo_get_up_early_str" android:textColor="#fff" /> + + 蚂蚁森林 支付宝运动 蚂蚁庄园 + 支付宝早起打卡挑战赛