where is this documentation ...?
actually i read platform_library readme.txt and follow the steps ..
amd my java api and its native support api build successfully though
jni but when i try to install in emulator it gives me error

i had done -----
1) make native class
2) make java class
3)use jni connect java class with native code
4)make test application to call java class
5)build all java ,native,test successfully
6)when i try to install test apk in my emulator ,it give me
error........  Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]
-----------------------------------------------------------------------------------------------------
                                                           java
(Android.mk)
------------------------------------------------------------------------------------------------------

LOCAL_PATH := $(call my-dir)
#######################################################################################
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := ims
# This is the target being built.
LOCAL_MODULE:= com.lge.ims


# Only compile source java files for the platform library.
LOCAL_SRC_FILES := $(call all-subdir-java-files)

include $(BUILD_JAVA_LIBRARY)



# ============================================================
include $(CLEAR_VARS)

LOCAL_MODULE := com.lge.ims.ims.xml

LOCAL_MODULE_TAGS := ims

LOCAL_MODULE_CLASS := ETC

LOCAL_JNI_SHARED_LIBRARIES := libimsfwk

# This will install the file in /system/etc/permissions
#
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/permissions

LOCAL_SRC_FILES := $(LOCAL_MODULE)

include $(BUILD_PREBUILT)

# ============================================================

# Also build all of the sub-targets under this one: the library's
# associated JNI code, and a sample client of the library.
include $(call all-makefiles-under,$(LOCAL_PATH))

-------------------------------------------------------------------------------------------------------


--------------------------------------------------------------------------------------------------------
                                                               .xml
file
--------------------------------------------------------------------------------------------------------

<permissions>
<library name="com.lge.ims" file="/system/framework/com.lge.ims.jar"/>
</permissions>

---------------------------------------------------------------------------------------------------------
                                                                native
(Adroid.mk)
---------------------------------------------------------------------------------------------------------
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_SRC_FILES :=  \
    imsfwkevtfactory.cpp\
    imsfwkevtmgr.cpp\
    ImsFwkReq1.cpp\
    ImsFwkRsp1.cpp\
    ImsFwkAllCommonEvt.cpp\
    ImsFwkVscInEvt.cpp\
    ImsFwkVtInEvt.cpp\


LOCAL_SHARED_LIBRARIES := \
    libandroid_runtime \
    libnativehelper \
    libdvm \
    libutils \
    libcutils

LOCAL_MODULE_TAGS := ims
LOCAL_MODULE := libimsfwk
LOCAL_STATIC_LIBRARIES := libcutils libc

# Also need the JNI headers.
LOCAL_C_INCLUDES += \
        $(JNI_H_INCLUDE)

# Don't prelink this library.  For more efficient code, you may want
# to add this library to the prelink map and set this to true.
LOCAL_PRELINK_MODULE := false

include $(BUILD_SHARED_LIBRARY)
---------------------------------------------------------------------------------------------------------
                                                        test
(Android.mk)
---------------------------------------------------------------------------------------------------------

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := ims

# This is the target being built.
LOCAL_PACKAGE_NAME :=test

# Only compile source java files in this apk.
LOCAL_SRC_FILES := $(call all-java-files-under, src)

# Link against the current Android SDK.
LOCAL_SDK_VERSION := current

# Also link against our own custom library.
LOCAL_JAVA_LIBRARIES := com.lge.ims


include $(BUILD_PACKAGE)
---------------------------------------------------------------------------------------------------------
-
On May 5, 9:39 pm, Dianne Hackborn <hack...@android.com> wrote:
> Did you read the documentation there about how to register the library with
> the system?  And did you actually build it into the system?
>
>
>
> On Tue, May 5, 2009 at 3:06 AM, sumit <ssssssum...@gmail.com> wrote:
>
> > i want install ----/root/mydroid/MyAndroid/development/samples/
> > PlatformLibrary/client
> > intermediated/pacage.apk  into emulator
>
> > but i got this error ----------------------
> > :~/mydroid/MyAndroid/out/target/product/generic/obj/APPS/
> > PlatformLibraryClient_intermediates# adb install package.apk
> > 41 KB/s (3448 bytes in 0.080s)
> >        pkg: /data/local/tmp/package.apk
> > Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]
>
> > so what i will for that
> > can any body tell me .................
>
> > by using using this i try to add some api in android source code but
> > my first step is not working properly.
>
> > thanks in advance ...............
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to