title: I'm getting error while executing intent, failure delivering result?
body: <p><strong>My Code Here is:</strong></p>
  
  <pre><code>@Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
      if (requestCode == 1){
          if (resultCode == Activity.RESULT_OK){
              Uri selectdFileUri = data.getData();
              File file = new File(selectdFileUri.getPath().toString());
              Log.e(TAG, "File: "+file.getName() );
              uploadedFileName = file.getName().toString();
              Log.e(TAG, "FILE NAME: "+uploadedFileName );
              tokens = new StringTokenizer(uploadedFileName,":");
              first = tokens.nextToken();
              file_1 = tokens.nextToken().trim();
              Log.e(TAG, "FILE 1: "+file_1 );
          }
      }
  }
  </code></pre>
  
  <p><strong>Error I'm Getting:</strong></p>
  
  <pre><code>FATAL EXCEPTION: main
  java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://com.estrongs.files/storage/sdcard0/WhatsApp/Media/WhatsApp Documents/8763890_133791_1103157248.pdf }} to activity {com.cogent.harikrishna.uploadpdf/com.cogent.harikrishna.uploadpdf.MainActivity}: java.util.NoSuchElementException
   at android.app.ActivityThread.deliverResults(ActivityThread.java:3533)
   at android.app.ActivityThread.handleSendResult(ActivityThread.java:3576)
   at android.app.ActivityThread.access$1100(ActivityThread.java:165)
   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1421)
   at android.os.Handler.dispatchMessage(Handler.java:107)
   at android.os.Looper.loop(Looper.java:194)
   at android.app.ActivityThread.main(ActivityThread.java:5391)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:525)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
   at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
   at dalvik.system.NativeStart.main(Native Method)
  </code></pre>