Vorlesungen
  Download     DBS     Sprachen     Oberflächen     File Formats     Impressum     Datenschutz  
1. Sem
2. Sem
3. Sem
4. Sem
Android
Mobile Applikationen und Infrastrukturen
5. Sem
Wahlpflicht-SoSe
Wahlpflicht-WiSe
Projektwochen
Allgemein:
Startseite
Vorlesungen
Labore
Sinnvolle Programme
Lineare Regression
GUI-Entwurfsarbeit
Single-Format
Design Pattern-Termine
Observer1
Bsp2
Json-Array
Json-Dialogelemente
Webtechnologien

enum

enum

Defintion:
public class AppBasis {

    public static enum ACTIONTYPS implements Serializable {
        ADD,
        SUB,
        MULT;
    }

}
Anwendung:
Beispiel 11
AppBasis.ACTIONTYPS operation = AppBasis.ACTIONTYPS.ADD;
Bundle args = new Bundle();
args.putSerializable(ARG_OPERATION,operation);
operation = (AppBasis.ACTIONTYPS) getArguments().getSerializable(ARG_OPERATION);


Beispiel Studneten-ListView 
AppBasis.ACTIONTYPS action = AppBasis.ACTIONTYPS.NEW
intent.putSerializableExtra("ACTION", action);


Holen aus dem Intent
AppBasis.ACTIONTYPS action = intent.getSerializableExtra(EditDeleteNewActivity.ACTION);


EditText readonly
Fragmente