Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在获取字符串并使用Uri.parse()方法解析它时遇到问题。
Uri.parse()
我尝试了以下代码:
EditText edit = (EditText) findViewById(R.id.enter); String telephone = edit.getText().toString(); Uri number = Uri.parse(telephone);
但应用力关闭。
您必须将“ tel:”前缀添加到您的手机号码。
tel: