Welcome to part 18 of my Android Development Tutorial. Over the course of the next few tutorials I will focus on a bunch of new topics as well as provide a review of topics people are struggling with.

This tutorial covers how to create custom icons for our app. We then build an app based around the use of fragments. We will be building an app that a Census taker would use to gather information on people. The tutorial starts slow, but it will build quickly. All of the code can be found below.

If you like videos like this it helps to tell Google+ with a click here

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<EditText
android:id="@+id/contactNameEditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:hint="@string/contact_name_hint"
android:inputType="textPersonName" >
<requestFocus />
</EditText>
</LinearLayout>
<!--
A Fragment is sort of a mini Activity which you can add
or remove from another Activity.
You can use them to create reusable pieces you can add
to your interface.
They are often used so that depending on your screen size
you can add more or less fragments
-->

Your vidoes are just awsome! after watching them, I’m actually thinking of taking up Android Development as a full time job.

Got a question- Is there any way I can hard code a Json/Rest reponse in an android project. The reason I want to do this is because the Webservices are not ready yet and I want to make a Demo app which uses values from a Json object returned on a GET Http response. So I was thinking, like to create a class which returns Json Object with bunch of mock values. Is it possible? Anyway you can show a simple example of it??

You can do what you need to do quite easily. You just need to get some json and in the MainActivity where the StringBuilder gets the data just save you JSON in the StringBuilder. I’m referring to line 88 in MainActivity.java

This is a very clear algorithm for the converter and is very helpful! However, while writing my actual code, I have got a problem about my own stack (can’t use built-in stack in java). The operator that is scanned from a String (i.e, ‘+’ in the String ‘a+b’) has a type of ‘char’, how do I put it into my stack? I’m kinda a beginner here, sorry about any of the incorrect terms. Thanks for your help!

Nvm, figured it out! But I have a new problem now. How do I add a “pop-out” item from the stack to my postfix String? I typed “postfix += stack.pop();” in my code, but it didn’t add the “pop-out” item to the postfix string. Thanks!

Hey Derek, I’ve been searching for Android tutorials from scratch(basic) to professional on Youtube and found out your channel as the BEST. Can you please help me from which video i should start with and which to end.

Hi, Derek…
I’m brazilian and I found yours site digging on the internet so I just wanna say: THANK YOU! You helped me a lot on a school project keep going man I assign your channel on Youtube now I have to see the others videos and learn more about Android…

These videos are base of my app i am trying to complete. one thing i would like to request is that before you start writing code in videos if you can explain how many files will be in app and what purpose they will server. a slide that explain that will ge good enough for me to easily understand how many files i need in my app and for what purpose. It is already explained but really a slide explaining that will be great help. Thank you helping us to learn android.