Josias Sena Posts

02/11/2020

5 min read TL;DR – For an application that switches between front and back cameras, the recommendation is to switch between the first rear camera and the first front camera in the list of supported camera devices. https://developer.android.com/reference/android/hardware/camera2/CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_LOGICAL_MULTI_CAMERA For quite some time we had a bug in our application where some devices recorded…

12/26/2019

2 min read A simple GitHub plugin that allows you to create Gists, and also view your Gists from within your IntelliJ IDE. I create Gists all the time during development, it is my way of documenting things I know I will repeat and forget how to do. It also helps when writing…

11/13/2019

3 min read Recently my team and I worked on implementing WebSockets (known as subscriptions in GraphQL), to allow users to talk to each other in real-time. During this time, we saw that the documentation to this using the Apollo client for Android was pretty bad! So in this post, I will be…

03/17/2019

3 min read Sealed classes are used for representing restricted class hierarchies, when a value can have one of the types from a limited set, but cannot have any other type. They are, in a sense, an extension of enum classes: the set of values for an enum type is also restricted, but…

01/02/2018

6 min read In a real project, most android applications make network requests, and we should be testing these network requests. Initially I started with my network request testing with MockWebServer but ended up using RESTMock instead, due to its useful additional features and simplicity. I really enjoyed using, and it made a lot…