Hi Karteek, As Mr. Mark Murphy has suggested create a new project for your reusable set of code.
Export the same as Jar and include where ever you need them. Regards, Vinay On May 11, 10:53 am, Dianne Hackborn <hack...@android.com> wrote: > On Mon, May 10, 2010 at 10:29 PM, karteek <kartee...@gmail.com> wrote: > > Sorry I said Java files means it is also using android packages. > > As you said uses-library is for only sdk add-ons. > > Can't we generate add ons to include in my applications > > No, this is only for things built in to the system image. Third party > shared libraries are not supported. > > > My overall idea is to make use some repeated functionality as an > > library. > > If i want to generate jar file i need to write it as pure Java > > application but here it is also using some android api's. > > what is the way to achieve this. > > You don't need to write it as pure Java. You can have whatever Java code > you want in a .jar and include it as a static library. > > -- > 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 Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en