Question: I have a few activities:

* Splash screen
* Login
* Registration
* Dashboard

If the user has never logged in, it will go like this:

> 
> Splash screen > Login > Registration > Dashboard
> 
> 
> 

When I `back` from the Dashboard, it should exit the app, skipping through the other activities. 

`noHistory` on the Login page doesn't work here because sometimes the user will `back` from Registration.

If the user has previously logged on, it should go like this:

> 
> Splash screen > Dashboard
> 
> 
> 

If the user logs out, perhaps to use another account, then it should go:

> 
> Dashboard > Login > Dashboard
> 
> 
> 

But if the user goes `back` from the new Dashboard, it shouldn't enter the previous account's Dashboard.

Aside from that, my app contains multiple modules, some of which don't have access to other modules, so a solution that can work between modules would be helpful.

I have tried a mix of `finish()` and `startActivityForResult()` and trying to check where the activities return from but it felt very hacky, time-consuming, and it messes up on new use cases. Are there better ways?

Answer: 
try to use utf8 character set - 

```
        Charset utf8 = Charset.forName("UTF-8");
        Charset def = Charset.defaultCharset();

        String charToPrint = "u0905";

        byte[] bytes = charToPrint.getBytes("UTF-8");
        String message = new String(bytes , def.name());

        PrintStream printStream = new PrintStream(System.out, true, utf8.name());
        printStream.println(message); // should print your character

```
Unicode is a unique code which is used to print any character or symbol.

You can use unicode from --> <https://unicode-table.com/en/>

Below is an example for printing a symbol in Java.

```
        package Basics;

        /**
         *
         * @author shelc
         */
        public class StringUnicode {

            public static void main(String[] args) {

                String var1 = "Cyntia";
                String var2 = new String(" is my daughter!");

                System.out.println(var1 + " \u263A" + var2);

                //printing heart using unicode
                System.out.println("Hello World \u2665");

            }

        }

    ******************************************************************
    OUTPUT-->

    Cyntia ☺ is my daughter!
    Hello World ♥

```