title: How to pass bean class one activity to another activity on android
body: <p>Hi  this is my listview onClicklister. </p>
  
  <p>when i click the list item , I pass the the arraylist which is getting from bean class one activity to another activity like below., </p>
  
  <p>But i want to know can we pass the bean class to next activity? </p>
  
  <pre><code>listViewRoutes.setOnItemClickListener(new OnItemClickListener() {
        public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1, int arg2,
            long arg3) {
          RouteBean bean = routeList.get(arg2);
          ArrayList&lt;Double&gt; fromLatitude = bean.getFromLatitude();
          ArrayList&lt;Double&gt; fromLongitude= bean.getFromLongitude();
          ArrayList&lt;Double&gt; toLatitude = bean.getToLatitude();
          ArrayList&lt;Double&gt; toLongitude= bean.getToLongitude();
          Intent intent =new Intent("MapActivityView");
          intent.putExtra("fromLon", fromLongitude);
          intent.putExtra("fromLat", fromLatitude);
          intent.putExtra("toLat", toLatitude);
          intent.putExtra("toLon", toLongitude);
          startActivity(intent);
        }
      });
  </code></pre>
  
  <p>if i pass the "Route Bean", i get the values on next activity.</p>
  
  <p>Is it possible to pass the bean class ?</p>