Archive for the ‘ work ’ Category

Close / Hide the Android soft keyboard

a.k.a. “How to make that bloody keyboard go away”

The android keyboard can be a bit of a p.i.t.a. for developers who are trying to create a good user experience. Sometimes it won’t open when you would expect it to, and other times it will never dismiss without the user having to hit the back button (something which many android users wont realize). I’ve struggled often with the later situation.

Scouring the internet for advice turned up multiple solutions, and I’ve managed to figure some of my own as well. Here are the best solutions I have found.

Read more

Orientation Sensor Tips in Android

I went through some pretty frustrating times recently trying to detect the physical orientation of the mobile device in Android recently so I figure I’ll share my experience and what I learned here to hopefully prevent some pain for others out there.

Read more

Oh Google, you think you’re being all clever, don’t you?

Well, okay, I confess, this is actually pretty clever/cool.

While perusing through the Google Android documentation on the SensorManager class I noticed some interesting constants that had been tucked away inside the class.

Read more