@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.mainscreen_layout); getWindow() .setFlags( WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); mSelected = new HashMap<Integer, Boolean>(); CONF = new Configuration(this); SESSION = new SessionManager(getApplicationContext()); ficheros = leeFicheros(); ctx = this; SESSION.checkLogin(); this.ERRORS = new MainScreen_Errors(ctx); this.MSUTILS = new MainScreen_Utils(); this.CREATE = new CreateFolders(ctx); this.PDF = new PDF_Methods(ctx, null); CREATE.createScoreFolder(); CREATE.createImageFolder(); UpdateMoney(CONF.getUserEmail()); ActionBar action = getActionBar(); action.setTitle(R.string.titulo_coleccion); action.setIcon(R.drawable.ic_menu); // Si no hay partituras, mostramos un mensaje al usuario. Si hay partituras cargamos la galería // de partituras if (ficherosLength() == 0) { new InterfazNoPartituras(ctx, scores_gallery); } else { interfazCuandoHayPartituras(ficheros); } }
@Override public void onFailUpdateMoney() { CONF.setUserMoney(CONF.getUserMoney()); }
@Override public void onSuccessUpdateMoney() { CONF.setUserMoney(mucn.devolverDatos()); }