When considering the case with android activity, the first method to work is its onCreate
method..right?
Suppose i want to pass 2 parameters to android activity class say UserHome
. For that am creating the constructor of activity class UserHome
and accepting the params.
But when we are calling an activity we are not initializing the Activity class, we are just creating an intent of UserHome
class.
Then how can we pass params to that activity from another activity without using intent.putExtra("keyName", "somevalue");
usage.
Experts please clarify how we can cover a situation like this.?