--- android/CheckUpdates/src/dk/thoerup/checkupdates/CheckUpdates.java 2010/06/30 21:55:56 943 +++ android/CheckUpdates/src/dk/thoerup/checkupdates/CheckUpdates.java 2010/07/01 05:43:10 944 @@ -24,7 +24,7 @@ import android.util.Log; public class CheckUpdates { - final static long TIMESPAN_DAY = 24*60*60*1000; // one day + final static long TIMESPAN_DAY = /*24*60*60* */1000; // one day final static String CHECKUPDATES = "CheckUpdates"; final static String LASTCHECK = "lastcheck"; @@ -154,7 +154,8 @@ private void showNotification(String launchUrl) { NotificationManager nm = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); - int icon = android.R.drawable.sym_action_email; //TODO: find a better icon + //int icon = android.R.drawable.sym_action_email; //TODO: find a better icon + int icon = R.drawable.searchicon; Notification notification = new Notification(icon, "Update available", System.currentTimeMillis() ); notification.flags |= Notification.FLAG_AUTO_CANCEL ; @@ -162,6 +163,7 @@ CharSequence contentTitle = title; CharSequence contentText = "New version available."; Intent notificationIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(launchUrl) ); + notificationIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK ); PendingIntent contentIntent = PendingIntent.getActivity(context, 0, notificationIntent, 0); notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent);