APISonar


java.util.ArrayList.getBundleExtra

> java > util > ArrayList > getBundleExtra
java APIs util APIs ArrayList APIs getBundleExtra APIs

Example 1
ArrayList<String> data;

    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);

        if (resultCode == RESULT_OK) {
            if (requestCode == 100 && data != null) {
                Bundle bundle = data.getBundleExtra("returndata");
                String text = bundle.getString("text");

                Toast.makeText(MainActivity.this, "Text Received : " + text, Toast.LENGTH_LONG).show();
            }
        }
    }