Android Development Tutorial 2

Android Development Tutorial 2In this tutorial, I decided to cover all of the topics I would need, so that in every tutorial that follows I can just make apps. Don’t try to memorize everything! Here I’m just covering a bunch of things you need to be familiar with.

We’ll cover the lifecycle of an Android activity completely. We’ll then look at how to make an app support many languages. We’ll look at how to grab string resources and how to pull them into java and xml files. Finally, we’ll look at the AndroidManifest.xml file in detail.

If you like videos like this, it helps to tell Google+ with a click here [googleplusone]

Cheat Sheet From the Video

AndroidManifest.xml

62 thoughts on “Android Development Tutorial 2”

  1. Hi , Derek I hope you are doing well .
    I’d like to say thank you soo much for these great tutorials , you are just covering everything im studying right now (preparing my master degree) .
    Let me tell you something , I learnt Design pattern(and many other stuff) from you , and my collegues were astonished when i showed and started to explain to them what i’ve learnt from you . Eventually some of them asked me where i picked this up , and of course the answer is new think tank (derek banas the genius) .
    I’d like to ask you to put the source code of the apps as a zip file . This way we can easily import it into eclipse . especially that it’s not going to be only just one class or two when you are working in android .
    besides that you are a genius . keep up the hard work .

    Hats off

    1. Thank you very much for the wonderful compliment 🙂 I’m very happy that I have been able to help you. Yes, I will upload the whole package for every app I make from now on. Thank you for telling me that that would help. Everything will be 100% free to use in any way.

      Derek

      1. Derek,

        Where can I find all the source code for each of these Android tutorials? I can only find the AndroidManifest file.

  2. Hey Derek,

    Thanks a lot for these tutorials. This really helped a lot and cleared my doubts. Thanks again.

  3. Hello Derek!

    I am a beginner to Android development and a colleague of mine had suggested that I subscribe to your youtube channel. I found it very helpful. You have explained everything so well and have made it much easier to understand. Thanks a ton.

    I have also found many other useful tutorials like the Design patterns on your channel and will be going through them soon.

    I just wanted to thank you once again. You are doing a great job. Keep going. Here’s to a lot more wonderful tutorials from you. 🙂

    1. Thank you very much for taking the time to write such a nice message 🙂 I very much appreciate that. I’ll do my best to make many more tutorials.

    1. Hi Souvik, To change the language settings in Android :

      1. System Settings
      2. Look for Language & Input
      3. Click on the current language under Locale
      4. Select the new language

  4. Way to go Derek, awesome video tuts! Keep up that way.
    Many, many thanks to you. Your work really helps me a lot!

    One more time I must tell you I really appreciate what you are doing.

    1. Thank you 🙂 I’m experimenting with a new way to teach app development which is based around actually making apps. It will be a long process, but I think in the end that anyone that watches all the videos will actually be able to make most anything.

  5. It would be nice if you could (after you complete the whole android tutorial) programm an android app from scratch, i think it would be very helpful to see all the topics combined with each other

    1. I definitely plan on doing that. As I have been teaching Android I also have learned a great deal about concepts that people get confused about. I may do a reboot on the Android tutorial and as you said make a complete app that has as many features as possible.

  6. what I can say that has not been said already. You are a genuis Mr. Derek Banas. A gift to the programmer’s world.

    Most grateful I everly remain. Bravo!

    Ishiaku

  7. Hey Derek Banas,

    I have just completed watching your first Android Development Tutorial and i don’t understand the reason behind why you have to go back and forth between the different files to connect the EditText and stuff. Would you recommend me watching other tutorials or are there websites which may help me with the fundamentals? Or must i simply just watch the tutorial again until i understand what is occurring.

    Cheers

    1. I do that to try and keep everything interesting. I’m sorry if that was distracting. Rewatching may help, but I’m not so arrogant as to say that there aren’t better Android tutorials out there. Many people are making them. I wish you the best 🙂

  8. Hey Derek! I have a question about minSdkVersion. It is currently set to 19, which is the same value as in my targetSdkVersion, should I lower the minSdkVersion in order to make the app backward compatible?

    Thanks!

    1. Also, my AndroidManifest did not conjure configuration, uses-feature, and everything that follows after; and when I open the “AndroidManifest.xml” when it opens it opens as MyFirstApp Manifest. I am not sure if this should occur.

      Thanks

          1. The manifest file I’m referring to is the one under the res folder (not in it). For some reason the manifest files don’t update and you have to do it on your own. This is normally corrected with an update, but some times not.

  9. thank you,
    but can you help me with my app??
    im making an android app.. just like movie quiz game ..
    can you teach me? plz??

    THANK YOU VERY MUCH.. 😛

  10. whenever i try to input from keyboard the app force closes.
    Can you please tell me what i am doing wrong here.
    Thank You

  11. Hey Derek,

    I have one concern I would like to mention to you. I have been following the tutorials using NetBeans IDE and my android manifest.xml file is not exactly the same as yours. I only have one my Main_Activity but my display_message_activity is not there? Do I need to edit my manifest.xml manually because I’m using netbeans? Just a little stuck. Great tutorials too by the way! Very helpful!

  12. You’re tutorials were the most amazing and helpful tutorials I had ever watch. I have a capstone project and I decided to create an android app but I can’t decide what app should I make because I don’t know if I could do it or not. I need this project to graduate please help 🙁

    1. I’ll be starting a new Android tutorial very soon. I’ll approach Android from a different angle. This tutorial teaches with a focus on making apps. Next time I’ll mix it up a bit with many more diagrams on what is happening.

  13. Hello Derek,
    First of all, thank you very much for those tutorials; they are really helpful and understandable!
    I have a question about the Spanish strings.
    Let’s say I want that app name will be in Spanish,”Primera App”, do I need to change the file in “res/values/string.xml” to be in Spanish or can I make a reference to values-es?

    (something like “R.id.edit_message” )

    1. Hello Tamir, The way Android handles translation is if the users device is set to Spanish then it will use the text in the values-es folder. It won’t however allow you as the app designer change the language. If you want to offer translation at anytime then you’ll have to use Googles translation API

  14. Thanks a lot Mr.banas !!!
    Awesome tutorial , so clear and easy to follow…
    i have a question .i using android studio for practising. when i click on run it gives this error “emulator: ERROR: x86 emulation currently requires hardware acceleration!
    Please ensure Intel HAXM is properly installed and usable.
    CPU acceleration status: HAX kernel module is not installed!
    ” .can you help plz….

Leave a Reply

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