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

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

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