import android.content. *

Asked

Viewed 23 times

0

When I add the line "import android.content. *", it turns gray. Without it I can’t open another activity.

I tried to create a new project, but it still has the same problem. Does anyone know what it can be?

1 answer

1

Using Android Studio? If it is, it leaves the gray line because you haven’t used the class yet Intent in your code, leave the import how you are and try to write your code normally. If you get an error report it here again so we can help you.

  • I am using Android Studio. When I write "Intent" and step the mouse on top, appears the following message "Cannot resolves simbol 'Intent'". And the line "import android.content. *" remains gray.

  • Try the following, click Build and then Rebuild Project.

  • It didn’t work. However, I created a new project, carried out all the procedures mentioned above and it worked. I will follow with this new one. I really appreciate the help. She came very fast!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.