號碼是232323
,但是我想給用戶添加一個選項,通過添加#31#
如果我用
Intent sendIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("tel:" + "232323"));
startActivity(sendIntent);
就運行正常,但是如果用:
Intent sendIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("tel:" + "#31#232323"));
startActivity(sendIntent);
就不運行,怎麼辦?多謝
Intent sendIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("tel:" + Uri.encode("#31#232323")));