• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Quick methods help

Okay, so I've been working onto an application and I am trying to split the one java file into multiple, so, the problem I'm getting is that in the main, I typed
Listener listener = new Listener();
After making a class called Listener, then putting an OnClick listener in the class, and in the spot wyere ot asks for what the listener is called I put in
listener.listenername();
Whenever I click the button it forcecloses, any suggestions? If you need anymore info just let me know and ill get it, thanks
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones