Code example for Context

Methods: unregisterReceiver

0
                        clock.updateTime();
                    } 
                }); 
            } else { 
                try { 
                    mContext.unregisterReceiver(this);
                } catch (RuntimeException e) {
                    // Shouldn't happen 
                } 
            } 
        } 
    }; 
 
    static class AmPm { 
        private TextView mAmPmTextView;
        private String mAmString, mPmString;
 
        AmPm(View parent, Typeface tf) {
            mAmPmTextView = (TextView) parent.findViewById(R.id.am_pm);
            if (mAmPmTextView != null && tf != null) {
                mAmPmTextView.setTypeface(tf);