This is my code:
private boolean writeToSD(Bitmap bm, String url) { if (canIWriteOnSD()) { File sd = Environment.getExternalStorageDirectory();
The string url contains illegal characters for a filename. You'll need to cleanup the filename by removing the illegal characters.
url