Android memory leak in the code
this section code seems memory leak. I don't know whether or not, why?
private static String logTime(){
**DateFormat dateFormat = new SimpleDateFormat("[dd-MM-yyyy HH:mm:ss]:
");**
Date date = new Date();
return dateFormat.format(date);
}
public static void log(String log){
if(bLogOn){
Log.d(LOGTAG, **logTime()**+log);
}
}
No comments:
Post a Comment