• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Passing data with Intents

__Jon__

Newbie
Aug 16, 2010
15
0
I'm trying to pass data with my intent. I wan to pass a topscore number (int) from one activity to another.
I'm pretty sure I did it:
Code:
Intent keepscore = new Intent(this, Finished.class);
    keepscore.putExtra("SomeIntData", tally);
        startActivity(keepscore);

The Finished activity loads as I wanted, but I want to retrieve this int data, "tally". I don't know how to do it.
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones