On Nov 20, 2011, at 6:13 PM, Paul F. Johnson wrote:
> I then try and retrieve the data using the following and it gives me a
> null reference...
>
> EditText editText = FindViewById<EditText>(Resource.Id.tempSurround);
> if (editText.Text == "")
> {
> // fail
> }
FindViewById() will return null if you haven't called SetContentView() first,
and if the specified resource ID isn't valid for the current content view. Have
you called SetContentView() on the activity before calling FindViewById()?
Thanks,
- Jon
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid