Code example for AnimationDrawable

Methods: stop

0
     * @see android.app.Activity#onPause() 
     */ 
    @Override 
    protected void onPause() { 
        super.onPause(); 
        if (null != throbber) { throbber.stop(); }
        if (null != glWidget) { glWidget.onPause(); }
    } 
 
    /** 
     * @see android.app.Activity#onResume() 
     */ 
    @Override 
    protected void onResume() { 
        super.onResume(); 
        toggleThrobber(); 
        if (null != glWidget) { glWidget.onResume(); }
    } 
 
    void toggleThrobber() { 
        if (null != throbber) {