title: Android: How to set the TextView to a getter method using textview.setText(getter)
body: <p>I have a getter and setter class that stores names and nicknames.</p>
  
  <p>I store the text entered into the EditText field into a string and set my setter method to that string in one Activity.</p>
  
  <pre><code>Person personInfo = new Person();
   String storeName = text.getText().toString();
          personInfo.setName(storeName);
  </code></pre>
  
  <p>This is put into the onCreate method of one activity.</p>
  
  <p>Then in another activity, I want to get the name from the setter, but it keeps returning null.</p>
  
  <pre><code>TextView name;
  Person personInfo;
  public void onCreate(Bundle savedInstanceState){
          name = (TextView) findViewById(R.id.name);
                  name.setText(personInfo.getName()); 
  }
  </code></pre>
  
  <p>Help would be appreciated. Thanks</p>