Android 在我多次单击按钮时强制关闭消息

Android 在我多次单击按钮时强制关闭消息,android,Android,我的选项卡是最近的选项卡“Galaxy tab 10.1” 当我反复单击应用程序中的多次单击(4到5次单击)时,会出现此强制关闭消息 我能做些什么来修复它 这是我的代码: search.setOnClickListener(new View.OnClickListener() { public void onClick(View arg0) { Intent nextScreen = new Intent(getApplicationContext(), Secon

我的选项卡是最近的选项卡“Galaxy tab 10.1” 当我反复单击应用程序中的多次单击(4到5次单击)时,会出现此强制关闭消息

我能做些什么来修复它

这是我的代码:

search.setOnClickListener(new View.OnClickListener() {

    public void onClick(View arg0) {  
        Intent nextScreen = new Intent(getApplicationContext(), SecondScreenActivity.class);   
        nextScreen.putExtra("manufacturer",getm());  
        nextScreen.putExtra("model",getmo());  
        nextScreen.putExtra("year",gety());  
        startActivity(nextScreen);  
}

单击按钮时禁用该按钮,以便不会多次单击。
按钮。设置启用(false)


然后在下一个屏幕中启用它。

当您抛出
异常时,添加日志。