package com.li;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
public class BlowActivity extends Activity {
	static TextView text;
	Button btn;
	Button btn1;
	static int i=0;
	RecordThread tt=null;
	
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        text=(TextView)findViewById(R.id.text);
        btn=(Button)findViewById(R.id.btn);
		btn.setOnClickListener(listener);
    }
    
    class MyHandler extends Handler{
    	
    }
    
    OnClickListener listener=new OnClickListener(){
		@Override
		public void onClick(View v) {
			// TODO Auto-generated method stub
				tt=new RecordThread(r);           //点击按钮,启动线程
				tt.start();
			  
		}
    	
    };
    
    MyHandler r=new MyHandler(){
		@Override
		public void handleMessage(Message msg) {
			// TODO Auto-generated method stub
			super.handleMessage(msg);          //接收到message后更新UI,并通过isblow停止线程
			text.setText("你吹了一下屏幕"+i);
			Parameter.isblow=false;
	
		}
    };
}
 最近下载更多
最近下载更多
                
                lmyu123     LV1
                2022年4月11日
            
            
        
                dzl2005328     LV3
                2022年1月4日
            
            
        
                solin0304     LV1
                2021年2月24日
            
            
        
                seven快快110     LV1
                2020年12月29日
            
            
        
                一个大橘子     LV1
                2020年12月28日
            
            
        
                sianhxyeiangu     LV14
                2020年6月15日
            
            
        
                KNGsgf     LV1
                2019年12月28日
            
            
        
                wangshihua     LV19
                2019年5月10日
            
            
        
                ychuii     LV1
                2019年3月14日
            
            
        
                as檞寄生     LV2
                2019年1月2日
            
            
         最近浏览更多
最近浏览更多
                
                2636804923     LV6
                2024年6月19日
            
            
        
                yzhszz     LV3
                2022年12月27日
            
            
        
                jimshao289015254     LV9
                2022年6月20日
            
            
        
                361424231     LV4
                2022年6月16日
            
            
        
                xushanze     LV1
                2022年6月6日
            
            
        
                lmyu123     LV1
                2022年4月11日
            
            
        
                Kkkkyy     LV2
                2022年1月10日
            
            
        
                2424860647    
                2022年1月8日
            
            
                    暂无贡献等级
            
        
                dzl2005328     LV3
                2022年1月4日
            
            
        
                ㅤㅤㅤ    
                2021年6月20日
            
            
                    暂无贡献等级
            
        
 
     
                 
                