my code shows user apps in a listview. I want to show the total number of list items (apps) in my textview. how do i get the number?
    ArrayAdapter adapter = new ArrayAdapter<String>(this,R.layout.activity_listview, results){
//  ArrayAdapter adapter = new ArrayAdapter<String>( this, android.R.layout.simple_list_item_1, results ) {
        @Override
        public View getView(int position, View convertView, ViewGroup parent) { 
             TextView textView = (TextView) super.getView(position, convertView, parent);
             //Change this to your drawable
             Drawable myDrawable = getResources().getDrawable(android.R.drawable.ic_dialog_alert);
             textView.setCompoundDrawablesWithIntrinsicBounds( myDrawable , null, null, null);
             return textView;
        }
};  
    ListView listView = (ListView) findViewById(R.id.mobile_list);
    listView.setAdapter(adapter);
 
     
    