(android) Use 1 image adapter with an filter
===

So I have an ImageAdapter that i call need to call in 2 listview of 2 different layouts.
I made the next ImageAdapter:

    package com.weinco.list;

    import android.view.LayoutInflater;
    import android.view.View;
    import android.view.View.OnClickListener;
    import android.view.ViewGroup;
    import android.widget.BaseAdapter;
    import android.widget.ImageButton;
    import android.widget.ImageView;
    import android.widget.TextView;

    import com.androidquery.AQuery;
    import com.weinco.R;
    import com.weinco.fragments.StandorteFragment;
    import com.weinco.webservice.entity.Standort;
    
    import com.weinco.webservice.entity.Standorts;


    public class LocationMenuAdapter2 extends BaseAdapter {
	private LayoutInflater mInflater;
	private AQuery aQuery;
	private Standorts standorts;
	private Standort standort;
	private StandorteFragment standorteFragment;


		public LocationMenuAdapter2(StandorteFragment standorteFragment, Standorts standorts) {

			this.standorteFragment  =standorteFragment;
			this.standorts  =standorts;
			this.aQuery = standorteFragment.aQuery;		
			mInflater = LayoutInflater.from(standorteFragment.getActivity());

		}

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

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

		public long getItemId(int position) {
			return position;
		}
		
		public Standort getStandort(int i) {
			return standorts.get(i);
		}


		public View getView(int position, View convertView, ViewGroup parent) {

			ListContent holder = null;
			
		Standort standort = getStandort(position);

			if (convertView == null) {
				convertView = mInflater.inflate(R.layout.listviewinflate, null);

				holder = new ListContent();
				holder.text = (TextView) convertView
						.findViewById(R.id.TextView01);

				convertView.setTag(holder);
			} else {
					holder = (ListContent) convertView.getTag();

			}

                        if(LocationPage==2) { //Second Layout is selected
			    if(standort.BusinessLunch==true){ 
                            //BusinessLunch = Variable of standort (webentity)
				holder.text.setText(standort.Name); (var. of standort)
			    }    
                        }
                        else{
                          holder.text.setText(standort.Name);
                        }
			return convertView;
		}

		class ListContent {
			TextView text;

		}
	}

The function that loads the Adapter:

      private void loadBussinessLunchLoc() {
    	ServiceProxy.createWebServiceTask(getActivity(), new RemoteCallListener() {
            
            @Override
            public void onRemoteCallError(String response) {
            // TODO Auto-generated method stub
           
            }
           
            @Override
            public void onRemoteCallComplete(Object response) {
                Log.d("debug", "response is = "+response+"\t"+response.getClass()); 
                Standorts standorts =  (Standorts) response;

              
               	 locationMenuAdapter2 = new LocationMenuAdapter2(StandorteFragment.this, standorts);
               	 menuItemListLoc2page.setAdapter(locationMenuAdapter2);
                     
               
                
            }
            
            @Override
            public void onNoInternetError() {
            // TODO Auto-generated method stub
           
            }

   		@Override
   		public void onNoAccess() {
   			// TODO Auto-generated method stub
   			
   		}
            }, true).invokeGetStandorte();
    }

I call this function in 2 different layouts, but i get a "force close". What should i do?

PS: I tried creating 2 adapters, one for each load function and layout. It works, if i get all of the names (standort.Name). But i don't know how to filter the results of the second Adapter so it would show only the standort.Name of those who have standort.BussinessLunch == true;