android - passing edittext parameter -



android - passing edittext parameter -

i tried phone call method 1 class activity class im having nullpointer exception on edittext.

// method created in method class

public void getedittextvalue(edittext edittext, int resources, string datavalue , string vedittextvalue) { methods md = new methods(); edittext = (edittext) findviewbyid(resources); vedittextvalue = edittext.gettext().tostring(); md.editorsharepreferences(this, datavalue, vedittextvalue); }

// phone call method in main activity class, declare public edittext edittext @ origin of class

public edittext edittext; methods md = new methods(); md.getedittextvalue(currentemployermonth, r.id.ettimewithyourcurrentemployermonths, "dcurrentemployermonth", vcurrentemployermonth);

send edit text value string , 1 time again in other activity , assign want assign value of edittext

function (edittext.tostring());

android android-edittext

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

Hibernate criteria by a list of natural ids -

ios - Lagging ScrollView with UIWebview inside -