title: Pass variable between non-activity class to android activity class
body: <p>I need to pass a variable from (around)non-activity class to an nameget(android activity)class . Display the passed variable value in text view.. Please tel me what needs to do from this example. How to pass it to android activity</p>
  
  <pre><code>public class around(non-activity class)
  {
      String name = "arjun";
      //how to pass this name value to an below activity
      nameget nam = new nameget();
      String new = nam.get(name);
  }
  
  public class nameget extends Activity(android activity class)
  {
     public String get(String name)
     {
        String got = name;
        TextView t1 = (TextView)findViewById(R.id.textView1);
        t1.setText(name);
      }
  }
  </code></pre>