Which of the following is the correct way to get pass string in an Intent, where key and value are both string variables?

Question:Which of the following is the correct way to get pass string in an Intent, where key and value are both string variables?

1.intent.putString(key,value);

2.intent.putKey(key,value);; i

3. intent.putExtra(key,value)

4.ntent.putValue(key,value);


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!