1

I am sure this has already been answered but going through alot of the other Questions/Answers it isn't that clear to me. So I will explain what I am trying to do.

I am making a tycoon type android game that starts from a Menu Screen that goes to the Playscreen and there you have a status bar on top with Cash and Supply info, and buttons to go to a SupplyBuyScreen, UpgradeScreen, etc... I am trying to update the status bar values as things are purchased and those values have to transfer between each different activity and some will get modified and come back to the PlayScreen.

I was thinking of using SharedPreferences and am having trouble setting it up. Any pointers??

Robert H.
  • 59
  • 6

1 Answers1

0

I think to use Global Variables You can use Singleton objects or you can extend Android's Application class.

Application class reference

Sadeshkumar Periyasamy
  • 4,848
  • 1
  • 26
  • 31