How to get data from object in Android
<p>In the following code, on click of list item I want to fetch variable present inside the object, How I can achive this</p>

<p>Below is code snippet</p>

<pre><code> private void onListViewItemClick() {
    // TODO Auto-generated method stub
    // item click switch to next activity
    listCustomListViewId.setOnItemClickListener(new OnItemClickListener() {
        /* on click gets list view item id */
        public void onItemClick(AdapterView&lt;?&gt; myAdapter, View myView,
                int myItemInt, long mylng) {
            // fetching clicked item id
            Object o = listCustomListViewId.getItemAtPosition(myItemInt);
            Log.i("Victory Item Id:.....", String.valueOf(o);
            long strid = (long) (listCustomListViewId
                    .getItemIdAtPosition((int) mylng));
            Log.i("Item Id...#######", String.valueOf(strid));

            /* switch on next 'ListItemDeleteUpdateActivity' activity */
            Intent intent = new Intent(FeedsActivity.this,
                    VictoryDetailActivity.class);

            intent.putExtra("customElements", o.toString());
            startActivity(intent);
        }
    });

}
</code></pre>

<p>I have tried to get data into Object but unable to fetch. </p>
