Double check see if you got any illegal quote in your code, for example:
SimpleDateFormat dateFormat = new SimpleDateFormat("'_yyyyMMdd_HHmmss");
fileName = filename + dateFormat.format(date) + ".jpg";
Solution is removing the single quote highlighted in yellow and in red at the code shown above.
SimpleDateFormat dateFormat = new SimpleDateFormat("_yyyyMMdd_HHmmss");
fileName = filename + dateFormat.format(date) + ".jpg";
No comments :
Post a Comment