AddEditFragmentListener Interface
Figure 8.35 declares the nested interface AddEditFragmentListener
containing the callback method onAddEditCompleted
that MainActivity
implements to be notified when the user saves a new contact or saves changes to an existing one.
23 // callback method implemented by MainActivity24 public interface AddEditFragmentListener25 {26 // called after edit completed so contact can be redisplayed27 public void onAddEditCompleted(long rowID);28 }29
Get Android™ How to Program, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.