Wednesday, August 25, 2010

[android-developers] Re: Passing variables using intents

Would you happen to know what it means if when trying to do a setText
the data shows as either null or a blank?
Thank you

On Aug 25, 8:07 am, Kostya Vasilyev <kmans...@gmail.com> wrote:
>   25.08.2010 5:12, kingh32 пишет:>          //round.setText(String.valueOf(round));  The app crashes if I
> > include this line, I've tried it for all of the variables
>
> I don't see a variable named "round".
>
> There is "roundVal", but it's not initialized, and is therefore null.
> You should add code to call findViewById() somewhere after
> setContentView and before the variable is used.
>
> The call String.valueOf() should use "rounds", which is where you store
> the value gotten from intent, not "round", which is supposedly the view
> where this value should be displayed.
>
> I also suggest you come up with some kind of consistent naming scheme
> for your variables, that makes typos like the above less likely.
>
> --
> Kostya Vasilev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate