Detecting Actionbar Home button press event

You can use this method to trigger something when the home or "up/back" button in the actionbar is pressed. For example, save what the user is currently doing or writing. You can listen for the Home button pressed event in the optionsItemsSelected method: @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case android.R.id.home: { doSomething(); return true; } } return super.onOptionsItemSelected(item); } Returning true after executing your method, "consumes" the event, so it does not propagate further.

» Read more

How to use the menubutton in HTC One x

The HTC One X is a great and powerful Android device. However, it lacks the usual and much used menubutton that is found in Android. The menubutton is no longer a requirement on an Android device, but leaving it out can be a pain sometimes, especially if you are using applications that don’t render a soft menubutton for devices that lack a physical one. This post is to show people how to enable a menubutton on the HTC One

» Read more

The easiest way to create nice icons for Android apps

In this article I will show you a very easy way to create nice looking icon drawables you can use in your Android applications. Using this method we can easily skip through the difficult and time-consuming parts of creating icons. Yes, I know this method does not work for everyone, some Android developers have their own designer and so on, but for a small and simple app, this will definateley do! The problem Creating icons for Android apps may sound

» Read more