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.
我正在为出租车开发一个应用程序,并且必须实现呼叫功能。我已经完成了这个呼叫功能,但它在拨号器中显示了拨打的号码,但我需要从拨号器中隐藏拨号号码。我们正在做这只是为了让女性乘客在乘车时和乘车后安全舒适。
调用 Intent 时,使用 Intent.ACTION_CALL。它将直接拨打特定号码而不向用户显示拨号器。
使用 Intent.ACTION_CALL 它会直接调用
Intent intent = new Intent(Intent.ACTION_CALL); intent.setData(Uri.parse("tel:100")); startActivity(intent);