static void printBundle(Bundle data){
  try {
    if (null == data) {
      Log.d(TAG,"printBundle:No extras to log");
      return;
    }
    Set<String> ketSet=data.keySet();
    if (null == ketSet || ketSet.isEmpty())     return;
    Log.d(TAG,"------Start of bundle extras------");
    for (    String key : ketSet) {
      Object obj=data.get(key);
      if (null != obj) {
        Log.d(TAG,"[ " + key + " = "+ obj.toString()+ " ]");
      }
    }
    Log.d(TAG,"-------End of bundle extras-------");
  }
 catch (  Exception e) {
    if (DEBUG_ENABLED)     Log.e(TAG,"printBundle",e);
  }
}

static void printBundle ( Bundle data ) { try { if ( null == data ) { Log . d ( TAG , "printBundle:No extras to log" ) ; return ; } Set < String > ketSet = data . keySet ( ) ; if ( null == ketSet || ketSet . isEmpty ( ) ) return ; Log . d ( TAG , "------Start of bundle extras------" ) ; for ( String key : ketSet ) { Object obj = data . get ( key ) ; if ( null != obj ) { Log . d ( TAG , "[ " + key + " = " + obj . toString ( ) + " ]" ) ; } } Log . d ( TAG , "-------End of bundle extras-------" ) ; } catch ( Exception e ) { if ( DEBUG_ENABLED ) Log . e ( TAG , "printBundle" , e ) ; } }
a debugging method which helps print the entire bundle
