當我增加了一個按鈕,它應該帶我到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