I am trying to get text from an EditText
in android but I have an Error:
Object reference not set to an instance of an object
I tried to look for a solution online, but I didn't find any.
I just need to get the text from the EditText
and pass it to a string
My code:
EditText edip = FindViewById<EditText>(Resource.Id.editText1);
EditText edport = FindViewById<EditText>(Resource.Id.editText2);
string customip = edip.Text;
string customport = edport.Text;