this means "that very instance" use this particular instance of object

For ex

SomeClas{
String placeText;

void SomeClas(String placeText){
// In constructor
// if you want to add the value in parameter of the constructor to the
String member of class then :-

this.placeText = placeText;
}


}

On Sun, May 15, 2011 at 4:03 PM, tyliong <tyli...@gmail.com> wrote:

> 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to