final long[] mHits = new long[3];
//主页面连击两次进入设置页面
view .setOnClickListener(new OnClickListener()
{
@Override public void onClick (View v)
{
System.arraycopy(mHits, 1, mHits, 0, mHits.length - 1);
mHits[mHits.length - 1] = SystemClock.uptimeMillis();
if (mHits[0] >= (SystemClock.uptimeMillis() - 500))
{
//TODO
}
}
});