Code example for Observable

Methods: notifyObservers

0
                                Thread.sleep(1000);
                            } catch (InterruptedException e) {
                                e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
                            } 
 
                            observable.notifyObservers(results);
                            Log.d("demo","observable notify");
                        } 
                    } 
                } 
            }; 
            Looper.loop();
        } 
    } 
 
    private LoadContentWorker loadContentWorker;
 
    public LoadContentWorker getLoadContentWorker() { 
        return loadContentWorker;
    }