0

I'm building an application that calculates the fuel consumption of cars. The datas are saved in a file, and i'm planning to add support of import/export feature in the app(i often flash the phone). How can i make this ? Thank you.

androniennn
  • 3,117
  • 11
  • 50
  • 107

2 Answers2

1

Easiest would be to write the data to the sdcard since it isn't touched when you flash your phone

For sdcard io see: Writing a file to sdcard

Community
  • 1
  • 1
Fredrik Leijon
  • 2,792
  • 18
  • 20
1

Like Fredrik Leijon said write to the SDCard(it's a good link there) and correspondingly read from there to 'import' your data.

JQCorreia
  • 727
  • 6
  • 15