Intent nnn = new Intent(Hello.this, NewActivity.class); startActivity(nnn); finish();
This will start a new action and then close the current activity forever , right?
Yes. the end must cease action. OnDestroy () happens when it is called.
http://developer.android.com/reference/android/app/Activity.html#finish%28%29
Yes, Calling finish () should stop your current activity and start a new activity.
Source: https://habr.com/ru/post/1301437/More articles:How to program smooth movement with an accelerometer, like a maze game on iPhone OS? - mathNHibernate takes a long time to run a query - nhibernateConfigure related datagridview - c #How to start a project with command line arguments (switches) after creation in Monodevelop? - c #How to build a timer with a very low resolution? - c #What causes these SQL casting errors on my ASP.NET MVC / AJAX site? [Problem with video display] - c #Extracting "parts" of a hexadecimal number - c ++XML serialization XML, Missing fields in a file - javaUppercase Regex decomposition - pythonHow can we disconnect all active users in SQL Server 2005 Express using sql - sql-serverAll Articles