In 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
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
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
Derek,
Where can I find all the source code for each of these Android tutorials? I can only find the AndroidManifest file.
As I write the code I include the code on each page. The code I think you want is here. I have links to every part of this tutorial with code on this page.
Hey Derek,
Thanks a lot for these tutorials. This really helped a lot and cleared my doubts. Thanks again.
You’re very welcome 🙂
Thanks very much Derek
that tutorial was very helpful for me
You’re very welcome 🙂 Thank you for visiting my website
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. 🙂
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.
these are very helpful because I am doing an intern at a application company . Thank a lot.
Thank you 🙂 Many more are coming.
Hi,
Greetings! Thanks for this wonderful tutorial. Can you please let me know what settings do I need to change to run my app in other languages?
– Souvik
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
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.
Thank you very much 🙂 I greatly appreciate the nice compliments.
thank u so match
You’re very welcome 🙂
Your articulation of app development is impressive. I’m on board…
Regards,
ECMcCready
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.
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
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.
Derek, did you upload the cheat sheet? I just see a static text, not a hyperlink (using Chrome on a mac).
I refer to the commented code as the cheat sheet. Is there something else you were looking for?
Thanks for your tuts, very useful n very innovative thanks once again.
You’re very welcome 🙂 Thank you for visiting my site.
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
Thank you 🙂 It is very kind of you to say that.
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
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 🙂
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!
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
Some times the manifest auto updates and some times it doesn’t. Maybe try to update the software? I have a new tutorial on how to install the new Android development tools.
Thanks for the quick response. I have already updated the software, and yes via your “android tutorial 26” video.
Thanks again!
Also, I have two AndroidManfest.xml files, one under the res folder (not in it), and the other under the bin folder (in it).
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.
You’re awesome!
Thank you 🙂 You’re very kind.
I normally set mine to 8
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.. 😛
The best thing to do is to look at my Android development for beginners tutorial. I hope it helps 🙂
whenever i try to input from keyboard the app force closes.
Can you please tell me what i am doing wrong here.
Thank You
Any errors will show up in the LogCat panel in Eclipse. Look specifically for your class names in there. You probably have a little typo some place. Try comparing your code to mine using diffnow.com.
Thank You!!
Found my mistake. And it was typo indeed.
Great I’m glad you fixed it.
what kind of programs
do u use ?
I use numerous programs. Which ones are you referring to?
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!
A couple of things have changed with Android recently. I’ll cover those changes in a new video this or next week.
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 🙁
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.
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” )
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
Ok, i got it.
Thank for the answer!
Can i copy the ‘cheat sheet’ to notepad++?
How? I now the normal way (ctr+c) but than i see all the numbers dubble.
Put your mouse over the top right corner of the text and click the icon labeled View Source. Sorry about that
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….
You’re very welcome 🙂 Click the Android SDK manager. You can install the Intel HAXM there.