@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
/**
* 友盟统计分析SDK
*/
setContentView(R.layout.welcome);
initView();
new Thread() {
public void run() {
while (!Thread.currentThread().isInterrupted()) {
try {
Thread.sleep(500);
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
}
Message message = new Message();
message.what = Welcome.GUIUPDATEIDENTIFIER;
Welcome.this.myHandler.sendMessage(message);
}
}
}.start();
}
Handler myHandler = new Handler() {
public void handleMessage(Message msg) {
switch (msg.what) {
case 1:
Welcome.this.invalidate();
break;
}
super.handleMessage(msg);
}
};
protected void invalidate() {
// TODO Auto-generated method stub
if(quanImage.getVisibility()==View.VISIBLE)
{
quanImage.setVisibility(View.GONE);
}else{
quanImage.setVisibility(View.VISIBLE);
}
}