1

About Intent requestCode, Android

view story
linux-howto

http://stackoverflow.com – Why my toast message is showing? My CEVAP_SORGULA variable equals 322, but my intents request code is 332 private final static int CEVAP_SORGULA = 322; public void degistirActivity(final View view){ startActivityForResult(new Intent(this,veriTopla.class),332); } protected void onActivityResult(int requestCode, int resultCode, Intent data){ if (resultCode == Activity.RESULT_OK && requestCode == CEVAP_SORGULA ){ Toast.makeText(this, "Cevabin: " + data.getExtras().getInt("Cevap"),Toast.LENGTH_LONG).show(); } super.onActivityResult(requestCode, resultCode, data); (HowTos)