You have created an AboutActivity class that displays details about your app. Which code snippet allows you to launch your activity?

Advertisement

  • Intent(this, AboutActivity::class).also { intent -> startService(intent) }
  • Intent(this, AboutActivity::class.java).also { intent -> startActivity(intent) }
  • Intent(this, AboutActivity::class).also { intent -> activity(intent) }
  • Intent(this, AboutActivity::class).also { intent -> startActivity(intent) } Explanation: Intent(Context packageContext, Class<?> cls) Notice: Class not KClass
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment


Share via
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend