I created a new project of registration form, it is working fine if a field is left empty but if everything is filled properly and i click on register to navigate to other activity which shows welcome + passedString, the app closes automatically without performing any action.
Sir, I am unable to open this project.
ReplyDeleteI created a new project of registration form, it is working fine if a field is left empty but if everything is filled properly and i click on register to navigate to other activity which shows welcome + passedString, the app closes automatically without performing any action.
ReplyDeleteif part works fine, else part creating strange problem. here is else part code.
ReplyDeleteelse {
Intent intObj = new Intent(this, index.class);
intObj.putExtra("name_extra", username.getText().toString());
startActivity(intObj);
and index class code is this:-
TextView messageTextView = (TextView) findViewById(R.id.user_name);
String passedString = getIntent().getStringExtra("name_extra");
messageTextView.setText("welcome" + passedString);
and index activity code is this:-
Here is the src folder zip file in case you want to check the whole code.
https://www.dropbox.com/s/fpd7j833zerbmcf/src.zip?dl=0
Now its working fine, Thanks Sir
ReplyDelete