On May 11, 8:30 pm, jknox <[email protected]> wrote:
> On May 11, 5:16 pm, Romain Guy <[email protected]> wrote:
>
> > Your EditText is null. You first need to find that EditText in your
> > hierarchy by using findViewById:
>
> > txtModbox = findViewById(R.id.txtModbox);
> > txtModbox.setVisibility(View.GONE);

Found it, with your help.

As I said, there was indeed a "findViewById" for the object that was
causing the crash.  However, due to a cut-n-paste error, it was:

     lblFilenam = (EditText)findViewById(R.id.lblFilenam);

and was crashing when it hit:

     lblFilenam.setVisibility(View.INVISIBLE);

The problem is that lblFilenam is a "TextView" - not an "EditText"
object.  It never gave me an error in Eclipse, but it sure crashed the
simulator.

Much thanks for all the help....  it gave me the clue I needed to
track it down.

 
jmk

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to