If I understand you correctly, you're attempting to use the EndlessAdapter with your LocationAdapter.
The documentation for Commonsware's EndlessAdapter mentions that one of the constructors offered by EndlessAdapter takes an existing ListAdapter as its parameter. Wrapping your adapter involves passing your LocationAdapter to a subclass of EndlessAdapter as a parameter.
private class EndlessLocationAdapter extends EndlessAdapter
{
public EndlessLocationAdapter(LocationAdapter adapter)
{
super(adapter);
}
@Override
protected boolean cacheInBackground() throws Exception
{
//Fetch more data
}
//Other methods such as getPendingView(), appendCachedData()
}
In your activity
locationArray = new ArrayList<LocationModel>();
LocationAdapter locationAdapter = new LocationAdapter(ListRest.this, R.layout.dublet, locationArray);
EndlessLocationAdapter endlessLocAdapter = new EndlessLocationAdapter(locationAdapter);
setListAdapter(endlessLocAdapter);