Bright Devs Blog

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
[CocoaHeads Tricity] Do not reinvent the wheel - most popular Cocoa libraries

[CocoaHeads Tricity] Do not reinvent the wheel - most popular Cocoa libraries

iOS CocoaHeads CocoaPods

On Tuesday 31th March 2015 I gave a presentation about most popular Cocoa libraries and [CocoaPods] (http://cocoapods.org) at the local Cocoaheads Tricity group meeting, which we are now co-organizing.

[CocoaHeads Tricity] Do not reinvent the wheel - most popular Cocoa libraries
iOS layouts for web developers #2 - control positioning

iOS layouts for web developers #2 - control positioning

iOS

Continuing the series of posts that looks into the iOS world from the web developer perspective. In the second post we're discussing multiple approaches to setting up where and how the controls on iOS are displayed and how it differs from HTML document flow.

iOS layouts for web developers #2 - control positioning
Setup AppCode to start Simulator in RTL mode

Setup AppCode to start Simulator in RTL mode

iOS

How to make iOS Simulator work with Right-To-Left languages when it's started from AppCode?

Setup AppCode to start Simulator in RTL mode
iOS layouts for web developers #1 - basic building blocks

iOS layouts for web developers #1 - basic building blocks

iOS

In the first part of iOS layouts for web developers series I'll have a look at the basic building blocks of the view layer in iOS and compare it to what HTML offers. First, we need to shift our mindset a bit and accept the fact we need to give up some control over our views to the iOS.

iOS layouts for web developers #1 - basic building blocks
Anchor child element click

Anchor child element click

html javascript

I had to solve a seemingly trivial bug in an angularjs based application that turned out to be more interesting than usual.

Anchor child element click
How to avoid flickering and black screen issues when using VideoView?

How to avoid flickering and black screen issues when using VideoView?

android videoview

VideoView is the most straightforward way to show video content in layout. It took a few lines of code to setup and show for example mp4 file. It's fine when you don't care about UX too much, but when you do, things are going to be annoying.

How to avoid flickering and black screen issues when using VideoView?
Lazy Apk - a simple TeamCity artifact downloader

Lazy Apk - a simple TeamCity artifact downloader

android TeamCity

At Bright Inventions we use TeamCity as a continuous integration server. Apart from building, running tests and uploading artifacts we sometimes use it to quickly distribute an android application to clients and test team. However we found using TeamCity UI on a mobile device isn’t as pleasing as it could be. That’s why we usually recommend downloading updates through a dedicated application such as TeamCity Downloader.

Lazy Apk - a simple TeamCity artifact downloader