Create a Calculator App in Minutes - Android Studio Tutorial

Поділитися
Вставка
  • Опубліковано 29 сер 2024
  • In this tutorial, you'll learn how to create a calculator app in minutes using Android Studio. By the end, you'll have a working app that you can test on your phone or device.
    This calculator app tutorial is a great way to get started with Android development! In this video, we'll take you through the entire process of creating a calculator app in Android Studio. This app can be used by students throughout the world, so be sure to give it a try!
    Download Source Code: youtube.codese...
    ########## For Doubts (ask it here) #########
    Discord: / discord
    Whatsapp group: whatsappgroup....
    #####################################
    ########## For Business Queries ##########
    Contact us for any business queries:
    Email: mail@codeseasy.com
    Phone number: +918281536333
    WhatsApp: whatsapp.codes...
    ####################################
    Find us on Social Media:
    Website: www.codeseasy.com
    Telegram: t.me/CodesEasy...
    Facebook: / codeseasy
    Instagram: / codeseasy
    Twitter: / codeseasyblog

КОМЕНТАРІ • 112

  • @user-px5pj7ux5k
    @user-px5pj7ux5k 11 місяців тому +4

    Its very nice, but please don't rush the teaching, it's better to thoroughly explain each step for what and how it works. ❤

  • @user-dg7fu8he9n
    @user-dg7fu8he9n 4 місяці тому

    thank you so much, Everything was clear and simple,
    (I had a problem with the switch but it worked with if)

  • @Account-user
    @Account-user 3 місяці тому +2

    Sir it is showing error running app no target device found when I am running the mainactivity... What to do??

  • @sonvenasushil2139
    @sonvenasushil2139 Рік тому +9

    How to remove error
    Case R.id.btn
    Constant expression required

    • @CodesEasy
      @CodesEasy  Рік тому

      What is the error message.

    • @user-uq5ux2bx3v
      @user-uq5ux2bx3v 7 місяців тому +2

      I also get the same error. Anyone who knows to solve this without using if else, please reply!!

    • @dcm6267
      @dcm6267 6 місяців тому

      same error. how to fix it?

    • @nidhipote2730
      @nidhipote2730 4 місяці тому

      Same error!!

    • @Account-user
      @Account-user 3 місяці тому

      I was getting the same error but then I switched to the if structure, it's working now.

  • @pop-os9yk
    @pop-os9yk 5 місяців тому +2

    which version of android studio are you using?

  • @xdgogo5231
    @xdgogo5231 Рік тому +9

    How to resolve the error "Constant expression required" on case R.id.btn_add:?

    • @CodesEasy
      @CodesEasy  Рік тому

      This happens if you use Resources from a Library project. In that case, the the ids in the R class are not really constants and thus cannot be used in a switch statement.

    • @xdgogo5231
      @xdgogo5231 Рік тому

      @@CodesEasy and how can I fix it?

    • @TheRNB
      @TheRNB Рік тому +3

      @@xdgogo5231 Well, I also got that error so I converted the switch statements into if-else statements instead.

    • @tnspeedy6444
      @tnspeedy6444 Рік тому

      How to change switch to if statement

    • @n-aera
      @n-aera Рік тому +13

      @@tnspeedy6444 right click on "switch" and use the context menu to translate the switch to if statements

  • @muhammadardialfianto6493
    @muhammadardialfianto6493 9 місяців тому +2

    1:39
    you type in your code in this arrangement :
    android:layout_gravity="center"
    android:textStyle="bold"
    android:textSize="30sp"
    It should be in that order ? Or we can put it in randomly ?
    And, does this code work for Android Studio Giraffe ?

    • @CodesEasy
      @CodesEasy  9 місяців тому +1

      You can put it to the element you want to apply these properties, any order is fine

  • @saurabhgaming1197
    @saurabhgaming1197 Рік тому +3

    Thanks sir for this video

  • @autofast8835
    @autofast8835 Рік тому +4

    i use it for my homework thanks❤

  • @nandhini55
    @nandhini55 3 місяці тому +1

    Sir i got constant expression required error in swicth case what to do sir?

  • @harshildave3621
    @harshildave3621 7 місяців тому +1

    idk why i am having error in switch case, errors are coming in all line which contain case. The error is Constant Expression required. Can anybody help me out pls

    • @CodesEasy
      @CodesEasy  7 місяців тому

      change switch to if else

  • @user-kd4nk4fi8n
    @user-kd4nk4fi8n 6 місяців тому +1

    I am getting error Constant expression required 4 times because of cases you used how can i fix it i think we need to import something can i get the import code

    • @dhruvgadhavi843
      @dhruvgadhavi843 5 місяців тому

      same i ve problem if you solved just reply me back

    • @humbertodx
      @humbertodx 3 місяці тому

      same error!! you resolved?

  • @muhammadasyraf3584
    @muhammadasyraf3584 Рік тому +1

    hello sir thanks for sharing the education, i have question for you, why you use linear layout instead use constraint layout?
    imo constraint layout more option for layout, thanks for answer

    • @CodesEasy
      @CodesEasy  Рік тому +2

      You can use constraint layout, for this a constraint layout will be a better option too. It's just easier for beginners to understand with linear layout

    • @muhammadasyraf3584
      @muhammadasyraf3584 Рік тому

      i see, thank you very much for answer.
      it's nice tutorial, keep it work!

  • @kaga846
    @kaga846 10 місяців тому +2

    sorry but my answers is not showing up in the textview

    • @CodesEasy
      @CodesEasy  10 місяців тому +1

      Check the code, you should have made a mistake

  • @YAMAHA_FAN_BOi_95
    @YAMAHA_FAN_BOi_95 8 місяців тому +1

    Sir i need to make a app having 4 custom put values arithmetic answers

    • @CodesEasy
      @CodesEasy  8 місяців тому

      Ok. You can ask if you have any doubts on our discord or WhatsApp group

  • @jayavardhanp280
    @jayavardhanp280 7 місяців тому +1

    2 errors its saying "Touch target size too small" for enter the number text both

    • @CodesEasy
      @CodesEasy  7 місяців тому

      EditText height might be less than minimum required one, set it above 50dp or above.

    • @jayavardhanp280
      @jayavardhanp280 7 місяців тому

      ​@@CodesEasy if i do that the layouts for my project is going wrong and it's not stop throwing errors even after changing

  • @safwenyahyaoui2821
    @safwenyahyaoui2821 6 місяців тому

    sir i cant allign the buttons , am having them vertically any solutions ?

  • @RadhikaKapoor-co3bl
    @RadhikaKapoor-co3bl Рік тому

    Such a great tutorial for beginner. Really appreciate.
    I am unable to download source code ,kindly help to get code for practice.

    • @CodesEasy
      @CodesEasy  Рік тому

      Check the description for source code

    • @AbhayKumar-ks7fh
      @AbhayKumar-ks7fh Рік тому

      @@CodesEasy the link to the source code is not working.

  • @md.ziaurrahman1452
    @md.ziaurrahman1452 10 місяців тому +1

    how to show . 33 after divided
    2 decimal place code pls

    • @CodesEasy
      @CodesEasy  10 місяців тому

      You can format it

  • @codevillain7756
    @codevillain7756 9 місяців тому +2

    @CodesEasy i am getting error like Constant expression required in the place of swith case

  • @SumitKumar-wo5jq
    @SumitKumar-wo5jq 6 місяців тому

    It is showing constant expression requires

  • @manyalajagadeesh3310
    @manyalajagadeesh3310 10 місяців тому +1

    great work

  • @shalinichoudhary3259
    @shalinichoudhary3259 2 місяці тому

    sir i'm facing an error regarding switch statement it shows the constraint expression of R.id... is incorrect

    • @itbiriyani
      @itbiriyani 2 місяці тому

      Yeah mee too

    • @CodesEasy
      @CodesEasy  2 місяці тому

      Change the switch to an if else statement - use chatgpt for help if needed

  • @srikanthchityala
    @srikanthchityala 24 дні тому +1

    Res > Layout is missing in my laptop

  • @varunsai1129
    @varunsai1129 7 місяців тому +1

    Hello sir, how can we export these apps into realtime??

    • @CodesEasy
      @CodesEasy  7 місяців тому

      You mean how to generate apk files. Go to menu, build and click generate apk

  • @abdulrahman9795
    @abdulrahman9795 Рік тому +1

    can i get thee complete code ??
    front end and back end bothj ??

  • @anjanprajapati6642
    @anjanprajapati6642 5 місяців тому

    Hello Sir I Have A Error And it is a constant expression required error on case R.id.button . how to solve it sir .?

  • @tyanad
    @tyanad 9 місяців тому +1

    please how do i add square root and power

    • @CodesEasy
      @CodesEasy  9 місяців тому

      You can add 2 more buttons and get the inputs and do the calculation in a function. Try chatgpt for help, you can also join our groups

  • @abhisaragarwal9084
    @abhisaragarwal9084 Рік тому +2

    Sir I am getting gradle sync error in Android studio how can I fix it pls tell I want to do Android development Also tell if I can do Android development in intellij idea pls

    • @CodesEasy
      @CodesEasy  Рік тому

      Need more details to help you with this error. Also you can use any ide but android studio makes your life a lot easier

    • @bimarshkhatri3244
      @bimarshkhatri3244 Рік тому

      took me 1 week to fix the gradle sync problem.

  • @Mrtopnotchforex
    @Mrtopnotchforex Рік тому +1

    Hello sir I'm having an error at the end saying constant expression expected 😢😢

    • @CodesEasy
      @CodesEasy  Рік тому +1

      Where did you see this error, check the error message for details

  • @torsti4791
    @torsti4791 5 місяців тому +1

    is this gradle or kotlin?

    • @Optropicraft
      @Optropicraft 5 місяців тому

      Android Studio uses Gradle as a build tool. Kotlin is a language that you can use in Android Studio but this video appears to use Java

  • @malaikahameed9588
    @malaikahameed9588 3 місяці тому +1

    Mera to answer ka ho error aarha wo call out nahi huab

    • @CodesEasy
      @CodesEasy  3 місяці тому

      ?

    • @malaikahameed9588
      @malaikahameed9588 3 місяці тому

      @@CodesEasy text view py jh py answer likha tha wh py hi run k time error aarha

    • @malaikahameed9588
      @malaikahameed9588 3 місяці тому

      Plz answer kardy mery question ka

  • @mctwistx1248
    @mctwistx1248 28 днів тому

    please remake for kotlin

  • @software_engineer_harish
    @software_engineer_harish 7 місяців тому +1

    which langauge is this

  • @technicalakahir
    @technicalakahir Рік тому +1

    sir mere pass error aa rha hai kase fix hoga plz btao

    • @CodesEasy
      @CodesEasy  Рік тому

      What is the error message?

    • @technicalakahir
      @technicalakahir Рік тому +1

      @@CodesEasy sir android studio ka video aache se bnao pura smj me aaye

    • @CodesEasy
      @CodesEasy  Рік тому +1

      Yes, we will soon be releasing a complete course in android soon.

    • @technicalakahir
      @technicalakahir Рік тому +1

      @@CodesEasy kab tak aayega

    • @CodesEasy
      @CodesEasy  Рік тому

      This week we will be publishing a complete food delivery app (restaurant dashboard, customer app, delivery executive app). So the complete android studio course will be most probably by the end of February.

  • @prishabmanandhar7117
    @prishabmanandhar7117 Рік тому +1

    im having with the case step...

    • @CodesEasy
      @CodesEasy  Рік тому

      Try converting switch to if condition

  • @JahnaviVaduguru
    @JahnaviVaduguru 9 місяців тому +1

    which app

  • @Laid_gaming
    @Laid_gaming 8 місяців тому +2

    Getid() showing error?

  • @user-yr9nf9sb4r
    @user-yr9nf9sb4r 8 місяців тому +2

    10 months later and somehow the formats have changed yet again. Why is Android Studio so difficult.

    • @CodesEasy
      @CodesEasy  8 місяців тому

      Yes, some layouts of android studio have changed.
      Nothing about the coding part will change.