In my I have a set of variables that are used in almost 90% of the code. To solve this, I'm passing it through activities using an intent and putting it as extra:
intent = new Intent(getApplicationContext(), nextActivity.class);
intent.putExtra("token",getIntent().getExtras().getString("token"));
startActivity(intent);
The problem is: since it is a bunch of variables the code sometimes get a little bit messy and I need to write the same code lines multiple times, which seems stupid.
So, my question is if there are another ways of doing that such as global variable that can be read by all activities (which also look like a dirty solution).
Thank you, Pedro.