Not sure on the deck of cards, but store the money as a float. It is not an int. displaying it is simple as since java can make a float a string by simply adding the float to an empty string
str = "" + flt; complicated? How?
protected boolean store_cash(){
SharedPreferences settings = getSharedPreferences("GENERAL", 0);
SharedPreferences.Editor editor = settings.edit();
editor.putFloat("cash", mCash);
return editor.commit();
}
protected void load_cash(){
SharedPreferences settings = getSharedPreferences("GENERAL", 0);
mCash = settings.getFloat("cash", (float) 0.0);
}
with that it's just a matter of setting the title of the textview
protected void display_cash(){
TextView cash = (TextView ) findViewById(R.id.cash);
cash.setText( "$" + mCash); //formatting may be required.. google is your friend
}