How to make a Calculator in Android Studio | 2024

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ม.ค. 2025

ความคิดเห็น • 345

  • @EasyTuto1
    @EasyTuto1  2 ปีที่แล้ว +31

    implementation 'com.faendir.rhino:rhino-android:1.5.2'

    • @melanialeonelli5154
      @melanialeonelli5154 2 ปีที่แล้ว +1

      where?

    • @EzaZigzag
      @EzaZigzag 2 ปีที่แล้ว +1

      why my number button keypad background not change when i switch to dark mode ? thank you

    • @naveenpenagaluru4580
      @naveenpenagaluru4580 2 ปีที่แล้ว

      implementation 'com. faendir. rhino:rhino-android:1.5.2'

    • @m5553
      @m5553 2 ปีที่แล้ว +3

      hi
      it is not working
      please help

    • @EzaZigzag
      @EzaZigzag 2 ปีที่แล้ว +2

      @@m5553 did you already sync your gradle?

  • @raghavkr2746
    @raghavkr2746 ปีที่แล้ว +54

    "Say hello to this hello world and delete it", That was smooth af!!💫💫

  • @emmanuelreuven7350
    @emmanuelreuven7350 2 ปีที่แล้ว +18

    You are awsome, thank you.
    It was so easy to do this with your explanation.
    I managed to finish it from scratch in 2-3 hours, including finding myself installing Android Studio and the Emulator.
    Thank you so much.

  • @ZTechTutorials
    @ZTechTutorials 2 ปีที่แล้ว +1

    kiya bat hay. buht hee umda.. thanks.

  • @mrigankadas6684
    @mrigankadas6684 2 ปีที่แล้ว +35

    🤣🤣say hello to this hello world and delete it. Such a dominance over hello world programs.

    • @tesfamichaelalmaw
      @tesfamichaelalmaw 10 หลายเดือนก่อน

      🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣

  • @NehaMajithiya
    @NehaMajithiya 10 หลายเดือนก่อน +1

    Project done thank you sir👍😊

  • @ScaryBeats777_montage_creator
    @ScaryBeats777_montage_creator 2 ปีที่แล้ว +7

    My PC not accepting 'JavaScript ' keword showing error at time of importing in main activity
    Plzz reply...

  • @knightwor
    @knightwor 2 ปีที่แล้ว +2

    nice bother keep growing ☺️👍

  • @zo0oi_574
    @zo0oi_574 2 ปีที่แล้ว +2

    Very nice
    Keep going👍🏻

  • @q.w.e.r.t.y27
    @q.w.e.r.t.y27 ปีที่แล้ว

    u r literally god for me rn..u helped my finish my prject

    • @EasyTuto1
      @EasyTuto1  ปีที่แล้ว +1

      Thank you

    • @q.w.e.r.t.y27
      @q.w.e.r.t.y27 ปีที่แล้ว

      @@EasyTuto1 it is showing an error on 14:08 for me on the getText and the setText

  • @visheshdahiwale748
    @visheshdahiwale748 2 ปีที่แล้ว +1

    Thank you brother... the way of yours teaching is very simpler....

  • @ruduplays8769
    @ruduplays8769 2 ปีที่แล้ว +3

    THANK YOUUUU because of this video i understood all the basic concepts of android studio!
    keep making content like this! i love it.

  • @Siddharth_VividPlus
    @Siddharth_VividPlus ปีที่แล้ว +1

    I love you sir 💗💗💗💗💗
    Success hua
    So thank you so much ❤️🙏
    Gurudev 😊😊😊😊

  • @someone7307
    @someone7307 2 ปีที่แล้ว +3

    why the implementation 'com.faendir.rhino:rhino-android:1.5.2' didn't work? it has a new one now?

  • @KhushiDreamscape
    @KhushiDreamscape 2 หลายเดือนก่อน

    sir new implementation library?

  • @cheong34lol35
    @cheong34lol35 7 หลายเดือนก่อน +2

    how do you change the libs thing in your gradle part

  • @dhruvsharma5786
    @dhruvsharma5786 ปีที่แล้ว

    Thanks sir 🙏

  • @alexeymatveev9031
    @alexeymatveev9031 2 ปีที่แล้ว +5

    Thank you. There are minor problems, like if keeping pressing AC it goes below 0, but this is even better to solve as homework. Thank you very much!

    • @bobbygraphics
      @bobbygraphics 2 ปีที่แล้ว +2

      Change if statement to while..so while ac is above 0. It must clear

    • @alexeymatveev9031
      @alexeymatveev9031 2 ปีที่แล้ว

      @@bobbygraphics Thanks a lot. May be you can give me some heads up about the hardware requirements? I've set aside Android because it took like 5 minutes to recompile after every minor change. What is the preferred laptop configurations for this? I have MacAir with 8GB and I suspect there is something wrong about it not with configuration.. It should not be that demanding I guess...🙄🙄

    • @ashish_more
      @ashish_more ปีที่แล้ว

      @@alexeymatveev9031 I also have the same MacBook Air m1 base variant , and android studio is taking 3 gb of ram and the emulator is taking 5gb of ram and java is taking 1.5 gb of ram ! I don't know why it has such a high ram usuage!

  • @history_funy
    @history_funy 2 ปีที่แล้ว +1

    Verry good and easy following speech !!

  • @Naveen_Kumar0826
    @Naveen_Kumar0826 ปีที่แล้ว

    ❤❤❤❤❤❤thank you great work

  • @trog-l5k
    @trog-l5k 3 หลายเดือนก่อน

    bro i learned so much fr thx

  • @antaryamidas3319
    @antaryamidas3319 ปีที่แล้ว

    Why u use a relative layout at starting 0:55 ?

  • @JesusTeambijnor
    @JesusTeambijnor ปีที่แล้ว

    Brother, where will you publish this on Playstore, please tell me.

  • @imanonymous02
    @imanonymous02 ปีที่แล้ว

    The way you explain it, this was easier than making maggi. 🙇

    • @EasyTuto1
      @EasyTuto1  ปีที่แล้ว

      Happy to hear that!

  • @KJ7JHN
    @KJ7JHN 9 หลายเดือนก่อน

    @EasyTuto1 do you have a video that uses a keyboard listener?

  • @jrstudzinski1986
    @jrstudzinski1986 ปีที่แล้ว

    Incrível! Parabéns pelo trabalho! Funcionou perfeitamente! Ganhou mais 1 inscrito brasileiro! 👍👍👍

    • @EasyTuto1
      @EasyTuto1  ปีที่แล้ว

      Muito obrigado pelo apoio entusiasmado! Fico feliz em saber que você gostou e que agora tenho mais um assinante brasileiro incrível! 🎉 Seja muito bem-vindo à comunidade! Estou aqui para ajudar no que precisar. 😊

  • @pranjalsrivastava14
    @pranjalsrivastava14 3 วันที่ผ่านมา

    "materialbutton" not available in my android studio , what might be the issue?

  • @Mathu_meow
    @Mathu_meow 14 วันที่ผ่านมา

    Can you please tell about that what is the backend and frontend used

  • @moubiswasEdits
    @moubiswasEdits 6 หลายเดือนก่อน

    Thank you for the tutorial

  • @happymiki
    @happymiki 2 ปีที่แล้ว +2

    Nice brother 🎉 😍 😊

  • @bromonsterking
    @bromonsterking 2 ปีที่แล้ว +1

    Really you are great, and thank you ❤️

  • @HussnainAli-so4xq
    @HussnainAli-so4xq 7 หลายเดือนก่อน

    Awesome 👍

  • @luxiouslyrics8617
    @luxiouslyrics8617 2 ปีที่แล้ว +3

    What could be the problem because when I open the app and click any button, an error message appears saying "App has stopped".

    • @jampasemp1186
      @jampasemp1186 10 หลายเดือนก่อน

      U have to declare ur activity in the androidManifest

  • @Shashank-pu1qo
    @Shashank-pu1qo ปีที่แล้ว +6

    Import org. Mozilla. JavaScript. Context... Giving me error😭

    • @hexagaming9170
      @hexagaming9170 ปีที่แล้ว

      Mai apka problem fix kar sakta hu
      Contact karo mujhe mere about section me Whats app no. hai

    • @Ilovedoingthingsthatidontknow
      @Ilovedoingthingsthatidontknow 5 หลายเดือนก่อน +2

      How did u solve that ... same thing giving me error

    • @TZCoder
      @TZCoder 20 วันที่ผ่านมา

      Make sure cAsE is correct Mozilla is different from mozilla. Only Context has capital letter.

  • @thebhagwabilla
    @thebhagwabilla 10 หลายเดือนก่อน

    bhaiya your explanation is always the best among all the people. You own a huge respect and position in my android journey. ❤❤❤

    • @EasyTuto1
      @EasyTuto1  10 หลายเดือนก่อน

      Thank you so much 😀

    • @Ilovedoingthingsthatidontknow
      @Ilovedoingthingsthatidontknow 5 หลายเดือนก่อน

      Did ur code worked ?? Mine giving error on adding dependcy..can u plz help me with this

  • @lohithyadav7225
    @lohithyadav7225 2 ปีที่แล้ว

    Good one 👍👍

  • @asadbekaminboyev3311
    @asadbekaminboyev3311 2 ปีที่แล้ว +1

    The implementation in Gradle is working?

  • @ultragameryt1780
    @ultragameryt1780 ปีที่แล้ว

    Awesome 👍😊

  • @virtual_space399
    @virtual_space399 2 ปีที่แล้ว +1

    Bro kya hum apne android phone se calculator app bna skte h ....

  • @GhOsTs_369
    @GhOsTs_369 4 หลายเดือนก่อน

    Sir why is my 2nd linear layout overlapping with the first one ?

  • @MichaelLuisFelasol
    @MichaelLuisFelasol 3 หลายเดือนก่อน

    its 2024 and my gradle is language is kts is there a way you can change it to the one you used?

  • @fyft84
    @fyft84 ปีที่แล้ว

    Thanks bhai ❤🎉

  • @saiungarala6686
    @saiungarala6686 4 หลายเดือนก่อน

    How to add that line into dependencies

  • @ilmdotcom6767
    @ilmdotcom6767 ปีที่แล้ว +1

    thanks buddy.... but at last when you imported the libraries, it is a bit confusing for newbie..

    • @EasyTuto1
      @EasyTuto1  ปีที่แล้ว +1

      Sorry for that.

  • @docps9591
    @docps9591 2 ปีที่แล้ว +2

    You are amazing

  • @PhoenixYT00223
    @PhoenixYT00223 ปีที่แล้ว +1

    error showing during javascript writing??

  • @YogeshJangid986
    @YogeshJangid986 2 ปีที่แล้ว +1

    Hi, First of all thank you for creating this project. I downloaded the project and tested. It has some bugs, When we minus 100-100 = It's giving wrong value as well as % isn't working. Please check once.

  • @j.m2312
    @j.m2312 ปีที่แล้ว +1

    there are errors in main. activity. java file.
    its my first app and i can't solve it.
    i need help sir 🥺 plz

  • @LancineDiare-ww8xn
    @LancineDiare-ww8xn 10 หลายเดือนก่อน

    Thank you a lot.

  • @ralphsantiago850
    @ralphsantiago850 2 ปีที่แล้ว +5

    the part of import org.mozilla.javascript.Context;
    import org.mozilla.javascript.Scriptable; is not working for me

  • @axelmedina8834
    @axelmedina8834 2 ปีที่แล้ว +1

    Can someone help me? My code does not have errors but the text view does not shows any number when i push any materialbutton

  • @demstheprogrammer
    @demstheprogrammer 2 ปีที่แล้ว

    Thank you for this toturial i hope its work in my compiler when i code this later

    • @EasyTuto1
      @EasyTuto1  2 ปีที่แล้ว +1

      Yes it will

  • @aishee5961
    @aishee5961 ปีที่แล้ว

    Thank you so much sir

  • @Aakash983
    @Aakash983 6 หลายเดือนก่อน

    How to open in Design Model?

  • @Abbaskhan-qv5xd
    @Abbaskhan-qv5xd ปีที่แล้ว +1

    Multiply option is not working

  • @Tiwari.A
    @Tiwari.A 3 หลายเดือนก่อน

    By doing the same only - and + operations are working what more to do for * and /

  • @priyas_lifestyle09
    @priyas_lifestyle09 6 หลายเดือนก่อน +1

    Nice
    But app download kese kre?

  • @mouaadibnujabal3919
    @mouaadibnujabal3919 8 หลายเดือนก่อน

    Thank you bro

    • @EasyTuto1
      @EasyTuto1  8 หลายเดือนก่อน

      Thanks💛

  • @haiqaarshad3474
    @haiqaarshad3474 ปีที่แล้ว

    can you explain whats going in gradle app ???

    • @swadeshicreator9717
      @swadeshicreator9717 ปีที่แล้ว +1

      Basically we asked gradle to add that library to our project which was not by default present for our use.

  • @lenovopc4257
    @lenovopc4257 ปีที่แล้ว +1

    non-static method 'setoptimizationlevel(int)' cannot be referenced from a static context .....this error show! What will I do

  • @heterawasmapreha
    @heterawasmapreha 2 ปีที่แล้ว +1

    How did the app theme change in dark mode? Isn't working for me

    • @niyisyt
      @niyisyt 2 ปีที่แล้ว

      Do you have an answer yet?

    • @EasyTuto1
      @EasyTuto1  2 ปีที่แล้ว

      Turn dark mode in your phone.
      It will automatically turn on.

    • @heterawasmapreha
      @heterawasmapreha 2 ปีที่แล้ว

      @@EasyTuto1 It works on Redmi. But when I tried on Pixel Pro and Samsung S22 Ultra, it ends up with a really ugly coloring... Any ideas abt this?

  • @jonthamastersmooth
    @jonthamastersmooth 2 ปีที่แล้ว +1

    Do you have a version for doing this in Kotlin?

  • @nwcoder
    @nwcoder 2 ปีที่แล้ว +1

    Please upload next part on this calculator app scientific mode...

  • @theconfusingriddle
    @theconfusingriddle 2 ปีที่แล้ว +4

    Brother I am facing problem in solution Text View it's not getting clear😞😞

  • @Prncgr8
    @Prncgr8 9 หลายเดือนก่อน

    When I try put paste linear layout nothing comes 😢 if I try manual it doesn't work

    • @EasyTuto1
      @EasyTuto1  9 หลายเดือนก่อน

      Check correctly

  • @jejesan9297
    @jejesan9297 11 หลายเดือนก่อน

    please may i know the name of your programming tools?

    • @EasyTuto1
      @EasyTuto1  11 หลายเดือนก่อน

      Its Android Studio.

  • @imhassan4119
    @imhassan4119 ปีที่แล้ว +1

    Please sir how can I import JavaScript?

  • @catalintudoreanu8880
    @catalintudoreanu8880 2 ปีที่แล้ว +1

    thanks man, you good dawg

  • @history_funy
    @history_funy 2 ปีที่แล้ว +2

    Well done your tutorial.
    There is one error.
    If you keep pressing the "C" key,
    an error called org.moailla.javascript.Undefined@o... will occur at the end.
    What could be the cause?

    • @diras1127
      @diras1127 2 ปีที่แล้ว +1

      that has two reasons, one is using substring(0,0) may cause crash(so you need to change the "C" part, add an if statement), and the other is that setText("") does not cause "ERR", so you need to add something to the if statement in the filling resultTv part

    • @solomonezekiel5302
      @solomonezekiel5302 ปีที่แล้ว

      @@diras1127 please explain in plain english

    • @atulthakur6928
      @atulthakur6928 ปีที่แล้ว

      same error . how to fix

    • @Sahil-jx2to
      @Sahil-jx2to ปีที่แล้ว

      ​@@atulthakur6928 were you able to solve it? I encountered the same.......solved to some sort but got another one.

    • @joydeepbhandary902
      @joydeepbhandary902 ปีที่แล้ว +1

      ADD THIS In the case of "C"
      else if (button_text.equals("C")) {
      if(datatocalculate.length()==1)
      {datatocalculate="0";}
      else {
      datatocalculate = datatocalculate.substring(0, datatocalculate.length() - 1);}
      }
      it will work😇

  • @syedfaisal417
    @syedfaisal417 ปีที่แล้ว +1

    Hi brother I am from Pakistan, When I press C button for multiple times and at the end when there is no value and I press C button then the application gets close automatically and I see the library name of JavaScript in Text view. Please provide the solution. Thanks

    • @EasyTuto1
      @EasyTuto1  ปีที่แล้ว +1

      Yeah you can just add condition when there is no value.

  • @soylent0815
    @soylent0815 2 ปีที่แล้ว +8

    Any idea how to keep the exact precision when calculating? For example 6.1 multiplied by 3 results in 18.29999999999997. I guess it has something to do with the floating point numbers, but I can't figure out how to handle this problem in the code from this video... Apart from that - great tutorial! 👍

    • @heterawasmapreha
      @heterawasmapreha 2 ปีที่แล้ว

      second that

    • @Kamal-cn6kk
      @Kamal-cn6kk 2 ปีที่แล้ว +4

      Use BigDecimal class rather than floating point numbers to get accurate values.

    • @TANISHQTHUSE
      @TANISHQTHUSE ปีที่แล้ว +1

      I once saw in a tutorial for addition of dollar. This error occurs because computers are poor in storing decimal number in form of binary. Convert 6.1 to 61 and 3 to 30. Multiply them , divide by 10. This should solve the issue. Simple and easy solution. Else you can always use relevant libraries in the language you are using.

  • @mohamedrashid1091
    @mohamedrashid1091 ปีที่แล้ว

    Bro my all functions are working good but while turn on the dark mode it will not converting in dark theme properly

  • @sivanandham8836
    @sivanandham8836 ปีที่แล้ว

    nandrigal kodi annaa

  • @sakibtalukqder
    @sakibtalukqder 11 หลายเดือนก่อน

    too much helpful,,

  • @jorgemendoza7128
    @jorgemendoza7128 ปีที่แล้ว

    I have a problem, when I try it on the virtual device, the C button and others do not work and the app closes many times

  • @samirmortada2097
    @samirmortada2097 2 ปีที่แล้ว +1

    Brother can u please make the code pdf or anything inorder to make copy and paste without wasting time thank you

  • @krupakarguvvalegi8426
    @krupakarguvvalegi8426 ปีที่แล้ว

    bro while i have finished the calci there is a problem occuring like double no are coming while pressing any button can u help me bro

  • @anhque3767
    @anhque3767 ปีที่แล้ว

    Thank you,sir.

    • @EasyTuto1
      @EasyTuto1  ปีที่แล้ว

      You are most welcome

  • @babraksohail6965
    @babraksohail6965 2 ปีที่แล้ว +4

    Brother Could You Explain in depth About Rhino implementation u did in your project like the purpose of using script, context.setOptimizationLevel (-1) , In short, the whole portion of try. Eagerly Awaiting for your reply !
    thanks :) Love Your Work :)

    • @felixmaundu3891
      @felixmaundu3891 2 ปีที่แล้ว

      Did you get an explanation?

    • @babraksohail6965
      @babraksohail6965 2 ปีที่แล้ว

      @@felixmaundu3891 no brother

    • @ronp1436
      @ronp1436 ปีที่แล้ว

      the function gets values between -1 to 9 and what it means is that higher levels of optimization can improve the performance of the JavaScript code but may also increase the time it takes to compile the code. So for this calculator simple app it really doesn't matter

    • @kaminipal7248
      @kaminipal7248 ปีที่แล้ว

      Same problem

    • @kaminipal7248
      @kaminipal7248 ปีที่แล้ว

      Please reply

  • @sithusoe8797
    @sithusoe8797 ปีที่แล้ว

    Thanks a lot

  • @muneesff5549
    @muneesff5549 2 ปีที่แล้ว +1

    bro Ac button was not working bro what can i do bro

  • @iamsaqeebpathan
    @iamsaqeebpathan ปีที่แล้ว

    what happend if i click only C?? the app is crashed

  • @Mathu_meow
    @Mathu_meow 14 วันที่ผ่านมา

    Anyone please reply here what is the Backend used?

  • @tushajoshi5186
    @tushajoshi5186 ปีที่แล้ว

    If the result actually has .0 in the value it will also be replaced by empty string ?

    • @navneetjasrotia
      @navneetjasrotia ปีที่แล้ว

      no, not the whole result. Only .0 will get replace by the empty string

  • @AndreasWegerer-kz1sg
    @AndreasWegerer-kz1sg ปีที่แล้ว

    How i can Duplikate the Buttons? Layout?

  • @KundiXola
    @KundiXola 24 วันที่ผ่านมา

    there is no activity_main_xml

  • @SADIQLLC
    @SADIQLLC ปีที่แล้ว

    Thanks bro
    I have created it for same like your work but the plus button just works other all not working like minus multiplay divide, please guide me how to solve it...

    • @EasyTuto1
      @EasyTuto1  ปีที่แล้ว

      Something is wrong in the code.
      Try resolving. ❤️

  • @moinyesin
    @moinyesin 4 หลายเดือนก่อน

    The parentheses doesn't work... And there is a problem where it shows 55 when you click 5=5(nn for n=n)...another problem is it shows Err if i press 5+= (n+=)

  • @shyamjiverma5467
    @shyamjiverma5467 ปีที่แล้ว

    bro. my C button is not working and showing as pressing it.

  • @shyamsonswadeep6965
    @shyamsonswadeep6965 2 ปีที่แล้ว

    Sir please resolve my problem
    If we run the app then it will not run it shows a msg that ''Unfortunately Calculator'' has stopped.

  • @hadiuzzamanovi4049
    @hadiuzzamanovi4049 2 ปีที่แล้ว

    Thanks 💝

  • @tennetialekhya7572
    @tennetialekhya7572 ปีที่แล้ว

    It's showing "Err" Whenever I'm trying to use an operator... Plz help

  • @clashlikestinger706
    @clashlikestinger706 ปีที่แล้ว

    Bro jabhi koi operator click kar Raha hu to Err hi show kar raha hai?

  • @bcastudent6390
    @bcastudent6390 ปีที่แล้ว

    Backend code is not working. Any button not work.please help me sir....

  • @fred2548
    @fred2548 ปีที่แล้ว

    help me out im trying to copypaste and they keep overlaping each other
    how do I get the four buttons below one another

  • @abdelmadjidbettache
    @abdelmadjidbettache ปีที่แล้ว

    Hello, you didn't solve the dot button it concatenates more than one

  • @naveen1001
    @naveen1001 2 ปีที่แล้ว

    Sir, How can i use these calculator in my android 11

  • @BIKIKUMARSAH-o6u
    @BIKIKUMARSAH-o6u ปีที่แล้ว

    THANK YOU

  • @lenovopc4257
    @lenovopc4257 ปีที่แล้ว

    My app didn't not give result what will I do

  • @pranjalsrivastava14
    @pranjalsrivastava14 ปีที่แล้ว

    Hi I have successfully created a calculator in this but can't see anything on my emulator. What might be the issue?

    • @EasyTuto1
      @EasyTuto1  ปีที่แล้ว

      Is it running on your device?

    • @pranjalsrivastava14
      @pranjalsrivastava14 ปีที่แล้ว

      @@EasyTuto1 no

    • @EasyTuto1
      @EasyTuto1  ปีที่แล้ว

      It’s crashing may be.
      So check the Logcat