如何将 ITelephony.aidl 添加到 Eclipse?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10662451/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 18:11:51  来源:igfitidea点击:

How do I add ITelephony.aidl to eclipse?

androideclipse

提问by Parksie

This is no doubt a very simple question, but unfortunately I have looked around and haven't found a solution.

这无疑是一个非常简单的问题,但不幸的是我环顾四周并没有找到解决方案。

I would like to import ITelephony.aidl so that I can use

我想导入 ITelephony.aidl 以便我可以使用

import com.android.internal.telephony.ITelephony;

导入 com.android.internal.telephony.ITelephony;

Could someone please give me directions or point me to a tutorial?

有人可以给我指示或指向我的教程吗?

Thanks in advance

提前致谢

回答by ρяσ?ρ?я K

You can download ITelephony.aidl from hereand Create com/android/internal/telephony package in your project src and copy past downloaded ITelephony.AIDL with in com/android/internal/telephony in your package as
ITelephony.AIDL

您可以从这里下载 ITelephony.aidl并在您的项目 src 中创建 com/android/internal/telephony 包,并将下载的 ITelephony.AIDL 复制到您的包中的 com/android/internal/telephony 作为
IT电话.AIDL

for more information Blocking Incoming call

了解更多信息阻止来电

回答by Lalit Poptani

It is not a public API you have to include it yourself from here.For further reference check this answer.

它不是您必须包含的公共 API yourself from here供进一步参考check this answer

回答by Chanaka udaya

  1. Download the ITelephony.java file from here
  2. Create the folder structure src/com/android/internal/telephony and copy the above ITelephony.java file into this folder.
  3. Now import the com.android.internal.telephony.ITelephony class into your project.
  1. 这里下载 ITelephony.java 文件
  2. 创建文件夹结构 src/com/android/internal/telephony 并将上面的 ITelephony.java 文件复制到此文件夹中。
  3. 现在将 com.android.internal.telephony.ITelephony 类导入到您的项目中。

Cheers!!! Chanaka

干杯!!!茶中