Integrating eclipse with unity and get user input in eclipse

i have seen tutorials integrating unity with eclipse , but before i go through those steps i was concerned about only one thing.
how do i get certain input i have already programmed in unity like for example a button i have built and pressed in my unity game and get this command inside my eclipse project.

for example if i build a button in unity then i import the unity project to eclipse as a library as done in tutorials , so how can i for example get this input click to make a toast in my android project or do any other operations?

it took a while, but i finally got it working :slight_smile: .

thanks for whom wrote those tutorials:

http://www.rbcafe.com/Softwares/Unity/Documentation/Manual/Android-Integrating%20Unity%20With%20Eclipse.html

http://www.rbcafe.com/Softwares/Unity/Documentation/Manual/Android-Launch%20an%20Android%20Application%20from%20a%20Unity%20Application.html