Categories
Android

Android Studio 3.6 Tutorial now Live on YouTube

Create your first Android app using Android Studio 3.6 and Kotlin with my new tutorial on YouTube. The series will continue to progress over the coming months. Feedback and comments welcome. View here.

Categories
Uncategorized

Photography from February 2020 (and beyond)

I got a new camera. And a new book. But most importantly, I took a lot of photos. See below. Thanksgiving at my downtown apartment was great! I had Jordan and America, Mel and Alex, Nathan and Jonathan. For Christmas I got myself an Instant Pot and let me tell you it changed my life. […]

Categories
Uncategorized

The Iowa Caucus Mobile App Disaster

By now I assume most of us have heard about the fiasco surrounding the Iowa Caucus. For those of us now in the United States, Iowa had a caucus. No big deal, right? The problem began when they decided to pay a company $60K to build a mobile app for transmitting the caucus count. And […]

Categories
Tech

Reviewed: Pixelbook Go

In 2011 I bought a Mac Mini. I thought my world was about to change when I took it out of Apple's packaging. In 2013 I bought an Acer desktop at Fry's. It marked my dabble back into Windows. In 2014 I bought an Asus desktop with a faster processor and tons of memory. In […]

Categories
Android

Coding challenge: display a list using CardViews

Coding Challenge is a weekly quest to find the best solution to code an Android app. Read the challenge on Sunday at 9am Central and my solution will be revealed Saturday at 9am Central. Give it your best! DanielMalone.com Building an app with lists can be hard but they are an essential piece of nearly […]

Categories
Android

Create a profile layout using ConstraintLayout

For apps that integrate personal information, it's important to let the user view and edit their profile. In this tutorial, we'll create a profile screen for a given user using ConstraintLayout, Kotlin and Android Studio. Ready? Let's begin! Create a new Android Studio project, specifying Basic Activity as a project type. Next, confirm that we're […]

Categories
Android

What is a Kotlin data class?

In Java, we had to often make classes for our data models. A Kotlin equivalent would be something like this: But now in Kotlin we have data classes, like this: We can create it from MainActivity.kt with this: Accessing data is easy: No need for setFirstName, setLastName or getAge. Simply call person.firstName, person.age, etc. A […]

Categories
Android

How to get GPS coordinates

Fetching the longitude and latitude on Android devices isn't hard. In this tutorial we'll get the GPS location of our Android phone, tablet or emulator. Let's begin! This tutorial uses Kotlin, the preferred language of Google and myself. Open AndroidManifest.xml (inside the app -> manifest folder), then add the required permission for getting the location. […]

Categories
Android

How to add rounded corners to buttons

Making rounded corners to a Button widget can add a nice touch to your UI. Fortunately, rounded corners aren't that hard to make. Let's begin! Right click on the drawable folder and select New -> Drawabe resource folder. Then name the drawable image custom_rounded_corners. Write the following code into the editor, then open the Preview […]

Categories
Android

Build a RecyclerView in Kotlin

Creating a RecyclerView in Kotlin isn't that hard. With some guidance, and a little effort, you too can create a RecyclerView. In this tutorial, we'll use ConstraintLayout, Kotlin and Android Studio to build it. First, open Android Studio and create a new project. Then select the following. Then select Kotlin and androidx, then hit finish. […]