当我增加了一个按钮,它应该带我到Skype应用程序给用户(name_here)..如果Skype的没有我的手机存在,它进入https://play.google.com/store/apps/details?id=com.skype.raiderSkype应用程序没有运行
的代码是
raskypelink.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
if (uri.contains("https://www.skype.com/")) {
String name_here = "name_here";
String uri1 = "skype://Page/" + name_here;
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri1));
startActivity(intent);
} else {
String skype = "skype";
String uri1 = "https://play.google.com/store/apps/details?id=com.skype.raider" + skype;
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(uri1));
startActivity(i);
}
}
});
请帮忙!
问题是什么? – Palak 2014-10-06 05:25:37