Android: How To Use Data Passed From Parent Activity In A Sub Activity?
When we want to pass data from an activity to a sub activity we use the intent.pushextra() method and pass the request code and any additional data. now in the subactivity how ca
Solution 1:
You use intent.putExtra() to put data in the intent, then in the sub activity's onCreate() use getIntent().getExtras() or getIntent().getXXXExtra() methods.
For example for retrieving a String you would use: getStringExtra()
Post a Comment for "Android: How To Use Data Passed From Parent Activity In A Sub Activity?"