January 2014
Intermediate to advanced
736 pages
70h 43m
English
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
Fig. 8.35 | AddEditFragmentListener interface.
Read now
Unlock full access