Grokking Android

Getting Down to the Nitty Gritty of Android Development

Those “mobile apps are doomed” headlines? They are wrong!

By

So lately there are a lot of headlines appearing that say “Businesses Moving To Chatbots, AI; Away From Mobile Apps”, “The Rise of Chatbots – Why they’ll replace All Your Apps!” or “How Bots Will Completely Kill Websites and Mobile Apps”. First of all: Look at where those headlines appear. Some of these websites – […]  Continue Reading  “Those “mobile apps are doomed” headlines? They are wrong!”

Using the Actions SDK to Develop for the Google Assistant

By

In today’s post I’m going to show how to develop a simple app for the Google Assistant. For developing this app, I will be using the Actions SDK. My next post will use Dialogflow (formerly api.ai) instead. After reading both posts you hopefully will know enough to decide which approach is better suited for you. […]  Continue Reading  “Using the Actions SDK to Develop for the Google Assistant”

A Primer on Cloud Functions for Firebase

By

Since I am going to use Cloud Functions For Firebase a bit more in coming posts on this blog, I am going to give a very brief overview of how you can use and test them. What are Cloud Functions for Firebase Cloud Functions is a node.js based offering where you can expose stateless services. […]  Continue Reading  “A Primer on Cloud Functions for Firebase”

Quick Intro Into Actions on Google

By

Google Home will finally be available in Germany on August, 8th and in France this week. I’m not aware of more announcements for other countries, but I hope and assume that availability will increase to many more countries as soon as possible.1) For me, though, getting my AIY kit was the day, I started getting […]  Continue Reading  “Quick Intro Into Actions on Google”

Android Things: Remote Controlled Car – What’s Coming Up

By

Being an Android Developer, Google’s announcement of Android Things immediately piqued my interest. As all the others I started out with buying one of the developer kits and then making some lights blink. Nice. But, well, if I have to be honest with myself, that was fun but actually of only limited use 🙂  Then […]  Continue Reading  “Android Things: Remote Controlled Car – What’s Coming Up”

Android’s ConstraintLayout: Align One View’s Edge to Another View’s Center

By

As you can see from the following excerpt of ConstraintLayout's supported attributes, there is no layout_constraintStart_toCenterX attribute. Thus you cannot directly align the left edge of one view to the center of another view. But ConstraintLayout is flexible enough to get your view aligned to the center of another view without such an attribute. Even […]  Continue Reading  “Android’s ConstraintLayout: Align One View’s Edge to Another View’s Center”

Some Thoughts on Android’s new ConstraintLayout and Android Studio’s new Design Editor

By

At this year’s IO Google introduced a new layout – the ConstraintLayout – and also presented it’s totally revamped layout editor. I am not going into how to use the layout. Google itself has done a good job in explaining it with its code lab “Using ConstraintLayout to design your views”. In this post I […]  Continue Reading  “Some Thoughts on Android’s new ConstraintLayout and Android Studio’s new Design Editor”

RxJava’s Side Effect Methods

By

RxJava’s Observable class has plenty of methods that can be used to transform the stream of emitted items to the kind of data that you need. Those methods are at the very core of RxJava and form a big part of it’s attraction. But there are other methods, that do not change the stream of […]  Continue Reading  “RxJava’s Side Effect Methods”

Why use Observable.create() and not just inherit from Observable?

By

When starting to use RxJava you have to create Observables. They are at the very core of RxJava. But how to do so? A look at the Observable class might make you dizzy. Looking at the source even more so. Not only does this beast consist of nearly 10.000 lines (though, 7600 lines of that […]  Continue Reading  “Why use Observable.create() and not just inherit from Observable?”

Selecting Items of a RecyclerView using StateListDrawables

By

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”