When I add the line "import android.content. *", it turns gray. Without it I can not open another ativity.
I tried to create a new project, but it still has the same problem. Does anyone know what it can be?
When I add the line "import android.content. *", it turns gray. Without it I can not open another ativity.
I tried to create a new project, but it still has the same problem. Does anyone know what it can be?
Are you using Android Studio? If it is, it leaves the gray line because you have not yet used the Intent
class in your code, leave import
as is and try to write your code normally. If you make a mistake, please report back here so we can help you.