8. §¡§â§ç§Ú§ä§Ö§Ü§ä§å§â§Ñ
? §£§ã§ñ §ß§Ñ§ã§ä§â§à§Û§Ü§Ñ §ã §á§à§Þ§à§ë§î§ð §Ô§Ý§Ñ§Ó§ß§à§Û
§æ§Ñ§Ò§â§Ú§Ü§Ú
public class KassaApp extends Application {
public void onCreate() {
¡
}
protected MainFactory createMainFactory() {
return new MainFactory();
}
}
9. §¡§â§ç§Ú§ä§Ö§Ü§ä§å§â§Ñ
public class MainFactory {
public FragmentManager createFragmentManager() {
return new FragmentManager();
}
public UIManager createUIManager() {
return new UIManager();
}
public String getLatLng() {
return LocationManager.getInstance().getLatLngParams();
}
public String getCustomUrl() {
return getContext.getString(R.string.custom_url);
}
}
10. §¡§â§ç§Ú§ä§Ö§Ü§ä§å§â§Ñ
public class BolshoyFactory extends MainFactory {
public FragmentManager createFragmentManager() {
return new BolshoyFragmentManager();
}
@Override
public String getLatLng() {
return getString(R.string.lat_lng);
}
@Override
public UIManager createUIManager() {
return new CustomUIManager();
}
}