is now LinkedIn Learning!

To access courses again, please join LinkedIn Learning

All the same content you know and love

Plus, personalized course recommendations tailored just for you

All the same access to your Lynda learning history and certifications

Try LinkedIn Learning for free
Questions? Visit our help center.

How does my subscription work?

Can I use a different payment method?

Yes, after you upgrade to LinkedIn Learning you can change your payment method on

Upgrade Now

By upgrading, your account will only be accessible on Linkedin Learning.

Skip navigation

Define custom callback methods

Define custom callback methods: Java Design Patterns and APIs for Android
Define custom callback methods: Java Design Patterns and APIs for Android

Java callback methods are used to implement event handlers and other common Android programming elements. These sorts of callbacks can be used in Android apps whenever you want Java objects to communicate with each other. For example, you might have an activity whose layout contains a fragment. When something happens within the fragment, you might need to communicate that to the containing activity. In some programming environments this might be done with an event dispatching system. The fragment might dispatch an event, and the container would listen for and respond to the event. In Android though, you typically implement this with a code in the fragment class calls a method in the containing object - a callback.

Resume Transcript Auto-Scroll
Skill Level Beginner
3h 12m
Show More Show Less
Skills covered in this course
Developer Mobile Apps Programming Languages Java

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start My Free Month

Start your free month on LinkedIn Learning, which now features 100% of courses. Develop in-demand skills with access to thousands of expert-led courses on business, tech and creative topics.

Start My Free Month

You are now leaving and will be automatically redirected to LinkedIn Learning to access your learning content.