Sunday, May 15, 2011

[android-developers] Newbie question: What is "this" in the code?

Hi,

I am a newbie developer and have done iphone coding. I just don't
understand how some code works as it is not explained in my book.

Toast.makeText(this, "Please enter a valid
number",Toast.LENGTH_LONG).show()

what is "this" in the brackets
makeText("this",...)

--
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