I'm coming with an unusual question, I think. I made a program which calculate the difference between two dates in java, and I want to make an android application with this program.
I'm begginer in Android development and my question is how I can do the connection between the algorithm and the application. I know that when the user will push the button "calculate" an event is triggered and the result should be displayed on the screen. I don't know how to make the connection between algorithm and the design part of the application.

