android - EditText getText() returns different value then what is displayed -
i have been developing android while , have never come across before im hoping 1 here can help. have multiple edittext's , autocompletextviews populate sharedprefs. problem views not displaying text should be. display old value there until leave activity , come back. strange part if call gettext function on edittext when has wrong value displayed gettext() returns correct value. can please explain why might be. public view oncreateview(layoutinflater inflater, viewgroup container, bundle savedinstancestate){ view = inflater.inflate(r.layout.extra_info, container, false); myprefs = preferencemanager .getdefaultsharedpreferences(getactivity()); initprefs(); findtextviews(); findviews(); initdatasource(); runqueries(); getallfields(); return view; } private void findviews() { editpayid = (autocompletetextview)view.findviewbyid( r.id.editpayid )