private static void deleteStackTrace(WeakReference<Context> weakContext,String filename){
  Context context=null;
  ArtisanLogUtil.debugLog("delete file " + filename);
  if (weakContext != null) {
    context=weakContext.get();
    if (context != null) {
      File file=new File(filename);
      if (file.exists()) {
        file.delete();
      }
    }
  }
}

private static void deleteStackTrace ( WeakReference < Context > weakContext , String filename ) { Context context = null ; ArtisanLogUtil . debugLog ( "delete file " + filename ) ; if ( weakContext != null ) { context = weakContext . get ( ) ; if ( context != null ) { File file = new File ( filename ) ; if ( file . exists ( ) ) { file . delete ( ) ; } } } }
deletes the give filename and all corresponding files ( same name , different extension ) .
