Starting up Google’s Android Studio for the first time can be very intimidating. I’m used to other IDEs like VB6, .NET , MS SQL ect ect. When I first looked at the Android Studio IDE it was a bit frustrating because I could not make out what is where and what goes on. I have to admit at first I was a bit too lazy to go through the whole learning curve but eventually I had to and I figured it out.
I hope that this basic guide will cut out most of the learning curve and get you right down to the Coding part.
The IDE and App project files in a nutshell
I created notations on each of the most important files and also ordered them in order of importance.
From the above image you can see there are 4 files.
- Java code – java\MainActivity.java, this is where you will programmatically tell the app what to do
- Screen layout – res\layout MainActivity.xml, The screen layout is based on an XML file using tags, very much the same as HTML where you layout images and text based on <tag property=”main_property”>Something here</tag>
- Properties of screen Objects/Elements – values\strings.xml, This is where you will give names to all objects on the screens. (All screens from res\layout
will get their names from strings.xml)
- mainfests\Androidmainfest.xml – Where you specify letting your project know of all available screens.
For my own reference I went as far as creating a project flow of the above.
Google has two very good tutorials for the above.
These two tutorials were very well thought out. There are parts where you get an error if you try to run your app. But if you stick to the tutorial and read properly they inform you of the error and why you are getting it. Just saying if you try it out and get undesired results be patient, don’t jump the gun and read carefully.
I included this working project below.
57 total views, 1 views today