I assume you mean that one activity starts another using startActivity
or startActivityForResult.
- Define a String constant that will serve as the key to access data:
public static final String EXTRA_KEY = "some string value";
- In the first activity, add data to the intent:
Intent intent =
Im trying to switch content views on my application and I wanna send
over a variable along with it.
So my main class has a button and when you click it, it brings you to
a different content view (I have an intent setup) so yeah in the main
class it has a variable and I wanna bring it to the new con
2 matches
Mail list logo