private static int parseNotificationId(String id){
  try {
    return Integer.parseInt(id);
  }
 catch (  NumberFormatException nfe) {
    Log.w(TAG,"Exception while parsing download id:" + id);
    return -1;
  }
}

private static int parseNotificationId ( String id ) { try { return Integer . parseInt ( id ) ; } catch ( NumberFormatException nfe ) { Log . w ( TAG , "Exception while parsing download id:" + id ) ; return - 1 ; } }
parse the notification id from a string object .
