Writing your first Android app – everything you need to know

Công nghệ



Get 75% off our official Android Development Course run by Gary Sims himself:

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:

Talk about Android in our forums:

Subscribe to our YouTube channel:
—————————————————-
Stay connected to Android Authority:




Follow the Team:
Josh Vergara:
Joe Hindy:
Lanh Nguyen:
Jayce Broda:
Gary Sims:
Ash Tailor:

Nguồn: https://welovedesignaward.com/

Xem thêm bài viết khác: https://welovedesignaward.com/category/cong-nghe/

49 thoughts on “Writing your first Android app – everything you need to know

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

  2. Please sir am new here kindly help me out on this issue on the project tree am not seen the java folder,manifest and res what am only seen is gradle script

  3. look. i might be crazy, but it turns out. you need to know code to make an app.  I blame your mom for sending me here. I give up! This is too much!  double rainbows, bro!  omg.. I like how this is going. I'm never going to be able to make an app game.  so sad. 🙁 so he's basically spent an hour telling us how to say "ouch" in an app. Wonderful! Waste of time. We really need to find out how he got those marks on his neck. Are we sure all the girls he knows are still alive?  Interesting.

  4. Ok. this guy might be ok, but. I have problems with him. I do watch ID too much and I think everyone is suspect. Why's this guy have marks on his neck?  We need to make sure everyone he knows is still alive. lol.

  5. just a heads up, i haven't watched your video yet, but wear a better shirt, Noob. If you are wearing a crappy shirt, how can I take you seriously? 😀 or maybe he's genius for wearing that shirt. What do I need? Rob Lowe teaching me android app shit? Yes! I need Rob Lowe teaching me everything! He's God!  lol

  6. How do I build an app to make your mom stop calling me? That's all I need right now. Ok, fine. I'm telling jokes. I'm gonna watch this guys video as soon as I'm done eating some food. I'm a bit hungover.  This guy seems like a decent place to start. Why are tech people not funny at all?  I feel like you guys should tell more jokes to keep us involved.  Wait til you see my app! 🙂  ok, i think i'm still drunk. Later.  I'll fix it.  MORE BEER!  goodnight.

  7. This video is no longer useful when trying to learn newer versions of android studio. Certain things have changed within android studio, so a lot of the things that he's saying end up being more confusing than obvious, and to compound that problem, he doesn't pause in between his sentences, leaving no room for us to absorb basic knowledge before he quickly moves on to what he wants to say next. Save yourself some time and find another video..

  8. 4:188:49 summary of everything

    when the app is opened it looks like this:
    upper left panel —> project tree
    middle/centre —> code editor and designer
    bottom panel —> messages from compiler

    project tree = holds the different files and resources used to build the app
    code editor and designer = where all editing of code takes place, and designing the structure of the app

    under the app node there are several other nodes (google's definition of a node: a point in a network or diagram at which lines or pathways intersect or branch.
    )
    that have sub folders which can be expanded; these are manifests, java and res (res for resources).

    • in manifest folder, there will be AndroidManifest.xml which contains any information regarding the app e.g name. most common things added is the list of permissions needed.

    • in java folder, it is the java code for the app. there is a sub-folder with the domain name of your project e.g com.example.(name).
    under the sub-folder, there is a MainActivity.java or MainActivity.kt which is the entry point that we are going to add some java in this file.
    — there are more, although only one is needed for the example app.

    • in res folder (resources), there is lots of sub-folders these have all the different resources necessary for the app e.g graphics, string values, menus and most importantly where the definition of the user interface is stored.

    the folders we going to use for this example app are layout and values found in the res. (by now u should probably understand res is the resources folder)

    • in layout, you will find activity_main.xml. activity_main.xml is an xml file describing user interfaces for the app.
    there are 2 possible ways to edit this file, by editing the code directly or using the built-in UI designer on Android Studio.
    — if you were to edit on the designer, it would automatically create the corresponding xml file in the folder.

    • in values, it will contain different xml files which are colors, strings and styles.
    — most important for the example app is strings.xml.
    — rather than hard-coding string values, (google definition of hard-coding: fix (data or parameters) in a program in such a way that they cannot be altered without modifying the program.
    ) values are placed into strings.xml then referenced using an ID.
    — advantage of this system, is if strings need to be changed in multiple places, u can change it only once and will change throughout all of the code. this makes porting multiple languages much easier.

Leave a Reply

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