Hi this is my listview onClicklister.
when i click the list item , I pass the the arraylist which is getting from bean class one activity to another activity like
Make your RouteBean class implements Parcelable
interface. Then you can pass your custom class objects as bundle in intent to other activity.
You can then use-
class RouteBean implements Parceable Then while calling intent.
Bundle bundle = new Bundle();
RouteBean yourObj = new RouteBean();
bundle.putParcelable("bundlename", yourObj);
And in next Activity you can use
RouteBean yourObj bundle.getParcelable("bundlename");
More info on Parceable http://developer.android.com/reference/android/os/Parcelable.html.