protected internal override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.activity_main; mPhoneNumber = (EditText)findViewById(R.id.phoneNumber); mSmsButton = (Button)findViewById(R.id.smsVerificationButton); mFlashCallButton = (Button)findViewById(R.id.callVerificationButton); mCountryIso = PhoneNumberUtils.getDefaultCountryIso(this); //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final String defaultCountryName = new java.util.Locale("", mCountryIso).getDisplayName(); string defaultCountryName = (new Locale("", mCountryIso)).DisplayName; //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final CountrySpinner spinner = (CountrySpinner) findViewById(R.id.spinner); CountrySpinner spinner = (CountrySpinner)findViewById(R.id.spinner); spinner.init(defaultCountryName); spinner.addCountryIsoSelectedListener(new CountryIsoSelectedListenerAnonymousInnerClassHelper(this)); resetNumberTextWatcher(mCountryIso); tryAndPrefillPhoneNumber(); }
public OnItemSelectedListenerAnonymousInnerClassHelper(CountrySpinner outerInstance) { this.outerInstance = outerInstance; }