How to make a Scientific Calculator App | Android Project | Android Studio

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ก.ย. 2024
  • How to make a scientific calculator android app. you can check the github repository for the updated code and bug fixes.
    Source Code: github.com/eva...
    Github Repo: github.com/eva...
    Join our Facebook Group : / codingcom
    Our Instagram : / codingwithevan
    Our Facebook : / codingwithevan
    Music Credit
    -------------------------------------------------------------------------------------
    ► Creator Credit: Jarico - Island : / is. .
    ► Jarico - Island: • Video
    🔈 Download free this song here : www.dropbox.com/s/wm0vhjlcfbboh59…20Island.wav?dl=0
    -------------------------------------------------------------------------------------

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

  • @tsogangmosweswe6545
    @tsogangmosweswe6545 3 ปีที่แล้ว +4

    I need to know more about you eval method bro... I like the way you did it

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

    That's great! I love this video. But I would like to know if you've done any video that explains how to use android studio and also find out how you've done that eval function. Thanks in advance.

  • @alishashaikh4265
    @alishashaikh4265 3 ปีที่แล้ว +4

    Can you please 🥺 explain smthng about eval function or provide any link for that ???

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

    Hi, bro. I see there are many comments asking you to explain what you did with de eval method and I'm also interested on it, hehe. And I also see you marked with a heart those comments, so... I ask you if you have uploaded any video so far explaining it, so I could watch it and understand more. Thanks.

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

    For brevity, why not create one click listener for all the digit buttons (0 - 9) then you can just look to the button's text property to get the digit.

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

    Nice 😊 video. Keep posting such videos.

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

    Helpful video. But sir u should make the video with explanation and own voice.

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

    nice Evan bro

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

    Thank you so much you are a literal life saver man...!!! really appreciate this video🥺🥺🥺

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

      Is your project working properly

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

    Can you please explain eval() method ?

  • @apnadekhtu
    @apnadekhtu 3 ปีที่แล้ว

    one suggestion , add the butter knife dependency for many button.

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

    Thank You so much bro

  • @dolbyncs3812
    @dolbyncs3812 3 ปีที่แล้ว

    Excellent work babs

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

    Nice bro...

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

    Amazing 🤘🤘🤘

  • @gamertamil7577
    @gamertamil7577 3 ปีที่แล้ว

    app close suddenly when i click clear button without any opertaion.i need help

  • @nicktrixs
    @nicktrixs 3 ปีที่แล้ว

    Bro iam fed up with the layout sizes.....when I installed my app on a bigger screen every buttons are missing....how can I fix it bro.... please reply me

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

    Thanks for the content. Btw, do you have any ideas for making the app not crash if the user’s syntax wrong?
    It also seems that the app crashes every time I press the “=“ and “C” button without any input. Is there any way to fix that?

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

      You can add a condition to check for empty text in onclicklistener

    • @SS-vl3kz
      @SS-vl3kz 2 ปีที่แล้ว

      @@CodingWithEvan Hi can you please calculate (sin 90 +cos 0) in this calculator. I want to see it working or not ???

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

      @@SS-vl3kz 1

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

    User interface is excellent.please send the source code.

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

      here it is, github.com/evanemran/DroidCalc

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

      @@CodingWithEvan It works perfectly.
      Thank you very much.

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

    Amazing broo keep it up

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

    Hey there!
    Loved the program!
    Can you please send the code of the method that you used to evaluate the equation on click of the "=" button

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

      here is the source code: github.com/evanemran/DroidCalc

    • @pakonkaki4122
      @pakonkaki4122 3 ปีที่แล้ว

      @@CodingWithEvan the log button is not working why

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

      did you understood the logic of eval method?

  • @cliffordyeboah4565
    @cliffordyeboah4565 3 ปีที่แล้ว

    Nice work bro

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

    Hello bro if any user input incorrect input then the app is crashing

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

    thank you very much

  • @SumonIslam-go9ld
    @SumonIslam-go9ld ปีที่แล้ว

    If the point is not followed by a zero. 5*5=20 ,not 5*5=20.0

  • @farhanlearn8753
    @farhanlearn8753 3 ปีที่แล้ว +5

    that was perfect

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

    Hello,
    Request you Kindly make cricket scoring app with admin panel and ads including

  • @VinayJadaun-tx3jr
    @VinayJadaun-tx3jr 6 หลายเดือนก่อน

    i have used this code but my app is constinously crashing don't know what to do

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

    Bro I have a problem in bequle the error is unexpected token and expected and more

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

    how to add power button? ^(

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

    Sorry..how to change E form into 0 form?

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

      I tried 232000 x 110 = 2.552E7
      How to change the result into 0 form?

  • @engrnehalkhan
    @engrnehalkhan 3 ปีที่แล้ว

    Hello dear sir I want to fix this equal button when input 12+ or something and then click to equal button then my app crushing. I wanna show there toast msg here. When input is incorrect then my app going to crushing.
    bequal.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View v) {
    String val = tvmain.getText().toString();
    String replacedString = val.replace('÷','/').replace('×', '*');
    double result = eval(replacedString);
    String r = String.valueOf(result);
    tvmain.setText(r);
    tvsec.setText(val);
    }
    });
    ///please fix this crushing point

  • @shahzaibbukharii6473
    @shahzaibbukharii6473 3 ปีที่แล้ว

    integer value mein b dot k bd 0 ata haii isko kaisy remove krein gy like 2+4=6.0 iska kya check lgy gw k jb hum add ya subtract krein tou value integer mein aey like 2+4=6 help me!! plzz

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

      Hey i want to ask you us your project equal button functioning or not? I have an issue in equal button thats all

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

    please how can i remove the decimal

  • @pakbertgaming8222
    @pakbertgaming8222 3 ปีที่แล้ว

    how about the null error for the C if you delete the number and delete again it will be close the apps.. you need the null check

    • @CodingWithEvan
      @CodingWithEvan  3 ปีที่แล้ว

      Yes. Null checker needs to be added. I didn't add on every button because the video was becoming very large.

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

    how to display error for e.g syntax error. instead of showing the error it exits the app

    • @CodingWithEvan
      @CodingWithEvan  3 ปีที่แล้ว

      you can display toast messages for unhandled conditions.

    • @ehtishammajeed6917
      @ehtishammajeed6917 3 ปีที่แล้ว

      @@CodingWithEvan can you please write line of code or upload a video. I shall be very thankful to you for this kindness. I have tk make an app for my final examination and i am facing to much difficulties 😥💔

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

      sure, here is a simple demo of handling errors with toast.
      if (!textfield.getText().toString().isEmpty())
      {
      //doSomething
      }
      else
      {
      Toast.makeText(MainActivity.this, "Error", Toast.LENGTH_SHORT).show();
      }

    • @ehtishammajeed6917
      @ehtishammajeed6917 3 ปีที่แล้ว

      @@CodingWithEvan i should write it in main activity?

  • @RameshPatel-cb9yc
    @RameshPatel-cb9yc 3 ปีที่แล้ว

    Code Compiled in Android Studio 2020 but apk failed to install even after a Github download of code same error "Unknown Error could not parse file" this happens on Emulator as well a actual device...On to the next project..........

  • @RafeeAhmad
    @RafeeAhmad 3 ปีที่แล้ว

    Hi sir which editor use for creating app please reply

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

      Android Studio.

    • @RafeeAhmad
      @RafeeAhmad 3 ปีที่แล้ว

      @@CodingWithEvan Thanks sir

  • @mdemonhossen5701
    @mdemonhossen5701 3 ปีที่แล้ว

    Supper bother

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

    Is the language java or kotlin

  • @Ankitmishra-qk6zi
    @Ankitmishra-qk6zi 3 ปีที่แล้ว +1

    sir code run nahi ho raha hai

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

    hello very good video. but i have a problem cos. tan, and sin were not fully displayed. ta, si, co how to solve this?

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

      You can decrease the text size.

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

      @@CodingWithEvan Okay Thanks, but there is a major problem that when we did a calculation that has nothing to do with the app crashing. Could you update the code, or tell me the code to add and where, because I am a beginner. Thank you.

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

    sr please share eval function coding plz

  • @krishnaTiwari851
    @krishnaTiwari851 4 ปีที่แล้ว

    Bro release the course from basic to advance on Android development

  • @shashankkkk
    @shashankkkk 4 ปีที่แล้ว

    Thank you for this video.... But i am having issue in Log and Ln operator.... i checked everything but there is no error but its not working when i install it in phone these two function were not working.... please help me for this....

    • @CodingWithEvan
      @CodingWithEvan  4 ปีที่แล้ว

      sure, you can share your code screenshot in our group, I will check
      facebook.com/groups/codingcom

    • @shashankkkk
      @shashankkkk 4 ปีที่แล้ว

      @@CodingWithEvan man there are a lot of bugs in the code.... App crashes if I touch any operator button alone

    • @CodingWithEvan
      @CodingWithEvan  4 ปีที่แล้ว

      this errors can be handled by adding some string compare methods. I haven't added each of them in the video because that'd make the video longer. You can follow the github repository of the project, there i will update the code.
      github.com/evanemran/DroidCalc

    • @engrnehalkhan
      @engrnehalkhan 3 ปีที่แล้ว

      @@shashankkkk hello bro I want to fix this crushing point

  • @archit7606
    @archit7606 3 ปีที่แล้ว

    Why you replaced "+" with "/"

    • @CodingWithEvan
      @CodingWithEvan  3 ปีที่แล้ว

      I replaced "÷" with "/" and "×" with "*" to use arithmetic operators.

    • @archit7606
      @archit7606 3 ปีที่แล้ว

      @@CodingWithEvan Oh. I thought it was "+" instead of "÷" 😅
      And what about Derivatives and Integration calculations ? How to implement those ? Please help

  • @hamzaikram2700
    @hamzaikram2700 3 ปีที่แล้ว

    Amazing but it can't calculate the double(1.5+1.5) values. Any Solution?

  • @nirobbhuyain2003
    @nirobbhuyain2003 3 ปีที่แล้ว

    Tnxxx

  • @softpeople8744
    @softpeople8744 3 ปีที่แล้ว

    if there is no number and you press "C" then the app will stop and will show that the app is unfortunately stop. also if you press equal without any inputs then the app will stop unfortunately.

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

      Insert C button code in try-catch method.

    • @utkarshdixit9277
      @utkarshdixit9277 3 ปีที่แล้ว

      @@bang679 thanks bro

  • @goldpro7549
    @goldpro7549 3 ปีที่แล้ว

    Sri how Mack offline AI

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

    please share eval function text file .

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

      here, github.com/evanemran/Android_Tutorials/tree/master/Scientific_Calculator

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

      @@CodingWithEvan Thank You .

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

      @Tofael Ahmed did you understood the logic of eval function

  • @jeremiahahemba
    @jeremiahahemba 3 ปีที่แล้ว

    How do I get square root sign

  • @swatiee
    @swatiee 3 ปีที่แล้ว

    Can you please tell me how to fix Installed build tools 31.0.0 corrupted error?

  • @reza.r3785
    @reza.r3785 2 ปีที่แล้ว

    hi bro. Why does it show decimal numbers after doing minus or addition?

  • @drkcreations9387
    @drkcreations9387 3 ปีที่แล้ว

    getting app stopping

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

    Plz sir Don't put music on learning videos

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

      Sure. My new videos doesn’t have any background music

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

    8 43

  • @Ankitmishra-qk6zi
    @Ankitmishra-qk6zi 3 ปีที่แล้ว

    please sir help me

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

    Hello sir please listen to me

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

    pls sr

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

    Louco quem copia esses códigos básicos. Tá mais para uma aula de música de fundo do que explicando as burrices dessa classe inteira. Cheios de erros

  • @affanraihan9776
    @affanraihan9776 3 ปีที่แล้ว

    thank you very much.

  • @SumonIslam-go9ld
    @SumonIslam-go9ld ปีที่แล้ว

    If the point is not followed by a zero. 5*5=20 ,not 5*5=20.0