how to get an intent of a class in android studio code example Example: intent android Intent intent = new Intent(MainActivity.this,Activity.class);