So, I have a class that draws and does all the uplift in my game, which extends SurfaceView. I want to start a new activity that shows the playerโs rating after his death. GameOver has a rating. How to do it?
Context context = getContext(); // from MySurfaceView/Activity Intent intent = new Intent(context, GameOver.class); context.startActivity(intent);
Source: https://habr.com/ru/post/1337232/More articles:Facebook / Twitter โLikeโ buttons in pure html - javascriptHow to close a connection after a .connectTCP reactor in Twisted - twistedEmbed JavaScript in a PDF using wkhtmltopdf - javascriptAndroid AudioTrack visualization from ByteStream - javaPHP: foreach array objects, how to move the internal pointer to the next? - phpHow to immediately hide the control panel on JWPlayer or FlowPlayer when starting a video - jwplayerDeploying Radiant in Heroku in 5 minutes causes a permission error in Admin - ruby-on-railsDesired loading of existing objects - ruby-on-railsHow to run a function every time a div changes its size? - javascriptGet state / province data from geonames data? - databaseAll Articles