Reputation: 2119
I created a widget that is an extension of a View and can be inserted inside a xml. It does not contain any layout or any other kind of external resource.
It automatically loads its data and prepares to be displaied inside the constructor, and then waits for the parent activity to launch the start() method to start working.
How can I export it as a jar, without the source code, so that I could eventually distribute it and let others use it without modifying it? Is it possible?
Thank you.
Upvotes: 0
Views: 76
Reputation: 8939
Right Click on your project>Export>Java>Jar File>
And select only src and not other folde. Give your jar file name like widget.
Then Finish. A jar file will be created with name 'widget.jar'
Hope this help you.
Upvotes: 1