Android Studio For Beginners Part 1

Google+ Pinterest LinkedIn Tumblr +

Video is ready, Click Here to View ×


This video will demonstrate (1) how to setup a project in Android Studio, (2) how to navigate within Android Studio to build a simple Android application, and (3) how to debug and run an Android app.

Here is a link to my entire Android series of videos:

Share.

About Author

47 Comments

  1. Everything was fine until I ran the Emulator. When I run the emulator(Nexus 5) all the inputs and buttons shift to the top left corner of the screen, overlapping each other. Could you go over it?

  2. I have one question
    At 28:20 you get the value of FirstNumEditText, then convert it to string , then convert it to integer and then give it to int num1.
    why do you need to do it ? Isn't the type of FirstNumEditText integer already ?

  3. Hi johnmichael for faithbook1 the scroll of a book, i am a newcomer to the world of coding, programming ,android studio, java etc, i am really a servant of the lord called to be a teacher of the deep mysteries contained within the scriptures by the will of god, and by revelations from the source , the lord god himself . by faith i am trying to do this myself due to lack of funds. i am currently working for a local company as a field service rep. this app will be a spiritual/ social media/teaching ministry . i have downloaded java, android studio se, did the setup etc, but the main activity comes up missing , that part of the display is blank. plse help me fix this problem, god bless, and thanks in advance.

  4. Cheers for the Video clip! Forgive me for butting in, I would love your initial thoughts. Have you tried – Chiveard Creating Empire Framework (probably on Google)? It is a smashing exclusive product for learning how to create and develop your own android app minus the hard work. Ive heard some extraordinary things about it and my mate at last got great success with it.

  5. Following these directions resulted in an app that did not build. The error on the emulator screen was, "My First App has stopped". There was an error, with regard to the casting of a Button:
    11/15 11:54:43: Launching app
    $ adb install-multiple -r -t /Users/admin/AndroidStudioProjects/MyFirstApp/app/build/intermediates/split-apk/debug/slices/slice_3.apk /Users/admin/AndroidStudioProjects/MyFirstApp/app/build/intermediates/split-apk/debug/slices/slice_9.apk /Users/admin/AndroidStudioProjects/MyFirstApp/app/build/intermediates/split-apk/debug/slices/slice_8.apk /Users/admin/AndroidStudioProjects/MyFirstApp/app/build/intermediates/split-apk/debug/dep/dependencies.apk /Users/admin/AndroidStudioProjects/MyFirstApp/app/build/intermediates/split-apk/debug/slices/slice_6.apk /Users/admin/AndroidStudioProjects/MyFirstApp/app/build/intermediates/split-apk/debug/slices/slice_1.apk /Users/admin/AndroidStudioProjects/MyFirstApp/app/build/intermediates/split-apk/debug/slices/slice_0.apk /Users/admin/AndroidStudioProjects/MyFirstApp/app/build/intermediates/split-apk/debug/slices/slice_7.apk /Users/admin/AndroidStudioProjects/MyFirstApp/app/build/intermediates/split-apk/debug/slices/slice_2.apk /Users/admin/AndroidStudioProjects/MyFirstApp/app/build/intermediates/split-apk/debug/slices/slice_5.apk /Users/admin/AndroidStudioProjects/MyFirstApp/app/build/intermediates/split-apk/debug/slices/slice_4.apk /Users/admin/AndroidStudioProjects/MyFirstApp/app/build/outputs/apk/debug/app-debug.apk
    Split APKs installed
    $ adb shell am start -n "com.example.myfirstapp/com.example.myfirstapp.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
    Client not ready yet..Waiting for process to come online
    Connected to process 2691 on device emulator-5554
    Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
    I/InstantRun: starting instant run server: is main process
    D/AndroidRuntime: Shutting down VM
    E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.myfirstapp, PID: 2691
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myfirstapp/com.example.myfirstapp.MainActivity}: java.lang.ClassCastException: android.support.constraint.ConstraintLayout cannot be cast to android.widget.Button
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
    at android.app.ActivityThread.-wrap11(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6494)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
    Caused by: java.lang.ClassCastException: android.support.constraint.ConstraintLayout cannot be cast to android.widget.Button
    at com.example.myfirstapp.MainActivity.onCreate(MainActivity.java:17)
    at android.app.Activity.performCreate(Activity.java:7000)
    at android.app.Activity.performCreate(Activity.java:6991)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856) 
    at android.app.ActivityThread.-wrap11(Unknown Source:0) 
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589) 
    at android.os.Handler.dispatchMessage(Handler.java:106) 
    at android.os.Looper.loop(Looper.java:164) 
    at android.app.ActivityThread.main(ActivityThread.java:6494) 
    at java.lang.reflect.Method.invoke(Native Method) 
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) 
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) 
    Application terminated.

  6. I can't open up the palette on my application it keeps telling me Error:A problem occurred configuring project ':app'.
    > Failed to find target with hash string 'android-26' in: C:UsersQuaAppDataLocalAndroidSdk

    and I just opened a new project. How do I go about fixing this problem?

  7. Can someone explain why you have to cast the variable again when you already declared what it is ? In the video, he declared addBtn as a Button already, so why is the casting needed, isnt it redundant ? Ive seen other videos do these casts as well even though the type has already been declared. Is there a special reason why this must be done ?