예제 #1
0
  @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);
    }
  }
예제 #2
0
 @Override
 public void onFailUpdateMoney() {
   CONF.setUserMoney(CONF.getUserMoney());
 }
예제 #3
0
        @Override
        public void onSuccessUpdateMoney() {

          CONF.setUserMoney(mucn.devolverDatos());
        }