How to do this?
Tried to do with the help of Intent, but gives an error saying that it is not used here. What do you advise?
It can not be this ... Most likely you are SurfaceView
something and trying to take Context
simple caste from SurfaceView
(as from Activiti). It is necessary to do this:
Context context = getContext(); Intent intent = new Intent(context, MyActivity.class); //а не new Intent(this, MyActivity.class) context.startActivity(intent);
Source: https://ru.stackoverflow.com/questions/77404/
All Articles