title: passing a List of string by putExtra method using intent
body: <p>I have a class named <code>register_information</code> which looks like </p>
  
  <pre><code>// getting name
  public String get_name()
  {
      return this.name;
  }
  // setting name
  public void set_name(String name)
  {
      this.name=name;
  }
  </code></pre>
  
  <p>I used some code to get all of the name and password which is registered from <code>MainActivity</code> like this.</p>
  
  <pre><code>List&lt;register_information&gt; all_reg_info_lists = db.get_all_info(); 
  
              List&lt;HashMap&lt;String, String&gt;&gt; list_of_reg_info = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
  
                for (register_information reg_info : all_reg_info_lists)
                {                 
                    HashMap&lt;String, String&gt; hm = new HashMap&lt;String, String&gt;();
                     String name = reg_info.get_name();
                      String password=reg_info.get_password() ;
  
                        hm.put("key_name",name);
                        hm.put("key_password",password);
  
                        list_of_reg_info.add(hm);
                     }
  </code></pre>
  
  <p>Now i want to pass these all name and password into another window for showing them as list-view by intent.
  I used intent like this </p>
  
  <pre><code>Intent intObj = new Intent(MainActivity.this,showData_in_textView_class.class);         
              intObj.putExtra("data", list_of_reg_info);
              startActivity(intObj);
  </code></pre>
  
  <p>In my <code>showData_in_textView_class</code> i received the intent like this</p>
  
  <pre><code>public class showData_in_textView_class extends Activity{
  
     ArrayAdapter adapter;
     List&lt;register_information&gt; reg_info_lists; 
  
   public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.listview_xml_page);
  
  
          Intent intename = getIntent();
          reg_info_lists= (List)intename.getSerializableExtra("data");
  
  } 
  </code></pre>
  
  <p>}</p>
  
  <p>But it didn't work.
  How can i do that??</p>