private BroadcastReceiver homePressReceiver =new BroadcastReceiver(){
String SYSTEM_REASON ="reason";
String SYSTEM_HOME_KEY ="homekey";
String SYSTEM_HOME_KEY_LONG ="recentapps";
@Override
public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub
String action = intent.getAction();
if (action.equals(Intent.ACTION_CLOSE_SYSTEM_DIALOGS)) {
String reason = intent.getStringExtra(SYSTEM_REASON);
if (TextUtils.equals(reason, SYSTEM_HOME_KEY)) {
ProApplication.getInstance().finishAllActivity();
System.exit(0);
}else if(TextUtils.equals(reason, SYSTEM_HOME_KEY_LONG)){
ProApplication.getInstance().finishAllActivity();
System.exit(0);
}}}};