Tuesday, August 25, 2015

[Android][Resolved] java.lang.IllegalArgumentException: Unterminated quote

Error Message :

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