add a listener to receive the notification when the country is detected or changed . concode_field_sep HashMap<CountryListener,ListenerTransport> mListeners concode_elem_sep ICountryDetector mService concode_elem_sep Handler mHandler concode_elem_sep String TAG concode_elem_sep CountryListener mListener concode_field_sep void removeCountryListener concode_elem_sep Country detectCountry concode_elem_sep void onCountryDetected
void function ( CountryListener arg0 , Looper arg1 ) { synchronized ( mListeners ) { if ( ! mListeners . containsKey ( arg0 ) ) { ListenerTransport loc0 = new ListenerTransport ( arg0 , arg1 ) ; mService . addCountryListener ( loc0 ) ; mListeners . put ( arg0 , loc0 ) ; } } }