The statement that follows the android startactivity will be executed. If so, how to prevent it from being executed?

clipboard.png
if you decide that you are not logged in in the first red box, you will startactivity directly to the login page, but the following statements (the second red box) are still executed, so how to prevent it from executing

Feb.28,2021

IF ELSE, but are you sure you don't even implement the super.onCreate method?


isLogin adds the return value, and the jump operation is performed here. After receiving the return value, it is decided whether to jump or not according to the judgment result.
pseudo code:

boolean hasLogin = super.isLogin();
if(!hasLogin){
    //
    startActivity(LoginActivity);
    return;
}

//TODO:
...
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea6b6c-47bb3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea6b6c-47bb3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?