hi friends,
i have two classes Screen1 and Screen2 both extends activity
i have to pass data from the Screen1 to Screen 2
i wrote in onCreate method of Screen1 class
t=(EditText)findViewById(R.id.ed1);
b=(Button)findViewById(R.id.but1);
b.setOnClickListener(new Button.OnClickListener()
{
public void onClick(View v)
{
Intent i= new Intent(v.getContext(),Screen2.class);
i.putExtra("myval",t.toString());
startActivity(i);
}
My doubt is ,how to receive myval data in Screen2 class ,what is the
code i have to add in AndroidManifest.xml file
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---