NO1:
4 Types of MediaPlayer Factory produce different MediaPlayer base classes: Stagefrightplayer, Nuplayerdriver, MIDIfile, and Testplayerstub. All four inherit and Mediaplayerbase.
No2:
Abstract Factory mode is rarely used in Android source code. For Android Development, a better app is on topic modification .
No3:
Advantages :
separating the interface and implementation , the client uses the abstract factory to create the desired object, and the client simply does not know who the specific implementation is, the client is just a product-oriented interface to be decoupled from the specific product implementation, colleagues based on the separation of interface and implementation, Make abstract The factory method mode is more flexible and easy to switch between product classes.
Disadvantages :
1) explosive increase in class files
2) It is not easy to extend the new product class, because every time we add a product class we need to modify the abstract factory, then all the specific factory classes will be modified.
"Android Source design mode"--Abstract Factory mode