title: Saving image to sd with current date and time in name doesn't work
body: <p>In my application I use a button to launch Camera application and save picture to specific folder on sdCard naming it by current date and time. When I hardcode the name for the picture, it works fine, but if I'm trying to put date in the name it doesn't work at all.</p>
  
  <pre><code> Intent imageIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
   File imagesFolder = new File(Environment.getExternalStorageDirectory(), Constants.IMAGE_FOLDER_URI);
   imagesFolder.mkdirs();    
   Date d = new Date();
   CharSequence s  = DateFormat.format("MM-dd-yy hh:mm:ss", d.getTime());    
   File image = new File(imagesFolder, s.toString() + ".jpg"); //this line doesn't work
  
   Uri uriSavedImage = Uri.fromFile(image);
   imageIntent.putExtra(MediaStore.EXTRA_OUTPUT, uriSavedImage);
   startActivity(imageIntent);
  </code></pre>
  
  <p>If I put:</p>
  
  <pre><code>s = "some_name";
  </code></pre>
  
  <p>then it works, but I need current date and time in image name.</p>