Mark thanks for your reply.
I did create a jar and use it in a different application. i could include
the resources in the jar as well but cant access them .
gives a resource not found exception at run time.


On Tue, Feb 10, 2009 at 4:50 PM, Mark Murphy <[email protected]>wrote:

>
> snehal kedar wrote:
> > I want to package my project into a jar instead of an apk.
> > Is there a way to do that using the aapt tool or any other tool?
>
> The program in Java used to create JAR files is called "jar".
>
> Most of the Android tools (except aidl) will be useless to you, since
> you cannot package resources in a JAR, and you are not building an APK.
> So, creating a JAR with Android is not significantly different than
> creating a JAR for any Java project. You will need to have android.jar
> in your classpath (or possibly bootclasspath...I forget), and if you are
> using AIDL, you will still need it to compile your .aidl files into
> stubs. Otherwise, package things as normal.
>
> The resulting JAR can then be used by some other Android project as part
> of building its APK.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
>
> Android Training on the Ranch! -- Mar 16-20, 2009
> http://www.bignerdranch.com/schedule.shtml
>
> >
>


-- 
Thanx n Regards
Snehal

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to