title: android youtube upload using intent
body: <pre><code>Intent intent = new Intent();
  
  intent.setAction(Intent.ACTION_SEND);
  intent.setType("video/3gpp");
  intent.putExtra(Intent.EXTRA_STREAM, videoURI);
  startActivity(Intent.createChooser(intent,"Upload video via:"));
  </code></pre>
  
  <p>I used above code to upload 3gp video to youtube by firing intent</p>
  
  <p>but it throws following exception.</p>
  
  <p>I dont understand what is the relationship between the date exception and media uploading</p>
  
  <pre><code>05-04 13:04:59.315: ERROR/AndroidRuntime(10671): FATAL EXCEPTION: Thread-12
  05-04 13:04:59.315: ERROR/AndroidRuntime(10671): java.lang.NullPointerException
  05-04 13:04:59.315: ERROR/AndroidRuntime(10671):     at java.util.Calendar.setTime(Calendar.java:1325)
  05-04 13:04:59.315: ERROR/AndroidRuntime(10671):     at java.text.SimpleDateFormat.formatImpl(SimpleDateFormat.java:536)
  05-04 13:04:59.315: ERROR/AndroidRuntime(10671):     at java.text.SimpleDateFormat.format(SimpleDateFormat.java:818)
  05-04 13:04:59.315: ERROR/AndroidRuntime(10671):     at java.text.DateFormat.format(DateFormat.java:376)
  05-04 13:04:59.315: ERROR/AndroidRuntime(10671):     at com.google.android.apps.uploader.clients.youtube.YouTubeSettingsActivity.a(SourceFile:183)
  05-04 13:04:59.315: ERROR/AndroidRuntime(10671):     at com.google.android.apps.uploader.clients.SettingsActivity.b(SourceFile:43)
  05-04 13:04:59.315: ERROR/AndroidRuntime(10671):     at com.google.android.apps.uploader.clients.j.run(SourceFile:348)
  05-04 13:04:59.315: ERROR/AndroidRuntime(10671):     at java.lang.Thread.run(Thread.java:1019)
  </code></pre>