How to Declare an Intent object

Intent() was added in API Level 1

1. In the MainActivity.java file, and add the below import to the import section.

import android.content.Intent;

2. Add this line below to the onCreate method. This will create a new Intent named myIntent.

Intent myIntent;

3. Compile and run!

Next Recommended Article: How to Set an Intent to Display the Android Device Location Settings Page

Resources:
http://developer.android.com/reference/android/content/Intent.html#Intent()
developer.android.com/training/sharing/send.html