Question

Every time I try to import it, it gives me this error:

The import com.android.internal.telephony.ITelephony cannot be reselved.

It may seem like a novice question but I am really stumped and I cannot find any other answers.

Was it helpful?

Solution

That's not a public class which is exposed as part of the SDK. Only internal platform apps/services/framework can include or use that class.

OTHER TIPS

Android has two types of APIs that are not accessible via SDK.

The first one is located in package com.android.internal. I will refer to this API as to internal API. The second API type is collection of classes and functions that are marked with @hide javadoc attribute. Even though this strictly is not a single API but a collection of small hidden APIs, I still going to assume this is one API and will refer to it as to hidden API.

You can use internal API using following article

https://devmaze.wordpress.com/2011/01/18/using-com-android-internal-part-1-introduction/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top