OPI Blog
Learn from experts in their fields

Browsing Tags: Android

Android Development for iOS Developers
Android development has greatly improved since the early days. Maybe you tried it out when Android development was done in Eclipse, emulators were slow and buggy, and Java was the required language. Things have changed ...
OkHttp Authenticator – Selectively Reauthorizing Requests
Leveraging OkHttp3’s Authenticator API to more intelligently handle re-authorizations in a mixed-auth environment. or: The Trials and Tribulations of Mixed-Auth Under Retrofit2/OkHttp3 Occasionally, when in the process of cutting over from legacy authentication mechanisms to ...
Dec 5, 2017
Android Architecture Components
Near the start of November, the Google team finally hit the 1.0 stable release of its architecture components. Originally announced at Google IO 2017, these components were designed to allow Android developers to create maintainable ...
Jul 11, 2017
Android O – Autosizing TextViews
Introduction Android O is coming. Right now in June, we’re in Release Preview 3 with an expected final release date of Q3. My guess for the dessert name is Oreo, but I haven’t been right ...
May 17, 2017
Android GeofencingAPI
Intro The Android GeofencingApi makes it easy to define a circular virtual fence around a point on a map and monitor for transitions as the device crosses the virtual fence line. I recently built an ...
Mar 31, 2017
Nested weights are bad for performance
    You’ve almost certainly seen the lint error before “Nested weights are bad for performance.” How bad are they, though? My plan is to create a sample application with a nested view hierarchy using ...
Migrating from Cordova to React Native
Strategies, tips, and gotchas for migrating a cross-platform mobile app from Cordova to React Native Apache Cordova is a Web view centric cross-platform mobile development platform that interacts with native APIs via plugins that expose ...
Taking a Native-Centric Approach to Hybrid Mobile App Development
Over the past year, I have been exploring Cordova/PhoneGap, React Native, and NativeScript for hybrid/cross platform mobile development with JavaScript. As part of this exploration, my key question was, “Can I access the power of ...
Using Android Product Flavors to build Full and Demo Version of the app.
ProductFlavor is a very powerful feature available in the Android gradle plugin that allows us to manage different “flavors” of an application. This is useful when you want the same application but with different features ...
Building a Kiosk Application in Android 5.0 (Lollipop)
Android L introduced “Screen Pinning” API. This allows an application to temporarily restrict a user from navigating away from your activity. When Screen Pinning in enabled, it restricts a user from gaining access to notification ...