android: how do i save and load and int value using internal storage -
i'm looking way save , load data in android, i'm using eclipse & not want use sharedpreferences @ all, please not suggest that
save() think i've figured out , have done this:
int blankval = 1; int targetval = 0; fileoutputstream fou = openfileoutput("data.gds", mode_private); fou.write(blankval); fou.write(targetval); fou.close();
while load() have no idea how do, i've tried many things , make app crash upon executing
i want load each val 2 ints (blankval & targetval) if do:
blankval = 5; targetval = 7; load();
load set values 0 & 1
sharedpreferences choice, if wanna avoid why not go sqlite database provided android.
Comments
Post a Comment