Tutorial by Examples

Define interface //In this interface, you can define messages, which will be send to owner. public interface MyCustomListener { //In this case we have two messages, //the first that is sent when the process is successful. void onSuccess(List<Bitmap> bitmapList); //And Th...
The "listener" or "observer" pattern is the most common strategy for creating asynchronous callbacks in Android development. public class MyCustomObject { //1 - Define the interface public interface MyCustomObjectListener { public void onAction(String ac...

Page 1 of 1