android - 如何在没有 Intent 的情况下以编程方式调用电话

标签 android android-intent

我是 Android 新手,我想在不使用 intent 的情况下调用电话。

我知道这段代码:

Intent intent = new Intent(Intent.ACTION_CALL);

intent.setData(Uri.parse("tel:" + bundle.getString("mobilePhone")));
context.startActivity(intent);

我可以在不使用“Intent”的情况下以编程方式在 android 中进行调用吗?

你有什么答案吗?

谢谢

最佳答案

Can i make call in android programmatically without use "Intent"?

不是来自普通的 Android SDK 应用。自定义 ROM mod 当然可以。

关于android - 如何在没有 Intent 的情况下以编程方式调用电话,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25242909/

相关文章:

android - 在 Android 中使用多个 SpanObjects 还是多个 TextViews 更好?

android - Activity 无法转换为 LifecycleOwner

android - 如何使用 Android Studio 在 Android 手机上安装应用程序?

Android 多次通知

android - 如何将android数据库中的照片保存为blob

android - 如何在 Android 的共享首选项中保存图像 | Android 中带有图像的共享偏好问题

java - 不幸的是停止了谷歌地图布局

kotlin - 如何将 registerForActivityResult 与 StartIntentSenderForResult 契约(Contract)一起使用?

java - android中将数据从一个页面移动到另一页面的问题

Android - "Share via"对话框有不同的布局?