Bright Devs Blog

Android Data Binding Part 2: Observer pattern to the bone

Android Data Binding Part 2: Observer pattern to the bone

android

In the previous part I’ve described typical problems we have to face when developing applications on Android. I’ve also highlighted that some of them may be mitigated when data binding API is utilized properly. It’s time to dive into more details of how this promising API works.

Android Data Binding Part 2: Observer pattern to the bone
Android Data Binding Part 1: Why it is important

Android Data Binding Part 1: Why it is important

android

Android application code often suffers from being more verbose than it could be. As libraries such as Android Annotations and ButterKnife have shown that’s only partially due to tediousness of Java. The recently announced Android Data Binding library can remove at least part of the boilerplate code we need to write. Since I’ve always liked Presentation Model pattern (MVVM) this is very dear to my heart. However just getting rid of a tedious code is not the main reason I’m so happy to see the new API. Let’s recap on common issues developer faces on Android and then I’ll show how using mentioned patterns with new offering from Google can mitigate them.

Android Data Binding Part 1: Why it is important
Handling different user types in Android application

Handling different user types in Android application

android

In the previous post you can read how to use Session object to maintain current user information through the application lifecycle. Now we’ll explore different options of implementing varying behavior depending on user type.

Handling different user types in Android application
Maintaining current user information in Android

Maintaining current user information in Android

android

Every but trivial android application needs to maintain information about current user - regardless if he has authenticated or not. While this may sound easy there are still at least handful of ways one can do it - in this article I’m going to explore couple of them.

Maintaining current user information in Android
[CocoaHeads Tricity] Automate your iOS deployment a bit

[CocoaHeads Tricity] Automate your iOS deployment a bit

iOS CocoaHeads GYP generate-ios automation TeamCity

Here come the slides from a talk I gave at the last Cocoaheads Tricity meeting. It’s titled “Automate your iOS deployment a bit” and shows how we approach build and deployment automation at Bright Inventions. In just a few days we’re going to publish our “generate-ios” Yeoman generator on Github.

[CocoaHeads Tricity] Automate your iOS deployment a bit
iOS layouts for web developers

iOS layouts for web developers

iOS

Recently I had an opportunity to dive into an iOS development and while I enjoy it, I miss a lot of things from the web development world. I was looking for an iOS begginer guide targeted specifically to the web developers like me, but I haven't found any. This is how the idea for this series of blog posts was born.

iOS layouts for web developers
iOS layouts for web developers #5 - events handling

iOS layouts for web developers #5 - events handling

iOS

Time to finish the iOS layouts for web developers series with the post about events. Both the web and iOS employ similar ideas, but the set of events is distinct and we need to be aware there are different ways to interact with the classical web than with the mobile device.

iOS layouts for web developers #5 - events handling
Using the file resources in Android POJO unit test

Using the file resources in Android POJO unit test

android unit-testing

Since version 1.1 of Android Gradle Plugin we can run unit test on a local JVM on our development machine. In this article I'll demonstrate how to make local resources available in unit test case.

Using the file resources in Android POJO unit test
iOS layouts for web developers #4 - CSS properties replacements

iOS layouts for web developers #4 - CSS properties replacements

iOS

In the fourth post in the iOS layouts for web developers series it's time for something more lightweight. We’ll go through various visual aspects of the controls and see how we can set it up, compared to CSS.

iOS layouts for web developers #4 - CSS properties replacements
iOS layouts for web developers #3 - managing the appearance

iOS layouts for web developers #3 - managing the appearance

iOS

In the web, we've left behind the times when the view specific definitions like fonts or colors were scattered all over through the HTML structure. Now we’re looking at the iOS layouts. How do we maintain the content vs. presentation separation in iOS?

iOS layouts for web developers #3 - managing the appearance