Hi everyone.
I'm after a little help to get me started on an app I'm writing. I've done some Java and c# coding in the past but I've not done much for a good number of years. Apologies, therefore, if I get some of my terms wrong!
I'm writing an app that only I will use, so I suspect there's a lot of stuff I won't need to worry about.
I've got the bare bones of the app working (a couple of different screens and some very basic functions). However I've got a bit stuck on the next part, so it's time to ask for help!
I want to do the following:
1. Deploy several text files to the SD card as part of installing the app. (This is to allow me to overwrite the files once I start using the app, my way of doing some updates).
2. On one screen, choose one of the files and load the contents into an array (or something array-like, I'm aware there might be better constructs to use).
3. On various other screens, access the contents of that array.
Currently I've got the following classes:
- HelloAndroid.java class (yes, it's still called that!) which contains the OnCreate and a copule of on-click methods.
- Global.java, extends Application which contains some Static variables so I can access them in the various on-click methods.
Like I say, my Java is really rusty and I've hit a bit of a dead end on what feels like it should be a fairly simple task.
I'm using Eclipse, and I'd really appreciate any help that anyone could give. Ideally in fairly basic terms!
I'm after a little help to get me started on an app I'm writing. I've done some Java and c# coding in the past but I've not done much for a good number of years. Apologies, therefore, if I get some of my terms wrong!
I'm writing an app that only I will use, so I suspect there's a lot of stuff I won't need to worry about.
I've got the bare bones of the app working (a couple of different screens and some very basic functions). However I've got a bit stuck on the next part, so it's time to ask for help!
I want to do the following:
1. Deploy several text files to the SD card as part of installing the app. (This is to allow me to overwrite the files once I start using the app, my way of doing some updates).
2. On one screen, choose one of the files and load the contents into an array (or something array-like, I'm aware there might be better constructs to use).
3. On various other screens, access the contents of that array.
Currently I've got the following classes:
- HelloAndroid.java class (yes, it's still called that!) which contains the OnCreate and a copule of on-click methods.
- Global.java, extends Application which contains some Static variables so I can access them in the various on-click methods.
Like I say, my Java is really rusty and I've hit a bit of a dead end on what feels like it should be a fairly simple task.
I'm using Eclipse, and I'd really appreciate any help that anyone could give. Ideally in fairly basic terms!