Tuesday, February 28, 2017

Demo Project

4 comments:

  1. Sir, I am unable to open this project.

    ReplyDelete
  2. 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.

    ReplyDelete
  3. if part works fine, else part creating strange problem. here is else part code.

    else {
    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

    ReplyDelete
  4. Now its working fine, Thanks Sir

    ReplyDelete