Grokking Android

Getting Down to the Nitty Gritty of Android Development

Selecting Items of a RecyclerView using StateListDrawables

By 12 Comments

Last week, after I published my introduction to RecyclerView Paul Betts asked on Twitter whether ItemDecorators are useful for displaying the selection state of items. Well, I think using them for selection is not the right way to go. Instead, I think that you should stick with StateListDrawables and the activated state. The use case […]  Continue Reading  “Selecting Items of a RecyclerView using StateListDrawables”

A First Glance at Android’s RecyclerView

By 41 Comments

At this year’s Google I/O, Google released a preview to the upcoming Android version. The so called L Developer Preview. This is a very big improvement over previous releases and I really love that Google is doing this. I think we all benefit by this decision. As developers and as consumers alike! Part of this […]  Continue Reading  “A First Glance at Android’s RecyclerView”

About Cyril Mottier’s “Shaping the Future of Android With Dart” – Some Additional Thoughts

By 6 Comments

This post is inspired by Cyril Mottier’s post about Dart for Android. If you haven’t read it already, please read it first. Mostly I think Cyril’s arguments are valid. I wouldn’t object to another language besides Java. Especially since the ability to use the new features of Java 8 might still be far away on […]  Continue Reading  “About Cyril Mottier’s “Shaping the Future of Android With Dart” – Some Additional Thoughts”

Stupid mistakes devs make, part I: Taking app messages at face value

By 2 Comments

This is a new series about programming blunders I make. Stuff that keeps me looking for solutions in all the wrong places while the answer most often is glaringly simple. If only I knew that right away! I am sorry for the generalization in the headline – of course it’s only me doing stupid stuff […]  Continue Reading  “Stupid mistakes devs make, part I: Taking app messages at face value”

An XMPP Server for Google Cloud Messaging

By 69 Comments

In this post I am going to write about the server-side of upstream messages with Google Cloud Messaging. This is the second part of my three-part series on this topic. If you haven’t read the first part about the flow of events and the Android implementation of upstream messaging, please read that one first. The […]  Continue Reading  “An XMPP Server for Google Cloud Messaging”

Upstream Messages With Google Cloud Messaging

By 42 Comments

Google announced a new messaging model with Google Cloud Messaging on last years Google IO. This model allows for upstream messaging and for user specific notifications. This post is the first in a three-part series in which I am going to look into both these changes and to show you how to use them. I […]  Continue Reading  “Upstream Messages With Google Cloud Messaging”

Chrome-Apps on mobile devices – a good idea?

By 1 Comment

Google announced a new set of tools this week to help developers publish their Chrome apps on iOS and Android. That’s the next logical step by Google to win over more developers for Chrome apps. In September Google already announced that from then on developers could publish their Chrome apps as offline apps, allowing users […]  Continue Reading  “Chrome-Apps on mobile devices – a good idea?”

FirefoxOS – my Initial Impression

By 4 Comments

Quite a while ago I ordered a Peak+ FirefoxOS phone at geeksphone.com. Alas after some delay it finally was cancelled – so I settled for the smaller version, the normal Peak. About a week or two ago it finally was delivered. After some very short initial testing I had more pressing things to do. But […]  Continue Reading  “FirefoxOS – my Initial Impression”

Migrating from ActionBarSherlock to ActionBarCompat

By 18 Comments

In July 2013 Google announced ActionBarCompat as part of its support library package. This library makes it easy to use the Action Bar that have to support older devices. Many have waited for this to happen ever since the Action Bar was introduced with Honeycomb. I, though, didn’t expect that to happen. After all the […]  Continue Reading  “Migrating from ActionBarSherlock to ActionBarCompat”

ActionViews Sample App is on Bitbucket

By 3 Comments

The sample app for my post about ActionViews is on Bitbucket. Besides Actionviews it serves also as the sample app for how to add ActionBarSherlock to projects, and for adding action items from within fragments. Here’s a screenshot of the demo: I plan on generating the scaffold for my demo apps so that I only […]  Continue Reading  “ActionViews Sample App is on Bitbucket”