如何将 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
How do I add ITelephony.aidl to eclipse?
提问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并在您的项目 src 中创建 com/android/internal/telephony 包,并将下载的 ITelephony.AIDL 复制到您的包中的 com/android/internal/telephony 作为
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
- Download the ITelephony.java file from here
- Create the folder structure src/com/android/internal/telephony and copy the above ITelephony.java file into this folder.
- Now import the com.android.internal.telephony.ITelephony class into your project.
- 从这里下载 ITelephony.java 文件
- 创建文件夹结构 src/com/android/internal/telephony 并将上面的 ITelephony.java 文件复制到此文件夹中。
- 现在将 com.android.internal.telephony.ITelephony 类导入到您的项目中。
Cheers!!! Chanaka
干杯!!!茶中