title: Using StartActivityForResult and onResultReceive i'm getting an error. is there something wrong?
body: <p>The activity that gives the result:</p>
  
  <pre><code>public void onClick(View arg0) {
      if (Login.length()==0 || Senha.length() == 0) {
          Toast.makeText(getLogin.this, "Por favor preencha login e senha!", Toast.LENGTH_LONG);
          return;
  }
  Bundle gGuy = new Bundle();
  gGuy.putStringArray("Login", new String[] {Login.getText().toString(), Senha.getText().toString()});
  //gGuy.putString("Login", Login.getText().toString());
  //gGuy.putString("Senha", Senha.getText().toString());
  Intent i = new Intent();
  i.putExtra("bGuy", gGuy);
  setResult(RESULT_OK, i);
  finish();
  </code></pre>
  
  <p>}</p>
  
  <p>And the result receiver:</p>
  
  <pre><code>protected void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
      if (requestCode == 555) {
          if (resultCode == RESULT_OK) {
              Bundle bGuy = data.getExtras();
              Info = bGuy.getStringArray("Login");
              doMe = new Syncro();
              doMe.execute();
          }
          else {
              doLog.doWarning("Erro ao obter login da intent result!");
              return;
          }
      }
  }
  </code></pre>
  
  <p>Logcat error:</p>
  
  <pre><code>08-10 15:13:30.038: ERROR/AndroidRuntime(5489): FATAL EXCEPTION: main
  08-10 15:13:30.038: ERROR/AndroidRuntime(5489): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=555, result=-1, data=Intent { (has extras) }} to activity {com.ibssistemas.pda/com.ibssistemas.pda.doSync}: java.lang.NullPointerException
  08-10 15:13:30.038: ERROR/AndroidRuntime(5489):     at android.app.ActivityThread.deliverResults(ActivityThread.java:3515)
  08-10 15:13:30.038: ERROR/AndroidRuntime(5489):     at android.app.ActivityThread.handleSendResult(ActivityThread.java:3557)
  08-10 15:13:30.038: ERROR/AndroidRuntime(5489):     at android.app.ActivityThread.access$2800(ActivityThread.java:125)
  08-10 15:13:30.038: ERROR/AndroidRuntime(5489):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2063)
  08-10 15:13:30.038: ERROR/AndroidRuntime(5489):     at android.os.Handler.dispatchMessage(Handler.java:99)
  08-10 15:13:30.038: ERROR/AndroidRuntime(5489):     at android.os.Looper.loop(Looper.java:123)
  08-10 15:13:30.038: ERROR/AndroidRuntime(5489):     at android.app.ActivityThread.main(ActivityThread.java:4627)
  08-10 15:13:30.038: ERROR/AndroidRuntime(5489):     at java.lang.reflect.Method.invokeNative(Native Method)
  08-10 15:13:30.038: ERROR/AndroidRuntime(5489):     at java.lang.reflect.Method.invoke(Method.java:521)
  08-10 15:13:30.038: ERROR/AndroidRuntime(5489):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  08-10 15:13:30.038: ERROR/AndroidRuntime(5489):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  08-10 15:13:30.038: ERROR/AndroidRuntime(5489):     at dalvik.system.NativeStart.main(Native Method)
  08-10 15:13:30.038: ERROR/AndroidRuntime(5489): Caused by: java.lang.NullPointerException
  08-10 15:13:30.038: ERROR/AndroidRuntime(5489):     at com.ibssistemas.pda.doSync$Syncro.onPreExecute(doSync.java:79)
  08-10 15:13:30.038: ERROR/AndroidRuntime(5489):     at android.os.AsyncTask.execute(AsyncTask.java:391)
  08-10 15:13:30.038: ERROR/AndroidRuntime(5489):     at com.ibssistemas.pda.doSync.onActivityResult(doSync.java:126)
  08-10 15:13:30.038: ERROR/AndroidRuntime(5489):     at android.app.Activity.dispatchActivityResult(Activity.java:3890)
  08-10 15:13:30.038: ERROR/AndroidRuntime(5489):     at android.app.ActivityThread.deliverResults(ActivityThread.java:3511)
  08-10 15:13:30.038: ERROR/AndroidRuntime(5489):     ... 11 more
  </code></pre>
  
  <p><strong>SOLVED:</strong> Changed '<code>putExtra</code>' to '<code>putExtras</code>'
  Result: 
         <code>i.putExtras(gGuy);</code></p>