Posts

Showing posts with the label Ironing Computer

First revision

Image
So far the app is very basic. It has a main page from where you can start your ironing or view the results. It just times each of your shirts and stores the result in seconds in a SQLite database. This is the first database access stuff that I have done. It is pretty straightforward. I used the first of the Notepad tutorials as a guide. This is the ironing page. I used a Chronometer to do the timing. This is a Chronometer example from the Android site, which is useful, but does not really tell you how to get the elapsed times. This is of course what you need for any stopwatch type activity. This is  how I did that.  Here is the onClick()  code from my Next Shirt button: @Override public void onClick(View v) { long elapsedMillis = SystemClock.elapsedRealtime() - mChronometer.getBase(); DataAccess data = new DataAccess(getApplicationContext()); data.open(); data.cr

The ironing computer

A computer that irons clothes? I wish. No, just one that times your efforts to remove the creases from your shirts on a weekly basis. I mentioned that I had had a go at MIDlet programming on an earlier phone. The Ironing Computer was it. It was a good way to impress my son. Or maybe that was disgust. But anyway, no harm in starting off with something stupid (and indeed easy) as the first go at an app for my HTC Desire. The idea is that the app allows you to click when you start a shirt and times the effort. If you iron 5 at a go (me most weeks) then at the end of the bout of pressing you can see what your times are like. I know this is sad, but sometimes being a nerd does not mean doing useful and clever stuff for NASA. Sometimes it is just stuff that nobody else is interested in. The MIDlet version was brutal, so I should be able to do a bit better on Android. Application layout It's going to have a welcome screen which will contain the menu buttons. Start ironing and view