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

 

 

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.