Android accessing parent class values after starting an intent? -
i'm starting intent in activity class ttwifi.java follows
intent = new intent(this, socketclient.class); startactivity(i);
now how access variables of ttwifi.class
socketclient.class
?
i believe there way send values between them. new android, guess fundamental stuff :) appreciate if can me out in this...
through following code can share values activities
intent i=new intent(fitnessgraph.this,nami.class).putextra("<stringname>"," string value");
use above code in parent activity , using below line can retrieve value in child activity.write line in child activity
string s= getintent().getstringextra("<stringname>");
Comments
Post a Comment