Go Back   Android Forums > Android Development > Application Development

Application Development Dev Lounge for the Coder Folks



Reply
 
LinkBack Thread Tools
Old July 9th, 2009, 01:32 AM   #1 (permalink)
Junior Member
 
Join Date: Jul 2009
Posts: 20
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Red face Include 3rd party code to APK

Is anyone here familiar with Android make system? I have a Java application
which uses the 3rd party library jar. It can be built to an APK file by
either Eclipse or Linux system. The difference is the one built by Eclipse has the 3rd
party code in the APK package but the one built by Linux does not.

How can I add the 3rd party code to the build in Linux by modifing makefile?

isup is offline  
Last edited by isup; July 9th, 2009 at 01:41 AM.
Reply With Quote
Sponsors
Old July 10th, 2009, 04:00 AM   #2 (permalink)
Junior Member
 
Join Date: Jul 2009
Posts: 20
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Red face

Below is my makefile. The generated APK file does not include the classes from Third_party_2.5.jar, even though the build succeeds. The application does not work after the APK is loaded. Any suggestion?

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_STATIC_JAVA_LIBRARIES := libabc
LOCAL_MODULE_TAGS := eng development
LOCAL_SRC_FILES := $(call all-subdir-java-files)
LOCAL_PACKAGE_NAME := ABC_app
include $(BUILD_PACKAGE)
###############################
include $(CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := libabc:lib/Third_party_2.5.jar
include $(BUILD_MULTI_PREBUILT)
# Use the folloing include to make our test apk.
include $(call all-makefiles-under,$(LOCAL_PATH))
isup is offline  
Reply With Quote
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
In Need of a translator CMD code to Terminal code for board sticky of Side loading apps. vapor311 Samsung Captivate 1 September 1st, 2010 11:57 PM
what does htc sense ui include ItsMyDesire HTC Desire 4 June 25th, 2010 03:15 PM
Trade My demonoid invitation code for your Google voice code igot5onitt Non-Android Listings 6 June 13th, 2010 04:58 PM
2.1 Hero upgrades ... what does it include? TeamPEZ HTC Hero 38 March 30th, 2010 06:06 PM
Include 3rd party code to APK isup Android Lounge 4 July 14th, 2009 04:08 AM



All times are GMT -5. The time now is 07:35 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo


SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.