Archive | August 2013

XML in Android Development

In Android Development, as I have already said, you use two languages (mostly), Java and XML. Java is used to make things happen while XML lays everything out.

Its a bit of a parallel to web design, HTML and CSS lays everything out and Javascript tells everyone what to do. Here XML lays everything out Java tells everyone what to do.

XML looks like HTML at first sight but then when you notice that there’s no HTML tag you start to get worried. XML and HTML work in tags:

“html’   “/html’                  (replace the ” with < and ‘ with >)

The first one opens the tag, the second one closes it.

In Android, XML lays out two different types of things: 1. The layout of each screen (Activity) 2. The layout of the app itself in the AndroidManifest.xml.

The layout of each screen starts with your common <?xml> tag and then after that the tags are used as parents and children. The “LinearLayout” tag might come first (the parent) and then inside it would be its children, say an “EditText” tag (a text box) or a “Button”. Then because it is XML, you can add attributes which go inside the tag. These will describe what the object will look like:    android:gravity=”center”   would make it in the middle of the screen.

The AndroidManifest.xml is something slightly different. This states all of the Activities in the app and the “intents”. Intents tell the user before they install the app that it will use certain permissions (maybe accessing the internet).

I hope this tells you something new!



Android Development

I have recently begun learning how to make Android apps. I have been using a set of tutorials made by mybringback (

I have progressed through 12 of these tutorials so far and I have made a splash screen and a main page. He’s very good at explaining and he’s made Java and XML for Android a lot easier than a book in my opinion.

There are 40 tutorials in total and I will go through them all.

I could have just learned Java and then Android but it would take longer to get to my goal, making a solid Android app which I can run on my phone, because Java is designed for programs and I would have to learn all of the “imports” for GUI on a computer rather than the “imports” for the Android OS.

From time to time I might post details of how I’m getting on.

EDIT: Just if you were wondering, I’m using the Android Development Bundle from the official Android page. I comes with the SDK, an emulator and the Android Developer Tools which is just Eclipse with lots of plugins pre-installed.



You probably haven’t noticed but this is the same theme as my old blog, Skeptical, except the background colour is different (from blue to green). I chose green because it reminds me of electronic circuits! (I don’t even know if that’s a good reason)

EDIT: I don’t like green any more. Blue is officially better.



Hello and welcome to my blog!

I decided to make a new blog because I had another one which had a title that didn’t suit what I really wanted to blog about. You can check out my other blog here.

I’m going to be blogging about a couple of things that I generally like: technology (anything from phones to operating systems to gadgets), science and photography.

I don’t really want to tell you that I’m going to write at regular intervals because I’ve found out that that never works. I’m going to try to write one post every week but if this is too little I might change it. I hope you enjoy it!

EDIT: By the way, I think I’ll probably copy this to my about page.


Janet's Writing Blog

I write southern historical fiction. The novel I'm writing is set in the Carolinas in the 1760s. I blog about my journey as a writer and a reader. Come along for the ride!

The Knightly Reader

Always honored to read and review. Especially at night.


Rock It!

Reymon de Real Photography

Amateur photography by a professional Physical Therapist!