Random crazy = new Random();
switch(crazy.nextInt(3)){
case 0:
display.setGravity(Gravity.LEFT);
break;
case 1:
display.setGravity(Gravity.CENTER);
break;
case 2:
display.setGravity(Gravity.RIGHT);
break;
default setting is center
Android -Thread -
do different things at the same time
framework
Thread timer =new Thread(){
public void run(){
try{
} catch (InterruptedException e){
//debug if it is slow
}finally{
}
}
};
timer.start();
Subscribe to:
Posts (Atom)