1

Android memory leak in the code

view story
linux-howto

http://stackoverflow.com – 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); } } (HowTos)