System.arraycopy 实现多次点击

来源:互联网 发布:反相比例运算电路数据 编辑:程序博客网 时间:2024/04/30 07:31
long[] mHits = new long[3];System.arraycopy(mHits, 1, mHits, 0, mHits.length-1);mHits[mHits.length-1] = SystemClock.uptimeMillis();if (mHits[0] >= (SystemClock.uptimeMillis()-500)) {Intent intent = new Intent(Intent.ACTION_MAIN);intent.setClassName("android",com.android.internal.app.PlatLogoActivity.class.getName());try {startActivity(intent);} catch (Exception e) {}}

0 0