Vorlesungen
  Download     DBS     Sprachen     Oberflächen     Impressum     Datenschutz  
1. Sem
2. Sem
3. Sem
4. Sem
5. Sem
Android
iOS
Webprogrammierung
Web-Technologien
Wahlpflicht-SoSe
Wahlpflicht-WiSe
IEA-2019
Projektwochen
Allgemein:
Startseite
Vorlesungen
Labore
Sinnvolle Programme
Lineare Regression
GUI-Entwurfsarbeit
Single-Format
Design Pattern-Termine
Observer1
Bsp2
Json-Array
Json-Dialogelemente
Webtechnologien

send or receive params

send:
String str_param1 = "param1";
intent.putExtra("PARAM1",str_param1); // Hash value
int int_param2 = "123";
intent.putExtra("PARAM2", int_param2); // Hash value
double double_param3 = "123.45";
intent.putExtra("PARAM3",double_param3); // Hash value

receive:
String str_param1 = intent.getStringExtra("param1");
edittext_param1.setText(str_param1);
int int_param2 = intent.getIntExtra("param2");
spinner_param2.setSelection(int_param2);
double double_param3 = intent.getIntExtra("param3");
spinner_param2.setSelection(double_param3);

other receive-methods:
intent.getFloatExtra("float_param",1.0f);
intent.getBooleanExtra("bool_param", true);
intent.getLongExtra("long_param",0l);
intent.getShortExtra("short_param",0);
intent.getCharExtra("char_param",'x');

intent.getStringArrayExtra("str_array");
intent.getBooleanArrayExtra("bool_array");
intent.getByteArrayExtra("byte_array");
intent.getDoubleArrayExtra("double_array");
intent.getFloatArrayExtra("float_array");
intent.getIntArrayExtra("int_array");
intent.getLongArrayExtra("long_array");
intent.getShortArrayExtra("short_array");

intent.getStringArrayListExtra("arraylist1");


Row-Layout
Switch