# Getting error in INTENT(A straight horizontal line on intent word).Trying to do "jump to next activity program"

**URL:** <https://discuss.kotlinlang.org/t/getting-error-in-intent-a-straight-horizontal-line-on-intent-word-trying-to-do-jump-to-next-activity-program/6786>\
**Category:** Android\
**Created:** [February 26, 2018, 11:01am UTC](https://discuss.kotlinlang.org/t/getting-error-in-intent-a-straight-horizontal-line-on-intent-word-trying-to-do-jump-to-next-activity-program/6786 "2018-02-26T11:01:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mailalcon](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@mailalcon](https://discuss.kotlinlang.org/u/mailalcon)\
**Post date:** [February 26, 2018, 11:01am UTC](https://discuss.kotlinlang.org/t/getting-error-in-intent-a-straight-horizontal-line-on-intent-word-trying-to-do-jump-to-next-activity-program/6786/1 "2018-02-26T11:01:35Z")

</div>

![Screenshot%20from%202018-02-26%2016-22-20%20-%203907015](https://us1.discourse-cdn.com/flex019/uploads/kotlinlang/original/2X/e/e52299f11e64f8eeb10d41e092f85fe6bc3da2d6.png)

---

<div class="post-metadata">

**Author:** ![SackCastellon](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/sackcastellon/32/4553_2.png) [@SackCastellon](https://discuss.kotlinlang.org/u/SackCastellon)\
**Post date:** [February 26, 2018, 2:00pm UTC](https://discuss.kotlinlang.org/t/getting-error-in-intent-a-straight-horizontal-line-on-intent-word-trying-to-do-jump-to-next-activity-program/6786/2 "2018-02-26T14:00:31Z")

</div>

It means that the `Contract.Intents` class is deprecated.

Also, Android Studio is suggesting all the types that _match_ the name of the variable.

In this case the name is `intent` so Android Studio suggests as a type all the classes that contain `Intent` in the name. It’s up to you to decide the correct one or let kotlin infer it by specifying the variable initialization.
