我有一个代码可以通过Skype给某人发消息,问题是,我不知道如何将其设置为转到应用程序,它直接转到https://play.google.com/store/apps/details?id=com.skype.raider ..任何人都可以帮忙吗?< / p>
skypeuser.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
if (uri.contains("https://www.skype.com/" )) {
String username = "username";
String uri1 = "skype://Page/" + username;
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri1));
startActivity(intent);
} else {
String uri1 = "https://play.google.com/store/apps/details?id=com.skype.raider";
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(uri1));
startActivity(i);
}
}
});