Writing your first Android app - everything you need to know
Вставка
- Опубліковано 15 жов 2024
- Get 75% off our official Android Development Course run by Gary Sims himself: dgit.academy/75off
In this tutorial we go through the steps needed to build your first Android app.
You will create a simple UI, add some Java code, and then run your app. Read the full article on AndroidAuthority.com: andauth.co/kFhsyL
Talk about Android in our forums: www.androidauth...
Subscribe to our UA-cam channel: www.youtube.com...
----------------------------------------------------
Stay connected to Android Authority:
www.androidauth...
google.com/+and...
/ androidauthority
/ androidauth
/ androidauthority
Follow the Team:
Josh Vergara: plus.google.co...
Joe Hindy: plus.google.co...
Lanh Nguyen: plus.google.co...
Jayce Broda: plus.google.co...
Gary Sims: plus.google.co...
Ash Tailor: plus.google.co...
*Writing your first Android app - everything you need to know*
Ready to make an app? We recommend taking Gary's App Development Course at: dgit.academy/dev-course 75% off with promo code: 75AAYT
Want more info? Head on over to andauth.co/kFhsyL to go through the steps needed to build your first Android app.
By +Gary Sims
I'm taking some basic online java courses right now online just to get an idea of what it's all about before committing to it in college and so far I'm liking messing around with it so I'll give this a shot as I haven't done anything with android
***** Yep.
Pls enable offline mode on ur videos so that we can see videos during long commutes to workplaces... plzzzzzz
Android Authority Wonderful tutorial! Very simple to understand, thanks. Please keep uploading videos of this category!
***** Go fuck yourself with your scam
I have been trying to find a tutorial like this for months now. I hope that you keep this up and also build more upon what the code does rather than how the IDE works.
right
Yes, It would have been interesting to get an explanation of how th funcions function and not just the IDE but i think that's not what the tutorial was meant for
the thing I liked about this video is that's a very quick demonstration about Android app development, Maybe it's a very silly app you've created after all, But at least you've spared me watching hours of very detailed tutorials and trying to absorb information that I don't need to know right now to eventually build the very same silly app. Any way I wish there is a lot of videos like this kind of video that we can call it " A very quick demonstration of... ", Videos that show you abilities of cretin technology or programing language or a frame work, And let you decide if that is the right thing for you to learn or else.Thank you.
thumbs up for cretin technology
Agreed.
I was just thinking how is he answering every question of mine at the moment i think about it. He just knows what people need to actually know and he is great at delivering it quick . Thumbs up , honestly !
It's a "hello world" program. Usually the 1st program you learn in most languages.
#include
int main(int argc, char *argv[]) {
(void)printf("OMG!
No longer allowed to privately code our own devices?
");
(void)printf("Meh! suX0rz!
);
(void)printf("First they came for the internet, killed John Postel, now pwn.
");
(void)printf("Next they absconded services, ISP DNS banned routes, pwn.
);
(void)printf("Now they pwn a device i paid for before i bought it.
");
(void)printf("stoopid me. stoopid me
:(
");
return 0;
}
im jumping in with no idea what im doing
Same Mate, may we both be successful
+Malick Toure did you guys succeed?
+Lumo TV no
That's the best way to start. Good luck bro!
Vernon Ray me to!
Hi Gary,
Thanks so much for sharing! I love coding and have finished your tutorial.
There's been some updates, so to help others, things to be aware of:
1. Set the minimum SDK to API 14 while making the project. The others have a crazy folder structure and don't match the video.
2. Make sure language is set to Java. KT doesn't work with the code Gary has written. "Void" will not be recognised and so on.
3. While setting up the display set the constraints by clicking the arrows on the right hand palette window. This lets the app know the position of the text "Hello World" in relation to the button.
4. There was only one string named in the string folder under resources. Don't worry just copy it and change app_name to Tap_Me and My Application to Tap Me. When your in the layout screen click the button then find the text box under common attributes, after typing the @ symbol your tap_me variable should show.
5. When running the emulator make sure you have 7GB on your local drive (C:\) even if the studio program installed somewhere else otherwise you'll get: "The emulator process for AVD Nexus_5_API_30 was killed"
This would be very helpful for starters, please bring videos more like this !
starters ! waw LOL
2 seconds in ... "i'll get it"
5 mins later... "off to watching some cats videos"
try chameleon videos
Lovely Video! Sorry for chiming in, I would love your initial thoughts. Have you heard about - Chiveard Creating Empire Framework (google it)? It is an awesome exclusive guide for learning how to create and develop your own app without the headache. Ive heard some interesting things about it and my mate after many years got great success with it.
Great Video clip! Forgive me for butting in, I am interested in your opinion. Have you thought about - Chiveard Creating Empire Framework (Sure I saw it on Google)? It is a great one of a kind guide for learning how to create and develop your own app without the hard work. Ive heard some amazing things about it and my BF at very last got great success with it.
Appreciate Video! Sorry for chiming in, I am interested in your thoughts. Have you considered - Chiveard Creating Empire Framework (search on google)? It is an awesome one off product for learning how to create and develop your own app minus the headache. Ive heard some amazing things about it and my work buddy finally got amazing results with it.
Kudos for the Video! Sorry for the intrusion, I am interested in your thoughts. Have you heard the talk about - Chiveard Creating Empire Framework (just google it)? It is an awesome one of a kind guide for learning how to create and develop your own app without the hard work. Ive heard some unbelievable things about it and my cooworker after many years got cool results with it.
Today, I wrote my first Android app. I wrote it with the latest Android SDK. Some of the layouts were different, but I figured it out.
The steepest of learning curves usually involve the boilerplate aspects of development. I have no trouble with coding. I've been doing it for decades. I was even coding Java professionally five years ago. But getting past that entry point for a new environment or platform is often the stickiest bit. This video was exactly what I needed to get my first Android app running. Thanks!!
Surf Wisely.
Just what I needed, having to use this IDE for part of my A-Level Computer Science project, and this tutorial was very helpful to get me started with it! (Only problem is that you didn't use the dark theme!)
Thank you very much!
I am a chemical engineer and a data scientist that wish to learn to code to make my own app in android. I am good at excel macro VBA but has 0 knowledge and experience on java. I really love this short tutorial you guys made, very easy to follow and i could copy with the same result. You got me subscribed to your channel. Please continue with this series of video.
thanks,
MH
I really love your videos. Either they make me think and/or simplify something that I find confusing.
Keep up the great work!
It would be amazing if he would do some reviews.
Bernhard F. I'm pretty sure he has.
I am an old programmer, but just now looking for a way to make phone apps. This will get me started. I subscribed. I like the way you pack a lot of information in a short time. Excellent video!
I thought I would never say this but I wish this video had been published earlier,it would have made at least my life easier
Lol me too I have been stuck with web dev for so long
You may want to rethink your poor choice of words to say what we think you wanted to say.,
For the beginners those who really have any clue about android this video is just perfect and he explains from scratch everything so simply you will understand everything. Nice work. The example is very basic very simple and for beginners so nothing great we should expect as it is meant to be simpler for people like me who are clueless about android!
Subscribed. thank you for being clear and having great tutorials. I got tired of the "indian-narrated" tutorials.
Which Android studio app do I download? There are several options in play. Does it cost and if so, do you know how much? Another couple of questions I am hoping you can answer for me is how do I get paid money for the app and does Google need to approve it before it can be added? I actually have a lot of questions. Is there maybe a Q and A site I can visit or should I read a certain book? Yikes, lots of questions, but maybe you can help me get started?? I think I have a good idea. Oh! That's another question... Is there a way to copy write my idea or once I start is it just a free for all that I can lose before completion, because I have no idea how to do this? Thanks for your time, you are a very good instructor.
I got an ad about android app programming
I got a Toyota app...
Not My Username I got a naked girl ad
Because you have been surfing on the internet about android app development, thus Google's algorithm gives you android related ads.
I got an IOS ad
I didn't cause I have adblock and youtube red lol
Actually really liked this particular tutorial.
The directory structure was explained in a fantastic way which really removed the confusion when initially jumping into android development, thanks!
6:20 thanks for telling me to put coffee into my computer. It doesn't work anymore. Thanks again
I got a Udemy ad, and it's only 15 bucks, should I buy it? It¨s supposed to teach me everything with like 32 hours of video or something
Great intro to Android programming. I'd be very happy to see more videos like this. Maybe the whole Android programming series wouldn't be bad idea. Thanks!
www.amazon.com/gp/product/B07DTBYS6P
www.amazon.com/gp/product/B07DVYMLWN
This is so awesome. Thanks bro. I keep going from frustrated to excited. From discouraged to hopeful. Being a programmer is like being manic depressive.
Sweet! Thanks for the lessons! I am really enjoying working in Android. :)
Quantum Mint can you expand on that?
I want in
Quantum Mint Is this some kind of marketing for Telegram ?? If not, lets talk on Whatsapp or FB.
hello I want to contact you, where
You are the real teacher of Android..please don't stop this Awesome .
Why do you need to pass the "view v" with the function?
That way the function OnButonTap is shown in the onClick list.
v is the view instance and view indicated of type view, this way it knows on which view to act upon
I guess this didn't work for me. When I press Alt Enter on the unknown word view, it came up with a menu instead of just automatically doing whatever it did for him. The menu says: "Create class, create enum, create interface, etc" so I clicked create class. Now I'm not getting the function onbuttontap in the onclick list.
Noah, you may have two ALT keys on your keyboard? - try using the other one? They don't always do the same thing. Got the same as you when I tried the right hand ALT - but the left hand ALT did the trick.
I've studied java for a year and i have no clue why they have passed View v to onButtonTap, v is not used inside the method and so there is no point.
I simply cannot get this app to work. I get a :app:compileDebugJavac error. Also, class, interface, or enum expected errors
You're the smartest android authority guy!!! Great video!
Kudos for the Video clip! Excuse me for the intrusion, I would love your opinion. Have you thought about - Chiveard Creating Empire Framework (google it)? It is a good one off product for learning how to create and develop your own android app without the normal expense. Ive heard some unbelievable things about it and my GF at very last got excellent success with it.
Cheers for the Video! Apologies for butting in, I would appreciate your opinion. Have you ever tried - Chiveard Creating Empire Framework (Have a quick look on google cant remember the place now)? It is a great one of a kind guide for learning how to create and develop your own android app minus the hard work. Ive heard some great things about it and my GF after many years got cool success with it.
+Android Authority Thanks for the Video clip! Forgive me for chiming in, I would appreciate your opinion. Have you ever tried - Chiveard Creating Empire Framework (probably on Google)? It is a smashing one off product for learning how to create and develop your own android app without the hard work. Ive heard some amazing things about it and my best friend Jordan at very last got excellent success with it.
Nice video content! Forgive me for chiming in, I would appreciate your thoughts. Have you considered - Chiveard Creating Empire Framework (Sure I saw it on Google)? It is a great one off product for learning how to create and develop your own android app without the normal expense. Ive heard some unbelievable things about it and my cooworker at last got cool success with it.
Excellent Video clip! Forgive me for butting in, I am interested in your initial thoughts. Have you ever tried - Chiveard Creating Empire Framework (do a search on google)? It is a good one off product for learning how to create and develop your own android app without the hard work. Ive heard some awesome things about it and my buddy got cool success with it.
For over a year i have been practicing java development in backend but now i said to my self i will try something new, yeah this is kinda the same but the fact that i have to designt the looks of apps too makes me feel good, not those ugly terminals i worked on for the past year and so, thank you for explaining how ide works
I just wanted to make a simple app that will take a serial number then will ask for a reading for that serial number. for example ... SN123456 then 000983 then ask SN again then reading .... and so on ... then store those values in some sort of excel file with 2 columns... then when the android device is attached to the PC through whatever means it will copy that excel file to the PC drive so that a program can handle it from there. can i do that with this ?
Well not just an excel file but DIF, CSV, EXCEL, XML or any other data that a Visual Foxpro Application can import. see my trouble is that i am a Visual Foxpro programmer and not an android programmer. we needed an industrial type RFID scanner similar to this www.jepower.net/a/Downloads/PDA/55.html. the aim is to scan RFID tags ( there can be a lot of them ) and then display the result on the screen in LIST form. then allow the user to click on any result and input a certain number. the next problem is how do i get those data from the device into my desktop PC. i have checked on the SDK and it does not support foxpro. however, if i can create a very simple android application on that device that will do just that and allow the user to make a copy of the results to the PC through wifi or direct then the problem is solved. i can think of many ways to do that either by 1. Device have the option to upload directly to a mysql server in PC (eliminating the need for the excel file) OR 2.) copy contents to the PC in a file, foxpro then opens file and uploads the data into mysql server. but i dont know how.
i dont think i will be needing months of Android Programming study to accomplish this, but do you have any idea which android tool i should research ?
This does not work with the current version of Android Studio. For example, there is no “layout:centerInParent”. Which means Google makes new versions incompatible with the older version. :(
Awesome video. Very well explained! Can't wait till I make my own apps.
What if I don't work for a company and don't own any domain, and I want to publish my work on the google play store? What should I do?
I have 16 gb, How much memory should I use?
Using between 4-8 will be good enough, don't try to use all your RAM some will be needed for other applications.
Veeraj Vadgama Thanks
I am pumped up to learn App development. I am learning Java and this is a masterpiece. Is there any free course??
Quite an amazing tutorial! Looking forward to more Android Programming tutorials. Thanks.
Commandable effort from all those whom made this video possible.
Its one of the most easy , short & simple clip that clearly tailored for basic beginners. Cannot wait till next video , Thanks .
This is awesome I love it ,how your explanation was so easy 👌🏿👌🏿👌🏿
Hi man!Only one silly question:can I work in UK as a mobile developer without a diploma?I am Welder Engineer and planning to study Java then start working.I worked and lived in UK for 5 years but I am planning to do something much better for me.Cheers!
What is it with the company domain. I don't write an app for a company and I don't have my own domain or website. Does that mean I can't publish my app on the playstore?
just write your own name
I am serious lol
email me the info martyoneill103@gmail.com
Quantum Mint Wow. I am pretty much interested.
Is a bundle identifier the same as a company domain cause I'm coming from web development and ios development
Its not underbar its underscore, View isnt a construct, it is a Data type or essentialy a predefined Java class, constructors are used in Java classes when objects of that class are initialised.
I do understand what you are saying hence it was not an issue for me, but this would confuse someone who doesnt have that much knowledge about java in the first place
I'm lost, i have no idea what to do. Can i make my own app with this thing?
***** programming languages nowadays end up more or less being similar in many ways, if you want to start programming, i'd say html / javascript and pretty easy and straight forward
OneMinuteFixed But html is not a programming language.
And if you want to start out with something you really won`t need to make an app i think the internet/books is the wrong place to learn for you.
It's a markup language that goes hand in hand with JavaScript as you may well know. I say this is an excellent entry level for programming as it involves loads of current useful technologies , ajax, php, MySQL setting up web servers etc. All in all a good entry level says I =]
Only problem I see would be cross browser compatibility, but this is becoming a.problem of the past
Anon I don't understand pople thinking that the best way to learn programming is by starting with something useless.
It is not working for me. I clicked Alt + Enter on the red "view" and it did not resolve anything but gave me an option to 1. Create Field Parameter for V or 2. Generate Overloaded Constructor neither of which solved the problem. And therefore no function was available in the OnClick drop down box. How do I proceed? Thanks.
I like at the end, he mentions "companion" while the TARDIS is in full view in the background! Coincedence?
Can I make my first ever android app by using Web (html,cos, java script ). And I am very new in this, and I will be starting to learn programming languages. Which language should I start first?
Good video. Is java the only option? is it fast enough? are for instance snapchat filters programmed in java?
Wait so only Java is ft android? What about iPhone? Well more people use Android so ...
iOS use swift (some still using Objective-C), not Java. However you can use C/++ to program iPhone apps as well as android apps, however the C/++ code will be different for each OS as the frameworks are not the same.
Kotlin will work also, as C or C++
This did help me. I'm trying to become a developer full time. for now just by myself but definitely in the near future I'm looking forward to joining a company and such.
how do i make a mobile game now?
Unity Game Development
ua-cam.com/video/4BD3y0NYNqk/v-deo.html
How much storage would writing an entire app take? I'm not sure if I should get 256gb or 512gb MacBook
First video from this guy whitch i like.Keep it up!
Marius Arweer Thanks for the encouragement... So that I can do better next time... What is it about this video that makes it better than my previous ones?
Marius Arweer he haspretty bad ass AI (artificial intelligence) video
ua-cam.com/video/qqh8rORX84M/v-deo.html
Watch this video to know how you can update to latest android studio
I want to make money making a game. Which language should i learn? I should learn java for google play store or are some apps created with javascript? I have learn a little javascript and three.js looks interested. Is javascript only for website?
hello sir ... this tutorial is so helpful for me ..thanx a lot ...
Can someone give me instructions on how to have the button play a song instead of displaying a toast. I want to send the .apk to my friends and I think they would like it!
great job bro. one problem though and i think i speak for everybody that watched this vid. you need to zoom the screen next time u do a vid like this, i'm a developer myself so i knew what you were doing but i'm just saying it was kinda hard to see some of the stuff you had on the screen but great job #tumbsUp
Android Studio is messy not like Xcode but I still love android studio
ua-cam.com/video/qqh8rORX84M/v-deo.html
Watch this video to know how you can update to latest android studio
Hello, compliments for the work they do. For some time I am trying to "create" an application with bells. I would like to help me to understand how they can set the little flats in this application in the main and that would remain so and after the application has been closed. I try to do a simple application with bells and fail to find on the internet explanations on this topic
I use Eaglesong to write my apps. Message me if you would like info on it. I'm a programmer as well so I will help where I can.
Can you link it on here? If not, I will message you right away.
Sure. I signed up here and they sent me access to the program ezapps.gr8.com Let me know if you need anything else.
I am an experienced java developer. Now only learning android . I am unable to find a java tutorial playlist in your channel. I have 8gb ram . As you say it struggles
Made mine in half an hour. Thanks for the guide :D #highFive
@moe qadura probably a scammer or a bot
Hey guys! Which is better? Android development using their code or writing in javascript and using eclipse to make it both available for android and apple store?
Very good tutorial at 1.5x speed!
I don't have a MainActivity.java. I have a MainActivity.kt . What am I doing wrong? I am using Android Studio 3.5.2 if that is important.
Great tutorial Gary!
www.amazon.com/gp/product/B07DVYMLWN
www.amazon.com/gp/product/B07DTBYS6P
I want to write an app for an android phone so it can detect cpu, GPS, wifi are working. Is that possible?
apparently it cost a lot to make a game is this true
It cost me all of 0. To make a game and have all rights, make a profit etc, is another thingy entirely.
Ry if you let someone else make it, it will cost you $50k
TheSpector oh
time. lots of time maybe. especially if your a solo developer
25$ to put it on the app store, but you only pay once for the right to publy on the as
A really best video for first app. Sounds so clean to understand.
Sorry... this video has little or no relevance to the current Android development kit. The windows are different, the folder names are different, the layout is different, and it is simply not possible for a beginner to follow this video and complete the steps. It needs to be updated or removed. I thank the author for putting it up, but it's no longer a useful tool.
Exactly what I was about to comment!
Yes you're right. Can you suggest another video?
Ohhh cry baby make a better video Wonton
Albert Ara Because that's a valid argument.
I don't think he is crying one bit. He is giving an honest and helpful opinion. It can get people confused especially if they are just starting to learn Java and Android Studio.
very good explanation,I would like to know whats the version of android studio you are using because the software I have downloaded isn't the same as yours,
Hi, I think I gonna be one of your worst viewer in history. I failed my C++ 4 times in uni. (dropped out) Should I go and view Java basics: a tutorial for beginners first?
Go for it. However, C++ and Java aren't too dissimilar so you may find you have the same problem with learning Java. There are plenty of languages to try, although for Android app development it is only really C# through Xamarin and Java. Where C# is very similar to Java, syntax wise.
In the end, programming isn't for everyone so if you don't find your perfect and preferred language then move on before you are too old to learn something new haha.
What is the average learning time, to right your first Android app? Thanks, for the tutorials :)
Ewh! Sweat off of my face, it's a lot easier with a good insturctor! thanks for explaining!
When I go to strings.xml, no other strings except app_name and action_settings are there, even though I have a textView and a button on activity_main.
Si tu parles français et que tu aimes aussi les applications mobile aimes ce commentaire ! 😎
Is there an android book that's very recommended? even for people without 0 java knowledge
Hey, i am doing as you have stated. But when i click the "Design" column, it says- "Design editor is unavailable until a successful build". I don't know how to fix that. Please help.
Your voice is very comforting. Thank you for your efforts!
I have just installed this and trying to follow the video but nothing appears in the Design window. It just says design editor is unavailable until after a successful build
I found that the visual UI editor is completely dysfunctional. When I load up different layouts, they seem to run perfectly fine on my phone, but I can't see it at all on the PC. I'm not sure what I've done wrong. I have installed all of the recommended software, and they are the correct versions.
Hello Sir, I am an mechanical Engineer and i want to build an app...Do i need to learn coding?
Hello sir, I have an issue. On minute 4:20 of the video I do not see the rebuild button. Android Studio version is 2.2.3, and it states "NDK not configured. Download it with SDK manager.)" what is the problem and how can I fix it, thank you.
In your opinion, what will be the key points to develop something that may go head to head with apps like snap chat and instagram?
Can you instead of testing the app you are building on the android stimulator somehow cable your phone to the pc and make it run on the phone so that it is faster if you have a slow pc?
Very useful tips. Sir I required soft copy of this. Can I get soft copies that can be very useful to develop my first Android app.
Thank you for creating this. I've been. programming since the late 70s. I'm use to the old way. No objection orented programming experience. Your video was a good start. It been a few years but I learned 7 programming language on every type of system. I'll get rolling on this as soon as I upgrade my system.
It was really useful and well explained thanks a lot. however when I wanted to run the app on my smartphone I got this error: class, interface or enum expected. What does this mean and how can I fix it? thanks for your help
Hmm so say I create an app and i want it out to the public.. Must it first be approved by google?? Or can any app just be made public without outside dictation?? Would I be able to test my app on my phone before I "launch it"? So many questions swirling my mind some i can't put in words lol
I am into microsoft development technologies, but recent android phone purchase intrigued me to go for android development and this video has motivated me big time for sure, thanks for posting this one..!!
Hi developers 😁
I make games using construct 2 or appy builder (blocks programming).. The main problem of construct 2 is large apk files and not support all sensors and gps
But I wanna to know which is the best for make mobile apps and games :
1 - dart
2 - flatter
3 - React native
4 - java
5 - kotlin
6 - Block programming software as construct 2, appy builder and game maker etc. Which not need to write code ( if you suggest block software which one should I use)
7 - other
Thanks for help 😊
my computer is running 64 bit windows version , during initialisation process it showed error the i clicked cancle button and skipped the process and went to finished button ... so ia m not able to operate " start a new android project " ...... so help
I'm fu*ked, I've got an android phone but my laptop is a macbook pro. Do you know if the development environment will run on a virtual machine on OSX? Thanks
what programming language are you using in this video for android development?
Is there no other language you can use instead? Basic? C? Perl? Python?
The Android Studio is not downloading when I click on the link. Its just not responding. Can you guide me to a different source
I m a beginner to this, I do not know coding ...what language and what should be studied before learning Android app development
Tish is a godd qustoons
i made a java project in neatbean swing now i want to implement in .EXE application what should i do?
Decompile APK ..I accidently erased my project from Eclipse, and all I have left is the APK file which I transferred to my phone. Is there a way to reverse the process of exporting an application to the .apk file, so I can get my project back?
It says "Gradle project sync failed.Basic funcionality(e.g editting,debugging) will not work properly" can anone help me does this causes obstacles while I'm working and how can i fix this ?
The thing I find frustrating about the process of developing with Android Studio is the level of abstraction. It throws you in the middle of an app that's basically already been written and you're left with a minimal understanding as to what the code actually does. It's the mobile equivalent of pasting from Stack Overflow. It works until you need to modify something, and then you're left scratching your head because you didn't write it to begin with.
I'm sure it's super efficient for seasoned mobile developers, but holy crap it's been a hurdle to learn with it. I can't find a whole lot of tutorials on coding an app 100% from scratch, and it's probably a painful process that I wouldn't want to try anyhow.
Hii i try to put a simaple plain text on my design and i cant see my text it seems like when i drag and drop the plain text it juped out of the frame what should i do
Hi thanks for the Video but I have a query, whenever I add something e.g adding a button. etc. When I ran that in emulator everything shifts toward the top left. Why does that happen? Can you please help?
Will this program start and run properly on my 9 year old dell laptop? ^^
Thank you so much for making this simple and explaining everything that is somehow expected of you to know! I'm sure I could take a class on it but this info should be more readily available. I got the application up and running with no issues!