谁能给我约ITelephony.aidl一个明确的想法? [英] Can anyone give me a clear idea about ITelephony.aidl?

查看:125
本文介绍了谁能给我约ITelephony.aidl一个明确的想法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在android.Can任何一个初学者给我关于 ITelephony.aidl ,以及它如何被用于阻断的Andr​​oid通话清晰的概念?

I'm a beginner in android.Can anyone give me a clear idea about ITelephony.aidl and how it can be used for blocking a call in Android?

推荐答案

在您的src文件夹中创建新的软件包com.android.internal.telephony
然后在其中创建一个新文件(而非类)与名ITelephony.aidl
粘贴此身在文件

Create a new package com.android.internal.telephony in your src folder then create a new file (not class) in it with name ITelephony.aidl paste this body in your file

package com.android.internal.telephony;

import android.os.Bundle;
    interface ITelephony {
        boolean endCall();
     void dial(String number);
    void answerRingingCall();
    }

,那么你会在你的根看到创建一个Itelephony.java名文件夹的新包装
现在你的所有问题得到解决。

then you will see in your gen folder a new package with an Itelephony.java name is created and now your all problems get resolved

这篇关于谁能给我约ITelephony.aidl一个明确的想法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆