this
refers to your current object. In your case you must have implemented the intent in an inner class ClickEvent, and thats what it points to.
Activity.this
points to the instance of the Activity you are currently in.
More Related Contents:
- Start another activity with button
- Android – Get real path of a .txt file selected from the file explorer
- Maximum length of Intent putExtra method? (Force close)
- Sending arrays with Intent.putExtra
- How do you use Intent.FLAG_ACTIVITY_CLEAR_TOP to clear the Activity Stack?
- How to escape % in String.Format?
- How to use interface to communicate between two activities
- Prevent Android activity dialog from closing on outside touch
- How do you pass a string from one activity to another? [duplicate]
- Android – Activity Constructor vs onCreate
- How to start Activity in adapter?
- Android Studio cannot resolve symbol but code executes correctly
- android.app.Application cannot be cast to android.app.Activity
- Android Center text on canvas
- How can I start a new android activity using class name in a string?
- How to resume Android Activity programmatically from background
- Curly braces in “new” expression? (e.g. “new MyClass() { … }”)
- DeadObjectException on android app
- Android Call a method from another class
- Android: Unable to find explicit activity class… startActivity from a PreferenceActivity
- How to exit an Android app programmatically?
- How to navigate from one screen to another screen
- The activity must be exported or contain an intent-filter
- Android “single top” launch mode and onNewIntent method
- Using “this” with class name
- resuming an activity from a notification
- IllegalArgumentException: Unknown URL content:// CONTENT
- Android: Navigation-Drawer on all activities
- Passing ArrayList of string arrays from one activity to another in android
- Using the camera activity in Android