[android-developers] Re: Problem with onActivityResult

2008-11-06 Thread Alvin Yates
Actually it's because of this line, which took me two days to figure out when I was doing it: In class A: ... btOk.setOnClickListener(new OnClickListener() { public void onClick(View v) { bus = new Intent(AndTeste.this, Buscador.class); ===

[android-developers] Re: Problem with onActivityResult

2008-11-05 Thread Christine
The proper way to do this is to provide an int value for requestCode in startActivity. Then in OnActivityResult you have a switch(requestCode) and within each case you have a switch for resultCode. You seem to be confusing requestCode and resultCode. Your requestCode should probably be something