Code example for DataSetObservable

Methods: notifyInvalidated

0
    public void onRefresh(View view) {
        if(progressDialog == null)
            return; 
        hosts.clear();
        content.clear();
        observable.notifyInvalidated();
        start(); 
    } 
 
    @Override 
    public void onStop() { 
        super.onStop(); 
        stop(); 
        finish();
    } 
 
    @Override 
    protected void onResume() { 
        super.onResume(); 
        onRefresh(null); 
    }