我想举杯祝词“你的留言”消息“发送给”联系人“我不知道怎么做,这是我的代码。
if (phoneNo.length()>0 && message.length()>0)
Toast.makeText(getBaseContext(),
"Your message " + """ + message + """ + "is sent to " + phoneNo,
Toast.LENGTH_SHORT).show();
答案 0 :(得分:1)
使用此简单,
Toast.makeText(getBaseContext(),
"Your message " + "\"" + message + "\"" + " is sent to " +"\""+ phoneNo+"\"",
Toast.LENGTH_SHORT).show();
答案 1 :(得分:0)
试试这个:
"Your message \"" + message + " \" is sent to \"" + contact + " \""
答案 2 :(得分:0)
Toast.makeText(this, "Your message " + """ + message + """ + "is sent to " + PhoneNo,
Toast.LENGTH_SHORT).show();
答案 3 :(得分:0)
试试这个:
Toast.makeText(className.this, "Your message " + message + " is sent to " + phoneNo,Toast.LENGTH_SHORT).show();