Make Your First Simple Android App with Kotlin (Android Kotlin Tutorial for Beginners)
Вставка
- Опубліковано 4 жов 2024
- Start saving time now by planning weekly with Week Sweep: bit.ly/2Jf3QA0
In this tutorial you will learn how to make android apps in Kotlin.
Kotlin is a new official language for Android development. It's certainly a step towards safer, readable and quicker to write code.
Kotlin supports properties, you don't have to call "findViewById()", and it also tries to get rid of the dreaded null reference exception.
Whether you are a complete beginner who is just starting out in Android app development or you are a Java Android developer looking for something new, you cannot go wrong with Kotlin in Android.
Get the code from this tutorial: wp.me/p8jOJP-5y
Go to my website for more information, code examples and articles:
● resocoder.com
Follow me on social media:
● / resocoder
● / resocoder
Thank you for this tutorial! So many videos are aimed at people with absolutely zero development experience, which is very frustrating as they often go way too slow. I'm new to mobile development, but I have a fair amount of programming experience, so this video is just about the right pace for me.
What is your progress now?
Same.
I just made it 2 years after the creation of this tutorial and though versions changed since then, it worked like a charm. I am an absolute beginner in Android development and Kotlin (just completed two Linkedin courses), but i could follow it easily. In two or three cases I checked the Android development documentation so that I really understand what is going on, but that's all. It was very usefull as we had started from scratch and used even some advanced features as lambda functions.
Thanks very much!
Too quick. Not used to either xml,java, or kotlin.
Too fast for a beginner. Not enough details described. Basically this tutorial is "write down what I write and hurry the hell up" .
I think the pace of this tutorial is good. Thanks for your feedback.
Pace is ok, but you are skipping lots of details. I think lots of ppl would agree for a 5min longer video at same pace but you just including more details. Now it's just "Do a b c d and it will work"
That's a more valid opinion, the last one was a simplistic critic of someone else's work for nothing. But either way, everyone else in the comments thinks otherwise so...
Yes it seemed very frantic. It was a good tutorial, but would be nice if it went at a more relaxed pace so I actually have time to follow along.
I personally think the video does a great job of producing something simple while at the same time avoiding specific details that might discourage beginners. Although it would be nice to have a separate video that goes more into depth of what's going on. Anyways, keep up the good work! Loved the video!
Great video. Perfect speed for me. I'm coming from iOS so I do have some background on how mobile dev works in general. I could see how a complete beginner might be lost though.
Please do a full kotlin programming tutorial.
Need to watch these videos in 0.5X speed , mans is motoring through everything , what the heck
Very informative, I've only just learned the fundamentals of kotlin, watching a few videos just to see code being written, as I know variables, arrays, boolean ect ect but writing code is quite daunting 😄👌
Even coming from web development with HTML, CSS and Javascript, this tutorial was a little fast to follow as it was my first time developing in such an unfamiliar environment. You may want to break down the key components and tools of Android Studio first before diving into the tutorial.
it sounds like a tts talking but also like a human
your voice is in between them
Thanks, I guess 😂
It is a fast tutorial but if you change the speed to 75.0 or 50.0
It is much easier
Also this version works on the latest android studio versions like 3.6
Nicely explained. was able to get it going in about half hour. Thanks so much. Looking to more
Thank you. This is what i find
I also added a ValueAnimator so the textView counts down as it flips:
button_reset.setOnClickListener{v ->
//creates a animator object that decreases number
val animator = ValueAnimator.ofInt(seekBar.progress, 0)
animator.setDuration(1000)
animator.addUpdateListener {
textView_progress.setText(animator.getAnimatedValue().toString())
}
animator.start()
textView_progress.animate().rotationBy(360f).setDuration(1000)
.translationY(initialTextViewTranslationY)
seekBar.progress=0
}
I can'T run app luncher in android studio. What missing from my instalation?
This is completely not for beginner in kotlin. I am coming from ios and only because of that got most, but still there were parts that were unfamiliar. No explanations are given, in fact why touch animations at all for the first app? or methods. with no explanations.
Thanks for the hand-on video.
Just mark it the day I "built" my firs Mobil app :-)
The pace is super sonic style. please slow down if its for beginners
I want my find view by id back and I want to type it every time.
the val you create initialTextViewY is not a call in my version, the latest version as of 1/5/20. Where is there documentation to look stuff up like this, and don't say Google, 'cause I did that... but for real?
Thank you so much 💐💐💐💐💐
Definitely like the format. I want to get some momentum going and just copy things at first. Then I can worry about learning in depth later. Thanks for the video. Gotta try it when I get home!
Really nice app for beginner and for me also. All the best
It's a bit too fast for this Novice guy... New to programming in an IDE, as well as Kotlin.
Thanks for the tutorial, coming from vue nativescript and looking to implement some native features so I try them out first native before adding the complexity of plattform independence. Therefore the speed was good, had to pause and rewind a few times though, could not find the implement members feature, I am using Android Studio 3.5.
You mention how to do it but do not why to do it. Like "anchoring", we should anchor this and that. But what does it even do? This tutorial is for sheep and not humans...
How is that code running ?
R.dimen doesn't exist, it's R.dimens
Very informative, Thanks man... Could you make deeper topics about c# for example : about serial ports ..
Is there a way to code this on a phone since i want to code things but i cant get a pc as of now
You would have to use dynamically type languages like python or javescript as I don't think you would be able to compile and run the files, without modification and 3d party emulators
\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:307: error: invalid dimen.
Getting this error... can't understand why.
Can you help me?
5db
dp* not db
My flip animation only works on the first button press
I figured it out. I put .rotation() instead of .rotationBy().
instead of using android studio can i use vs code
i receive error at the step 4:30 progress.tostring()
Thanks buddy, you got a new subscriber
Hey man ! nice video , very informative as usual...Thank you..
i'm kinda confused between Xamarin or AnroidStudio... what do u think ? should we switch to the NewBorn language (Kotlin) Java based , or let's just stick on the Microsoft .NET based Language(C#)?
Thanks! If you want to make only Android apps, I would go with Android Studio and Kotlin (or Java).
If, however, you intend to also make apps for iOS or Windows, I'd choose Xamarin - you can write the main chunk of code only once and then use it for all the platforms.
Actually, I'm releasing a video about whether you should choose Xamarin or Android Studio this Friday!
i heard that kotlin is a cross-platform language as well ! i've just downloaded and setup my android studio! and it so much easier and helpful than xamarin for visual studio ( like working with the designer and the code preview doesn't require u to rebuild or wait too much as in VS2017) also the auto complete text is awesome and so much easier... i'm thinking to buy a mac soon, i guess xamarin studio will be a great choice!
@@TamimProduction hello how's is ur progress in android dev
Nice tutorial; However, I have a problem.
When I press the "Reset" button the seekBar and the textView reset but it doesn't do any rotation animation.
I am testing the app directly on my phone which have the Oreo (8.1) version. Any help?
Thank you so much
BTW: I tested on the Android emulator and it works but not on my phone with Oreo (8.1) version
what is your ide theme and font name and size ? thank you
Yeah but why not make the seekbar go to 11?
What font are you using for the editor in Android studio?
reso coder help me please. I can't simulate the app. The app isn't shown in the emulator. I did all the code you said. I'm withe the newest version. Please help me thanks
Build a temperature convertor app from Celsius to Fahrenheit vice versa in kotlin
Mine was already at 10. I guess someone saw this tutorial and updated android default seeker settings to match lol
It's awesome. Thank you.
Great Content keep it up bro!
Hi, thank you for your videos they're very helpful. I was trying to figure out how to change the speed of the upward animation of the text view, but couldn't do it. I noticed it started slow then sped up Can shed some light on that please?
It sped up because instead of 1-100 he set the max to 10 (less numbers to go through = faster animation in this case)
Thanks for the Tut Appreciate that 😊
I cant refer on mainactivity from view!
"for beginners"? ha.ha.ha. Beginners all that can get is to follow steps without understanding what's going on. Nothing really explained, just telling write this or that... but why? what this means? what it does? not really. This is not for beginners. This is for people who have advanced java skills and want to switch to a new language. For true beginners this doesn't make any sense.
awesomeee, love it please moree
Got a stupid question... is this human voice ? It doesn't sound like a human, but is there such thing as computer voice with foreign accent ?
I am a robot 🤖 Nice to meet you.
I hear some Russian (:
Нет, but close enough. I'm Slovak 🇸🇰
how do i get the app into my phone?
No findviewbyId? Awesome.
Guys why am I getting this when trying to implement members:
public abstract fun onProgressChanged(p0: seekBar!, p1: int, p2: Boolean)
I've done exactly the same as he did. Literally 2 lines of code. I don't understand what is wrong.
Just move on and try to find proper intro. I'm giving up and moving on. Language (kotlin) has been changed and this "tutorial" no longer valid. And it's not really a tutorial anyway, just one-time show-off, now abandoned.
what font do u use in Android Studio?
Consolas
Good video.
Very good tutorial .. thank you
Thanks!
thanks man for the tutor
pecka braško 👌👍
Hey man, great way for beginners to get started on Android dev't.. question, how do you get your emulator to load almost instantly? takes no less than 15mins for me to start the emulator. using i5 4gb RAM. i know its not so much but i get 20-30mins to load
Install intel haxm
With using the emulator, Android Studio seems to use between 8 and 10GB all up in Windows 10.
So, with only 4 GB Total RAM, your going to be swapping badly.
Translation: Massive slowdown due to not enough RAM.
No FindViewByID in Kotlin? Awesome :D
great video bro, how can I see user name and password on a save pokemon go backup apk? I lost my password and user name to login
What emulator do you use? It's SO FAST!!!
LOL. He is cutting the waiting time. Watch carefully, you can see it when your looking for it.
If you hook up your actual phone, it runs much faster
Can you share you awesome theme please.
it's the dark theme
how to get "Design" tab in Android Studio??
you have it in activity_main.xml at the left bottom , next to the "Text" .
How in the world is this for beginners !?
After 2:00 my android studio doesn't have any of that
yeah ):
What a great Tutorial! it's very detail. That's what i looking for.
I'm glad you like it!
Can you make tutorial how to create apps in Kotlin with a database file (*.db) next time? I need read the database but not include create, update and delete with navigation drawer and list view. Because i wanna learn it more.
Too slow, I set the speed to 2x then recorded it on my phone then uploaded it back to YT and set it to 2x again and I can just about follow along without falling asleep.
calm down m8 , get off ya high horse ya wee egotistical geek
That's too slow mate, I just used UA-cam's seekbar and went straight to the end. Took me less than 2 seconds
This is an AI teaching us human. I am seeing the future of education.
This looks outdated, if you are running a newer version of kotling move on
Actually I am getting a dimen error... can it be related with Kotlin version or no?
This tutorial is "simple" if you already know JAVA
absloutely
⚠️WARNING⚠️ do not use this tutorial it's outdated and doesn't work
Flutter is better
How to make a WhatsApp status downloader app please help me I don't mind paying $10 for this I know its little but please help
too fast, this is not for beginners
More pls
I have more tutorials on Kotlin Android development. Check out this tutorial course: ua-cam.com/video/xtElLuzjA0U/v-deo.html
This dude sounds like iddubz's european accent lmao.
Oh come on! It's not that bad 😂
hi i have an app idea can you develop it for me and .
Yes
Thears no designer
1:12
Java and Kotlin are so cofusing to program. We can do that in HTML in 5 line of code. To meny fucking stuff you must use to bring one fucking zero to roll over! Nov emagine you must to paint your house every time before you want to enter on the door!
Please help! It just won't work even when I copy the code from your website... "android.support.constraint.ConstraintLayout" is always underlines red stating that xmlns:android="......."has to start with , but even when I do that, It simply won't work
Thank You!