I have a Tab with class A and class B,
In class A i have a text and a button, when i add some value in text and press the button
it should display the value in the activity b with the tab, instead it displays only class b, not the tab
Any body can find out what is the issue
Button rajset = (Button) findViewById(R.id.setappidButton);
rajset.setOnClickListener(new OnClickListener() {
public void onClick (View v) {
Intent i = new Intent(A.this, B.class);
EditText appIdStrVal = (EditText) findViewById(R.id.editText1);
String appIdStr = appIdStrVal.getEditableText().toString();
Log.d("Application ID", appIdStr + "");
i.putExtra("appIdStr", appIdStr);
startActivity(i);
In the B class i am having
EditText appIdStrVal = (EditText) findViewById(R.id.editText1);
appIdStr = appIdStrVal.getEditableText().toString();
Log.d("Application ID", appIdStr + "");
i.putExtra("appIdStr", appIdStr);
Can you please post your code for class B. It appears you pasted the same code that is shown in Class A.
Thanks.