I created an object of the Intent class called receiverIntent, to receive a variable from the previous class:
Intent receiverIntent = getIntent();
Then I created a variable called completeName, to receive a variable called "name", through an Intent:
String completeName = receiverIntent.getStringExtra("name");
But I want to send this completeName variable to another class without needing to use Intent.
For that I tried using public static. But error happens.
It Displays the following error in the receiverIntent object:
"Non-static field receiverIntent cannot be referenced from a static context": https://uploaddeimagens.com.br/imagens/UHWNTaY
Please, how can I make the completeName variable as being public and static so that another class can recognize this variable called completeName without an error?