L
L
Lev Korasikovixh2017-05-25 17:13:38
Java
Lev Korasikovixh, 2017-05-25 17:13:38

How to switch from a window to another activity?

I need to click on a button from a window to another activity, I tried using Intent - it doesn't work (it says that it can't find the class).

.setNeutralButton("Изменить", new DialogInterface.OnClickListener(){
@Override
public void onClick(DialogInterface dialog, int which){
Intent intent = new Intent(MainActivity.this, RemakeItem.class)
startActivity(intent);
)

Tell me how to implement the transition to another activity.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Zagaevsky, 2017-05-25
@zagayevskiy

What is a RemakeItem? There you need to specify the class of the activity you are switching to.

I
itdroid, 2017-05-25
@itdroid

Hey!
In your case RemakeItem should be inherited from Activity or its children (extends Activity). Also make sure to add this RemakeItem to the Application Manifest.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question