By karanar, on February 16th, 2010%
Here is the code of the accelerometer values application for Android. I did this application in a couple of hours to test the Android platform so the features are very basic. I’m currently working on a new version that will include logging of the values and a few other things.
However, here is the code of the . . . → Read More: Accelerometer Values
By karanar, on February 10th, 2010%
We can do it with initialization blocks. I find it actually a very interesting feature of java even though I would recommend to be very careful when using it. Indeed, initialization blocks might confuse people looking at your code especially if there is not only one and if it’s not placed close to the constructor.
So an . . . → Read More: How can we run code on an object instance before construction?