Programming   Internet History   Theme   Everything Else  
Jake Lee on Software
AboutSearch
  • Preview image of Tutorials overview for Retrofit

    Tutorials overview for Retrofit

    Jun 5, 2019 • 4 mins • API, Retrofit

    Whilst I’ve used Retrofit before, I’d always just used the very basics and not thought much about it. Hey, it’s just the API interface, who cares right? I decided to check out a few implementations of the basics, making a repo along the way. This GitHub repo is available here, and contains completed versions of most of the tutorials listed here.

  • Preview image of Tutorials overview for Dagger 2

    Tutorials overview for Dagger 2

    Jun 4, 2019 • 4 mins • Dagger2, DependencyInjection, DI, Tutorial

    Whilst I’ve used the dependency injector Dagger 2 a few times before, my knowledge was very much gained “in the field”, i.e. from seeing it in the wild. I recently decided to learn how to use it properly, so worked through a few of the more popular tutorials inside a repo. This GitHub repo is available here, and contains completed versions of all of the tutorials listed here.

  • Preview image of How to use 9-patch images for resizable backgrounds in Android

    How to use 9-patch images for resizable backgrounds in Android

    Jun 3, 2019 • 6 mins • 9patch, Background, Drawable

    In Android, almost all views can have a background colour or image set. Whilst a colour can be any size / shape, as can a vector drawable, a bitmap drawable cannot. For example, trying to make a 100px wide & 100px tall image 500px wide and 50px tall would result in a blurry, and horribly distorted background.

  • Preview image of Using Dyno to create a Discord command that displays a message and DMs a specified user

    Using Dyno to create a Discord command that displays a message and DMs a specified user

    May 20, 2019 • 4 mins • Command, Discord, Dyno

    Dyno is an extremely powerful bot for Discord, with a staggering set of features, split into modules. One of the easiest to use is the “Custom Command” module, allowing actions to be taken in response to messages in chat. Setting up Dyno to a server you have “Manage server” permissions on is very straightforward, just click “Add to server” on Dyno.gg, then follow the instructions.

  • Preview image of How to disable your app's preview image in Android's task / app switcher

    How to disable your app's preview image in Android's task / app switcher

    May 13, 2019 • 2 mins • Preview, TaskSwitcher

    The easiest way to disable your app’s preview when your app is shown in task switcher is FLAG_SECURE.

  • Preview image of How to programmatically change your Android app icon and name

    How to programmatically change your Android app icon and name

    Apr 29, 2019 • 8 mins • Icon, Kotlin, Manifest

    In Android, your app’s icon is a crucial part of your project. It’s what grabs the user’s attention first, identifies your app amongst the sea of competitors, and is the most important piece of visual branding. However, usually this icon is defined in your manifest, then never changes except through update.

  • Preview image of Resolving crash "IllegalArgumentException x is unknown to this NavController"

    Resolving crash "IllegalArgumentException x is unknown to this NavController"

    Apr 25, 2019 • 4 mins • Androidx, Kotlin, Navigation

    Google’s AndroidX navigation libraries are undoubtedly extremely useful, however they have a few quirks. For example, the following stack trace recently started showing up in my Crashlytics crash logs:

  • Preview image of How to check if a Sony Android device has "Stamina mode" enabled

    How to check if a Sony Android device has "Stamina mode" enabled

    Apr 17, 2019 • 2 mins • Kotlin, power saving, Sony

    Whilst detecting power saving mode (at least on Lollipop+) is very easy, some manufacturers implement their own battery saving systems. One of the least standards-conforming of these is Sony’s Stamina Mode. Luckily this is easily detected, albeit in an unofficial way.

  • Preview image of How to fix NoClassDefFoundError "Failed resolution of: Lorg/apache/http/ProtocolVersion"

    How to fix NoClassDefFoundError "Failed resolution of: Lorg/apache/http/ProtocolVersion"

    Apr 9, 2019 • 2 mins • Google Maps, Google Play Services

    I recently updated an older app, and changed the target API from 27 to 28, as recommended. This app is using an older (15.x.x) version of the Google Maps library. Upon trying to actually use Google Maps, I received the following crash:

  • Preview image of Quickly setting up commit verification / signing with GitHub, GitKraken, and GPG

    Quickly setting up commit verification / signing with GitHub, GitKraken, and GPG

    Mar 20, 2019 • 4 mins • Git, GitHub, gpg

    Whilst most developers use hosted git repositories on a service like GitHub, many forget that almost none of these commits are verified. If you own a repository, you can “fake” a commit from literally any user if you know their email. If that email matches a GitHub account, their avatar will be displayed next to their name! One famous example is a fake commit by Linus Torvalds.

« Previous 1 ... 9 10 11 12 13 ... 20 Next »

Jake Lee on Software

  • [email protected]
  • JakeSteam/blog-programming
  • RSS Feed
  • Jake Week Lee

In-depth ad-free articles about software development, Android, and the internet

Jekyll 4.3.2, minimaJake latest.