Android Studio / Android App

So I’ve had a quick play with Xcode and Swift on the Mac, and that got me thinking about Android. Android apps are built more on Java rather than C, and I’ve dabbled with Java in the past so lets see what I can do.

 

android_studio_1

I downloaded Android Studio 3 from https://developer.android.com/ and installed it on my Mac. I fired up an ran the studio with the default settings, creating a “test” application.

android_studio_2.png

android_studio_3.png

On my Mac (a basic MacBook from 2016) the app creation process took a few minutes.

android_studio_4.png

The default settings include a quick “Hello World” application and Android Studio (just like Xcode) allows you to test an app on a virtual / simulated device – in my case a virtual Pixel 2.

Screen Shot 2018-04-09 at 20.46.20.png

After a bit of investigation I knocked up a small app that displays geektechstuff.com:

geektechstuff.com_android.png

The app is made up of 3 libraries:

  • activity_main.xml
  • AndroidManifest.xml
  • MainActivity.java

The 2 .xml files are eXtensible Markup Language files, and the .java file is a Java file.

Screen Shot 2018-04-11 at 19.49.35Screen Shot 2018-04-11 at 19.49.24Screen Shot 2018-04-11 at 19.49.16

 

 

One response to “Android Studio / Android App”

  1. Java Basics / Hello World In Java (Java) – Geek Tech Stuff Avatar

    […] an introduction to Java course via MadLab, and other than dipping into Java whilst looking at Android development I have not really looked at the Java language. However in recent times I’ve been dabbling […]

    Like

Welcome to GeekTechStuff

my home away from home and where I will be sharing my adventures in the world of technology and all things geek.

The technology subjects have varied over the years from Python code to handle ciphers and Pig Latin, to IoT sensors in Azure and Python handling Bluetooth, to Ansible and Terraform and material around DevOps.

Let’s connect