Q:

ListView display nothing in android

I am implementing a ListView using Custom Adapter. I have fetch all the SMS from inbox and store all the information into ArrayList and Bind to ListView.I have successfully print all the SMS details into logcat and store into ArrayList but I don't know why my ListView displays Nothing. 
There is no any error found into logcat. I saw you my code adapter code as below.
public class ListAdapter extends BaseAdapter {

private Activity activity;
private static ArrayList data,contactid;
private static LayoutInflater inflater = null;

public ListAdapter(Activity a, ArrayList b,ArrayList c) {
    activity = a;
    data = b;
    contactid=c;
    inflater = (LayoutInflater) activity
            .getSystemService(Context.LAYOUT_INFLATER_SERVICE);

}

public int getCount() {
    return data.size();
}

public Object getItem(int position) {
    return position;
}

public long getItemId(int position) {
    return position;
}

public View getView(int position, View convertView, ViewGroup parent) {
    View rowdata;
    if (convertView == null)
        rowdata = inflater.inflate(R.layout.row_contact, null);

    TextView title = (TextView) vi.findViewById(R.id.txt_ttlcontact_row); // title
    String song = data.get(position).toString();
    // Setting all values in listview
    title.setText(song);    

    return convertView;

}

}

A:

You should return rowdata
 return rowdata;

Instead of convertView
return convertView;

in getView(....) into your ListAdapter:

