2

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

import com.android.internal.telephony.ITelephony;

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

Thanks in advance

Parksie
  • 65
  • 1
  • 3
  • 10

3 Answers3

13

You can download ITelephony.aidl from here and 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

for more information Blocking Incoming call

ρяσѕρєя K
  • 132,198
  • 53
  • 198
  • 213
  • Is it free to use? ITelephony.java? If I have a paid app, can I use this? – Shishir Gupta Aug 03 '13 at 12:49
  • 2
    Where do I add aidl files when using gradle / Android Studio? The file structure is a but different than from eclipse: src -> main -> java. I have tried to add the package at all three levels, but it will not compile. – Roar Skullestad Sep 10 '13 at 10:32
0

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

Community
  • 1
  • 1
Lalit Poptani
  • 67,150
  • 23
  • 161
  • 242
  • Thanks, I have the file, However I'm new to eclipse and now sure how to import file and where it should go. Can you advise? – Parksie May 19 '12 at 05:11
  • just create the package for the file and copy the file into it. – Lalit Poptani May 19 '12 at 05:13
  • I have created the directory structure and dropped in the file, However I still get a red x next to .adil file and new to import in my mail class. – Parksie May 19 '12 at 05:33
0
  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.

Cheers!!! Chanaka

Chanaka udaya
  • 5,134
  • 4
  • 27
  • 34