English 中文(简体)
OEM/Google 使用 com.android. intern.telephony. Android 的电话类
原标题:OEM/Google Implementation of the com.android.internal.telephony.Call class in Android

我一直在研究安卓电话功能的源代码,我迷路了。我基本上收集到,除非你重新谷歌或OEM,否则无法处理CDMA/GSM设备。现在我只是想弄清楚OEM的密码是在哪里处理电话通话,比如他们从/执行中继承的班级/界面。

在通过电话应用程序 s < code> InCallScreen 活动时,我追溯到终端调用按钮的点击处理器 PhoneUtils. hangup (CallManager) 最终呼叫 com.android.inter.telephony.Call. hangup () 。 因为 com.android.interial.telephony.Call.all.angup () 是一个抽象的方法, 我想知道这是否是 OEM 将取代提供电话服务的类别之一。 黑暗中多一点的镜头询问是否有人知道该类的开源执行情况, 这样我就能更深入地了解幕后的情况。

最佳回答

您是正确的。 您确实要执行 OEMs 的 < code> com. android. internal.telephony. Call 接口。 更具体地说, 需要执行的就是 < code> com.android. and. interephony. Phone 接口, 使用 < code> Call 、 < code > 连接 和更多接口。

对于你的第二个问题,Google/ASOP(Android Open Source Project)确实为GSM和CDMA提供了所有这些类别的实施。 因此,在 GSMPhone 接口的代码源代码源代码源代码中存在 CDMAPhone 界面的

如果您不想克隆整个Android源代码, 您可以在 (frameworks/ base)/ base /code > 文件夹中克隆 git https://android.googleglesource.com/platform/platform/ frameworks/ base 。 您可以在 (frameworks/ base)/telephony/java/telephony/ java/ code下查看您询问的 界面中的 (code> GSMCall.java 。 这是执行 com.android.interephon.inter.Call 接口。

和机器人电话堆放 类似的东西是这样的:

+------------------------------------+
| Phone  |  Contacts |  (other apps) |
+------------------------------------+
|android internal telephony framework|
+------------------------------------+
|    Radio Interface Layer (RIL)     |
+------------------------------------+
|        GSM/CDMA modem              |
+------------------------------------+

在通常由某些供应商提供 GSM/CDMA 调制解调器的情况下,需要为所使用的特定 GSM/CDMA 调制解调器定制 RIL 层。 因此,在实践中,供应商不必修改目前对 Call Connction Phone 等界面在 com.and.roid.inter.telephony 软件包中的实施,除非他们想为不同于 GSM/CDMA 电话的东西提供支持。

问题回答

暂无回答




相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...