Josias Sena Posts

04/06/2020

5 min readHello world! this post is not a tutorial of how to use MediaCodecto encode/decode, instead, it is a checklist of things to look for when the quality of the video is degraded drastically, after encoding/decoding without any clear explanation. The basics Before we get started let’s talk about what Encoding…

02/11/2020

5 min readTL;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 readA 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 readRecently 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 readSealed 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…