Answers for "what does put extra do?"

0

what does put extra do?

Intent i = new Intent(FirstScreen.this, SecondScreen.class);   
String keyIdentifer  = null;
i.putExtra("STRING_I_NEED", strName);
Posted by: Guest on January-20-2021
0

what does put extra do?

String newString
if (savedInstanceState == null) {
    extras = getIntent().getExtras();
    if(extras == null) {
        newString= null;
    } else {
        newString= extras.getString("STRING_I_NEED");
    }
} else {
    newString= (String) savedInstanceState.getSerializable("STRING_I_NEED");
}
Posted by: Guest on January-20-2021

Browse Popular Code Answers by Language