Intent Confusion

0 Karan Narula · September 9, 2015
What is the function of "this" in:

Intent intent=new Intent(this,class.java)

Would really appreciate if someone tells me. Thank you :)

Post a Reply

Replies

Oldest  Newest  Rating
0 Bharath Reddy · September 10, 2015
Hi, 'this' refers to Activity from where you are sending the intent.
0 Karan Narula · September 11, 2015
Got it, Thanks :)
  • 1

Java / Android Development

107,179 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator