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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

binding - How can you make the color of elements of a WPF DrawingImage dynamic? -

java - netbeans "Please wait - classpath scanning in progress..." -