Ali Adnan wrote:
> How i can create android project's library that can be used in any
> different project.
> 
> Problem:
> I create a jar file that contains all activities and add this jar file
> into my eclipse project build path. But if i need to use any activity
> then i must need to register this jar activity into my project
> AndroidManifest.xml. This looks very odd. I need a solution in which i
> have a jar or any other deployable file that contains multiple
> activities and any user can use them in his project without
> registering these jar activities into NEW android application
> AndroidManifest.xml file.

That is not possible.

As I wrote 5 hours ago:

Bear in mind also that your library cannot package any resources, making
activities that much more difficult to package in a library.

You can see a library that I package with an activity here:

https://github.com/commonsguy/cwac-custmenu/tree

Anyone using this library will need to both list my MenuCustomizer
activity in their manifest, but also pass in a couple of resource IDs by
integer extras on the launching Intent, to get around the fact that
MenuCustomizer cannot have its own resources.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to