Android Development 18

Android Fragment TutorialWelcome 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 [googleplusone]

Code from the Video

strings.xml

activity_census_app.xml

fragment_contact.xml

Contact.java

ContactFragment.java

CensusApp.java

31 thoughts on “Android Development 18”

  1. Hey Derek!

    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??

    Again, Thanks a Lot for these amazing video posts. Take care!

    Rex David

    1. Thank you 🙂 I’m glad you are enjoying them. Android is awesome!

      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

      I hope that helps 🙂

  2. Sorry to bother you, but my question is irrelevant to this video. I’m wondering if you can show me how to move an object in a doubly linked list to the front/end. Thanks!

  3. Hi, again my question is irrelevant to this video. I’m wondering if you can show me how to write a class for converting infix to postfix. Thanks!

      1. 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!

        1. Nvm, I just found out all I have to do is type “Character” instead of “char” in the . Thanks for your help again!

        1. 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!

  4. Respected Derek,

    Your Videos are Awesome Excellent! I am having Problem with the installation of Eclipse. I am getting the following Error while starting a New project. Can you please help me out

    Your tools installation appears to be out of date (or not yet installed)

    The wizard depends on templates distributed with the android sdk tools

    Here is the image for the Error

    http://screencast.com/t/MedK4C30crvW

    Please help to solve this Error

    Waiting For your reply

    Thanking you

    Manish

  5. 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.

    (I know this sounds stupid)
    Thanks,Waiting for your reply.

    1. Thank you 🙂 It is now best to skip the install videos at the beginning and instead watch my new ADT installation video.

      Then decide if you want to start off making Android apps in an easier, but some what limiting way with my App Inventor video tutorial.

      If you want to make complex Android apps right now you’ll need to know Java first. Here is a Java tutorial (Parts 1 – 18, minus 8 and 10 is enough). Then you’ll need the Android video tutorial.

      i hope that helps 🙂

  6. 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…

    PS: Sorry my typping english it is not my main language…

  7. So, you mean to say the Android videos(1-26) with your Java tutorial is more than enough?

    (I really appreciate your time for me,thanks a lot Derek Sir!)

  8. Hello Derek
    Wonderful and very useful tutorials.

    Can you provide links to download the source code? for this series?

    Thanks

  9. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *