… | |
… | |
47 | // but some data into the intent
|
47 | // but some data into the intent
|
48 | Bundle sendBundle = new Bundle();
|
48 | Bundle sendBundle = new Bundle();
|
49 | sendBundle.putLong("com.zoffcc.applications.zanavi.ZANAVI_INTENT_type", Navit.NAVIT_START_INTENT_DRIVE_HOME);
|
49 | sendBundle.putLong("com.zoffcc.applications.zanavi.ZANAVI_INTENT_type", Navit.NAVIT_START_INTENT_DRIVE_HOME);
|
50 | intent.putExtras(sendBundle);
|
50 | intent.putExtras(sendBundle);
|
51 | intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
51 | intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
52 | System.out.println("DH:W 001 B=" + sendBundle.describeContents());
|
52 | // System.out.println("DH:W 001 B=" + sendBundle.describeContents());
|
53 | System.out.println("DH:W 001 B=" + sendBundle.toString());
|
53 | // System.out.println("DH:W 001 B=" + sendBundle.toString());
|
54 | System.out.println("DH:W 002 I=" + intent.toString());
|
54 | // System.out.println("DH:W 002 I=" + intent.toString());
|
55 |
|
55 |
|
56 | // if ZANavi main activity already running, then only bring to front, otherwise start it // Intent.FLAG_ACTIVITY_NEW_TASK
|
56 | // if ZANavi main activity already running, then only bring to front, otherwise start it // Intent.FLAG_ACTIVITY_NEW_TASK
|
57 | PendingIntent pendingIntent = PendingIntent.getActivity(context, dummy_number, intent, PendingIntent.FLAG_CANCEL_CURRENT);
|
57 | PendingIntent pendingIntent = PendingIntent.getActivity(context, dummy_number, intent, PendingIntent.FLAG_CANCEL_CURRENT);
|
58 | System.out.println("DH:W 003 I=" + pendingIntent.toString());
|
58 | // System.out.println("DH:W 003 I=" + pendingIntent.toString());
|
59 |
|
59 |
|
60 | dummy_number++;
|
60 | dummy_number++;
|
61 | if (dummy_number > 20000)
|
61 | if (dummy_number > 20000)
|
62 | {
|
62 | {
|
63 | dummy_number = 1;
|
63 | dummy_number = 1;
|