android – How to make a reusable library from aplication?


Actually, I created an application that flips through the cards. A bunch of methods, works great and half of the logic is tied to MainActivity. But here they ask me to make a library out of this miracle. To be used in another application. How can this be organized? I already understood how to convert app to library. But how to use it if I have a lot described in MainActivity? Does it all have to be redone? Redo how?


Move all the methods into classes, make a main class in which you initialize everything you need, etc.

Scroll to Top