3

I am using the code of this answer, where as I have to add ITelephony.aidl to my project source, I did that.

But this aidl file not compiling. Is there any other step which are required?

Community
  • 1
  • 1
Pankaj Kumar
  • 81,967
  • 29
  • 167
  • 186
  • What issue are you getting? Can you show some code...... – Vineet Shukla Oct 03 '11 at 07:55
  • When I am using ITelephony its not findable by eclipse. although I imported com.android.internal.telephony.ITelephony or with my package structure. And as aidl rule says that after compilation of .aidl file there must be auto generated .java file with same name of .aidl, but I am not getting in gen file. – Pankaj Kumar Oct 03 '11 at 07:59
  • add aidl file in your project. Copy the aidl file and paste in your package structure...... – Vineet Shukla Oct 03 '11 at 08:02

3 Answers3

3

First create a package in the src folder in your project named com.android.internal.telephony and within that package create a file and copy paste the interface ITelephony and save the file as ITelephony.aidl. When you compile you will get the .java file for the ITelephony in the gen folder.This is what I did and my issue got solved.

Hope this helps

Deepthi
  • 875
  • 1
  • 12
  • 20
1

If your aidl file is showing any error in eclipse then you should consider it and post the error here but if it is not showing any error you must clean your project and build it again. After this process you must go in "gen" folder and check either this file is compiled there and any class is exist with the same name of aidl file. If it is found, its mean aidl file is compiling properly.

Thanks and Regards, Ali

Cool Java guy מוחמד
  • 1,687
  • 4
  • 24
  • 40
0

Certin versions of Eclipse move the reference library folders for prjects.Either update eclipse, reinstall eclipse and the adt plug in or move the library within your eclipse folder.

Kimate Richards
  • 150
  • 1
  • 7