Android: How to create reusable components?

I spent some time cleaning the network for some information about this, but to no avail.

I am working on an application for which I needed to create some components, some of which are likely to have other applications, so I would like to put them in my own package or project, but I'm not sure if the right way to do this is.

So, my main project is called something like ...

<CompanyName>. & L; PRODUCTNAME>

And I named the package for my widgets ...

<CompanyName> .widget

I created a separate project for widgets and moved the corresponding code, layout, resources, etc. This project seems to be compiling correctly, but the main project no longer recognizes widget links.

I added a new widget project to the main Project References project, but that didn't make any difference.

Any ideas or links to a tutorial on how to do this correctly would be greatly appreciated.

+3
android package widget
source share
1 answer
+3
source share

All Articles