Hello I would like to use some function from com.android.dialer.telecom.TelecomUtil inside some java class from an android I'm building but I don't know what dependency I should add to build.graddle to do so
Anyone familiar with this ?
TIA
Hello I would like to use some function from com.android.dialer.telecom.TelecomUtil inside some java class from an android I'm building but I don't know what dependency I should add to build.graddle to do so
Anyone familiar with this ?
TIA
I don't know what dependency I should add to build.graddle to do so
Assuming that you mean this edition of TelecomUtil
, that is not in a library. It is a Java class in the Dialer app from the AOSP.
If you are writing your own AOSP app, such as a custom dialer as part of custom firmware, you can copy TelecomUtil.java
into your own project, along with other Dialer app classes that TelecomUtil
depends upon (e.g., com.android.dialer.common.LogUtil
). Or, copy just the method(s) from TelecomUtil
that you need.
If you are writing an ordinary Android SDK app, you can try doing the same thing. You may run into places where the copied code depends upon classes or methods are are not part of the Android SDK, though.