Advertisement
Guest User

Untitled

a guest
Apr 27th, 2012
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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){
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement