SHOW:
|
|
- or go back to the newest paste.
1 | - | public class activitybla extends Activity{ |
1 | + | public class Activitybla extends Activity{ |
2 | ||
3 | ||
4 | boolean attribut; | |
5 | public void onCreate(Bundle savedInstanceState){ | |
6 | super.onCreate(savedInstanceState); | |
7 | setContentView(R.layout.main) // HIER UNBEDINGT DIE VERWENDETE LAYOUT-Datei ANGEBEN!! (XML) | |
8 | } | |
9 | ||
10 | - | public void Programmname(View v){ |
10 | + | public void programmname(View v){ |
11 | attribut = true; | |
12 | goOn(); | |
13 | } | |
14 | ||
15 | public void goOn(){ | |
16 | if(attribut != null){ | |
17 | if(attribut){ | |
18 | // mach irgendwas | |
19 | } | |
20 | } | |
21 | } | |
22 | ||
23 | } |