Tag: android

  • Android Dynamic Animated SVGs (with Lottie Dynamic Properties)

    Android Dynamic Animated SVGs (with Lottie Dynamic Properties)

    Learn how to have runtime control of all parts of an animation or image, the color, opacity, scale, rotation .. any property within your SVG animation using Lottie Dynamic Properties. This tutorial is going to explain Lottie Dynamic Properties. Dynamic Properties are a way of controlling at runtime, the different parts of your animation. You…

  • OCR with Gemini LLM on Android

    OCR with Gemini LLM on Android

    This artical is a quick introduction into setting up the Gemini API client SDK on Android to perform Optical Character Recognition (OCR) on images. Let’s jump straight in: The Gemini API gives you access to the latest generative AI models from Google. Gemini is a series of multimodal generative AI models developed by Google. Gemini…

  • build.gradle.kts conversion for Android Studio Empty Activity

    build.gradle.kts conversion for Android Studio Empty Activity

    Quick blog posting showing you the build.gradle.kts version of the default build.gradle file from the “empty activity” Android Studio template. This post will go stale fast, get it whilst its hot. 🙂 The original templates come from the New Project, other templates are explained here: https://developer.android.com/studio/projects/templates Google has an explainer of converting build configuration scripts…

  • Android Job Interview – Take-Home Test Cheat Sheet

    Android Job Interview – Take-Home Test Cheat Sheet

    Learn the steps needed in a typical Android take home test. Giving you the tools and knowledge you need to ace this part of any Android interview process.

  • Proven Prepping for Easy Android Interviews in 2023

    Proven Prepping for Easy Android Interviews in 2023

    This post aims to demystify some of the steps in a typical Android interview process. We’ll discuss steps, strategies, targets and solutions. Getting you better prepared to get your next Android role. This blog is from personal experience, caveat up front that your experience could be completely different, but I’ve been through A LOT of…

  • Tame Your Gradle Dependencies just BECAUSE!

    Did you know you can specify a reason for using a certain dependency or certain version of a dependency? Yep it’s in the API here and referenced in the DOCS here. void because?(@Nullable String reason) Sets the reason why this dependency should be used. Since: 4.6 Below is a basic example of how its used:…

  • I/O 2019 Android Track Picks & Insights

    Google I/O is a wrap. The conference celebrated product and platform innovations at Google. As part of the Google Developer Expert programme a group of us travelled to I/O and enjoyed learning together, here we want to share some of our top moments and sessions from the event. This is just a snippet of what…

  • [TUT] Creating a ByteString in Android

    The protobuf library has a construct called ByteString. This is a immutable sequence of bytes, usually used to serialise a file or other piece of data. Recently when using the Google Cloud Speech to Text library I had to convert a local voice recording to this protobuf ByteString to be able to send it to…

  • Threading best practices : 3 ways on Android Things

    Working with Android Things means connecting to peripheral sensors & actuators to communicate sending or receiving commands and data. As with all Android development, you should be evaluating the impact of this and consider offloading the effort onto another thread wherever possible. So what is best practice for threading on Android Things? Like with all…

  • Battling the 65k method limit

    ### Battling the 65k method limit 2016 is the year of the method limit. Many hardened Android developer will already know this and will have been fighting the holy war for many years, but this year is when the pain, misery and violence spreads to the masses. Dalvik error: “`bash Unable to execute dex: method…

  • You have permission to crash

    ### You have permission to crash With targetting Marshmallow, 6.0, API 23, the latest version of Android, strange things can happen if you don’t get your permission flow correct. The code seems legit and yet it crashes every time. You have all the correct permissions in your AndroidManifest, you call the correct API to get…

  • Inspecting databases with Stetho

    Have you ever been writing a database backed Android application and you quickly want to look at some of your SQL stored data? Maybe wondering why your query isn’t working or seeing if the database persistence is actually working? You could use an emulator or rooted device and the DDMS tools. This way you can…

  • Q&A with Android Developer Paul Blundell

    In this post, I interviewed developer Paul Blundell to gain some insight on his experience with Android and discuss how he manages his apps. Gregory: How did you get started with Android. Why did you go with this platform rather than Ios or even hybrid? Paul: The concept of hybrid did not exist when I…

  • Developing like a pro — portrait only apps

    When writing an Android application there comes a time when the client / business utters those dreaded words. “Let’s support only portrait for phone and landscape for tablets” they might add … “_just for now_”. After all the debates and your passion to prove this is the wrong decision sometimes it just has to be…