title: starting activity in onCreate and getting an result
body: <p>I have an app that opens a config activity at initial start up, and that config activity opens a list activity (startActivityForResult in onCreate). In the list activity the user can choice a value, which closes the list and sends the value to the config activity (setResult, finish, onActivityResult). </p>
  
  <p>That works fine when I try it in the emulator and for almost everyone who has tried it.</p>
  
  <p>However, now someone has send a mail that it does not work on his device (Galaxy): he can select something in the list and close it, but the config activity opens it again (as if it has not received the selected result). What could be going on?  What do I need to ask the user to figure it out?</p>
  
  <pre><code>public class AccountInfo extends VideLibriBaseActivity /* extends SherlockActivity */ {
     void openList(){ //called in onCreate and on cancel
          findViewById(R.id.libraryTextView).postDelayed(new Runnable() {
              @Override
              public void run() {
                  Intent intent = new Intent(AccountInfo.this, LibraryList.class);
                  //...
                  startActivityForResult(intent, REQUEST_LIBRARY_FOR_ACCOUNT_CREATION);
              }
          }, 200); //did not work without delay on some devices
      }
  
      @Override
      protected void onActivityResult(int requestCode, int resultCode, Intent data) {
          if (requestCode == REQUEST_LIBRARY_FOR_ACCOUNT_CREATION) {
              if (resultCode == LibraryList.RESULT_OK) {
                  libId = data.getStringExtra("libId");
                  libName = data.getStringExtra("libName");
                  lib.setText(libName);
                  //...
              } else if (libId.equals(""))
                  if (mode == MODE_ACCOUNT_CREATION_INITIAL &amp;&amp; (VideLibriApp.accounts.length == 0))
                      openList();
                  else
                      finish();
          }
      }        
  }
  
  public class LibraryList extends VideLibriBaseActivity /* extends SherlockActivity */  {
    //...
    lv.setOnChildClickListener(new ExpandableListView.OnChildClickListener() {
          @Override
          public boolean onChildClick(ExpandableListView expandableListView, View view, int i, int i2, long l) {
              Intent result = new Intent();
              result.putExtra("libName", localLibs.get(i).get(i2).get("NAME"));
              result.putExtra("libId", localLibs.get(i).get(i2).get("ID"));
              //...
              setResult(RESULT_OK, result);
              LibraryList.this.finish();
              return true;
          }
      });
      //...
  }
  </code></pre>
  
  <p>launchMode is singleTop for both activities</p>