aidl link error, couldn't find import for class com.android.internal.telephony.gsm.NetworkInfo

by maliha » Thu, 19 May 2011 19:49:34 GMT


Sponsored Links
 Hi,

I am trying to re-use PhoneUtils.java (~/android_src/packages/apps/
Phone/src/com/android/phone/) within my app with some customizations.

I have added INetworkQueryServiceCallback.aidl and
INetworkQueryService.aidl into my app folder (~/android_src/packages/
apps/USSDActivity/src/com/myapp/ussdactivitytest) however when i am
building alongside android source I am getting the following error:

Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Aidl: com.myapp.ussdactivity <= packages/apps/USSDActivity/src/com/
myapp/ussdactivitytest/INetworkQueryService.aidl
Aidl: com.myapp.ussdactivity <= packages/apps/USSDActivity/src/com/
myapp/ussdactivitytest/INetworkQueryServiceCallback.aidl
packages/apps/USSDActivity/src/com/myapp/ussdactivitytest/
INetworkQueryServiceCallback.aidl:19: couldn't find import for class
com.android.internal.telephony.gsm.NetworkInfo
make: *** [out/target/common/obj/JAVA_LIBRARIES/
com.myapp.ussdactivity_intermediates/src/src/com/myapp/
ussdactivitytest/INetworkQueryServiceCallback.java] Error 1

Android.mk:
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_SRC_FILES += \
        src/com/myapp/ussdactivitytest/EventLogTags.logtags \
        src/com/myapp/ussdactivitytest/INetworkQueryService.aidl \
        src/com/myapp/ussdactivitytest/
INetworkQueryServiceCallback.aidl

#maliha before any including any $(BUILD_XXXX) script.
LOCAL_MODULE := com.myapp.ussdactivity
include $(BUILD_STATIC_JAVA_LIBRARY)
include $(CLEAR_VARS)
LOCAL_STATIC_JAVA_LIBRARIES := com.android.phone.common
LOCAL_JAVA_LIBRARIES := core framework
#maliha fix FRAMEWORKS_BASE_JAVA_SRC_DIRS comes from build/core/
pathmap.mk
LOCAL_AIDL_INCLUDES += $(FRAMEWORKS_BASE_JAVA_SRC_DIRS)

LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_SRC_FILES += \
        src/com/myapp/ussdactivitytest/EventLogTags.logtags \
        src/com/myapp/ussdactivitytest/INetworkQueryService.aidl \
        src/com/myapp/ussdactivitytest/
INetworkQueryServiceCallback.aidl

LOCAL_PACKAGE_NAME := USSDActivity
LOCAL_CERTIFICATE := platform
include $(BUILD_PACKAGE)
# Build the test package
include $(call all-makefiles-under,$(LOCAL_PATH))

Cheerio!
- Maliha

-- 



aidl link error, couldn't find import for class com.android.internal.telephony.gsm.NetworkInfo

by maliha » Thu, 19 May 2011 22:35:34 GMT


 Hi,

I am trying to re-use PhoneUtils.java (~/android_src/packages/apps/
Phone/src/com/android/phone/) within my app with some customizations.

I have added INetworkQueryServiceCallback.aidl and
INetworkQueryService.aidl into my app folder (~/android_src/packages/
apps/USSDActivity/src/com/myapp/ussdactivitytest) however when i am
building alongside android source I am getting the following error:

Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Aidl: com.myapp.ussdactivity <= packages/apps/USSDActivity/src/com/
myapp/ussdactivitytest/INetworkQueryService.aidl
Aidl: com.myapp.ussdactivity <= packages/apps/USSDActivity/src/com/
myapp/ussdactivitytest/INetworkQueryServiceCallback.aidl
packages/apps/USSDActivity/src/com/myapp/ussdactivitytest/
INetworkQueryServiceCallback.aidl:19: couldn't find import for class
com.android.internal.telephony.gsm.NetworkInfo
make: *** [out/target/common/obj/JAVA_LIBRARIES/
com.myapp.ussdactivity_intermediates/src/src/com/myapp/
ussdactivitytest/INetworkQueryServiceCallback.java] Error 1

Android.mk:
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_SRC_FILES += \
        src/com/myapp/ussdactivitytest/EventLogTags.logtags \
        src/com/myapp/ussdactivitytest/INetworkQueryService.aidl \
        src/com/myapp/ussdactivitytest/
INetworkQueryServiceCallback.aidl

#maliha before any including any $(BUILD_XXXX) script.
LOCAL_MODULE := com.myapp.ussdactivity
include $(BUILD_STATIC_JAVA_LIBRARY)
include $(CLEAR_VARS)
LOCAL_STATIC_JAVA_LIBRARIES := com.android.phone.common
LOCAL_JAVA_LIBRARIES := core framework
#maliha fix FRAMEWORKS_BASE_JAVA_SRC_DIRS comes from build/core/
pathmap.mk
LOCAL_AIDL_INCLUDES += $(FRAMEWORKS_BASE_JAVA_SRC_DIRS)

LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_SRC_FILES += \
        src/com/myapp/ussdactivitytest/EventLogTags.logtags \
        src/com/myapp/ussdactivitytest/INetworkQueryService.aidl \
        src/com/myapp/ussdactivitytest/
INetworkQueryServiceCallback.aidl

LOCAL_PACKAGE_NAME := USSDActivity
LOCAL_CERTIFICATE := platform
include $(BUILD_PACKAGE)
# Build the test package
include $(call all-makefiles-under,$(LOCAL_PATH))

Cheerio!
- Maliha

-- 


Sponsored Links


Other Threads

1. Abrir un fichero html desde aplicacič´¸n android

Hola, estoy programando un aplicacin en Android y tengo el siguiente
problema:

La idea es generar una pgina html de inicio y a partir de ella
navegar por pgina de internet. La pgina html de inicio la creo yo y
la guardo en un fichero de texto. La pgina est bien creada ya que si
la abro con mozilla, chrome o explorer funciona perfectamente.

Bien, mi problema es el siguiente, al lanzar el navegador desde mi
aplicacin me da error ya que no le estoy pasando una URI si no
localizacin de donde esta el fichero, de la siguiente manera:

startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("/data/data/
HelloAndroid/files/pagina.html")));

Es posible hacer lo que quiero o desde una aplicacin slo puedo abrir
el navegador de Android pasndole una pgina de internet?

Muchas gracias de antemano.

-- 

2. Optimus 2X

Antri apa ga?



-- 
"

3. rooting optimus one dengan gingerbreak

4. Mod: Close Thread MOHON BANTUAN UNTUK JADI PENENGAH ANTARA SAYA DANBRODIMAS.Fwd: ASK : signal motorola xt720 sering hilang

5. MOHON BANTUAN UNTUK JADI PENENGAH ANTARA SAYA DANBRODIMAS.Fwd: ASK : signal motorola xt720 sering hilang

6. Is it possible to disable USB storage with changes to the system and/or boot partitions?

7. Lag problem