39 private static Handler mHandler = new Handler() {
40 @Override
41 public void handleMessage(Message msg) {
42 switch (msg.what) {
43 case MSG_LONGPRESS_TIMEOUT:
44 if (!mLaunched) {
45 Context context = (Context)msg.obj;
46 Intent i = new Intent();
47 i.putExtra("autoshuffle", "true");
48 i.setClass(context, MusicBrowserActivity.class);
49 i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
50 context.startActivity(i);
51 mLaunched = true;
52 }
53 break;
54 }
55 }
56 };