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

  Рет қаралды 81,764

Coding With Evan

Coding With Evan

3 жыл бұрын

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/evanemran/Android_...
Github Repo: github.com/evanemran/DroidCalc
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
@graceenyegue9095
@graceenyegue9095 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.
@jameurfida7441
@jameurfida7441 3 жыл бұрын
Thank You so much bro
@tsogangmosweswe6545
@tsogangmosweswe6545 3 жыл бұрын
I need to know more about you eval method bro... I like the way you did it
@caribbeanman3379
@caribbeanman3379 3 жыл бұрын
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.
@dolbyncs3812
@dolbyncs3812 3 жыл бұрын
Excellent work babs
@gopal_software
@gopal_software 3 жыл бұрын
Amazing 🤘🤘🤘
@alishashaikh4265
@alishashaikh4265 3 жыл бұрын
Can you please 🥺 explain smthng about eval function or provide any link for that ???
@todoentecnologiayt
@todoentecnologiayt 2 жыл бұрын
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.
@mohammedimtiaz7476
@mohammedimtiaz7476 3 жыл бұрын
Nice bro...
@alixaprodev
@alixaprodev 3 жыл бұрын
Nice 😊 video. Keep posting such videos.
@CodingWithEvan
@CodingWithEvan 3 жыл бұрын
Thank you.
@cliffordyeboah4565
@cliffordyeboah4565 3 жыл бұрын
Nice work bro
@affanraihan9776
@affanraihan9776 3 жыл бұрын
thank you very much.
@jaydoesediting9587
@jaydoesediting9587 11 ай бұрын
Thank you so much you are a literal life saver man...!!! really appreciate this video🥺🥺🥺
@priyasingh9554
@priyasingh9554 Ай бұрын
Is your project working properly
@vbnet2008net
@vbnet2008net Жыл бұрын
thank you very much
@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
@khanhuzaibi9955
@khanhuzaibi9955 3 жыл бұрын
nice Evan bro
@CodingWithEvan
@CodingWithEvan 3 жыл бұрын
Thank you.
@apnadekhtu
@apnadekhtu 3 жыл бұрын
one suggestion , add the butter knife dependency for many button.
@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
@bang679
@bang679 3 жыл бұрын
Can you please explain eval() method ?
@alwaysforu8558
@alwaysforu8558 3 жыл бұрын
Amazing broo keep it up
@CodingWithEvan
@CodingWithEvan 3 жыл бұрын
Thank you.
@Sitasoni310
@Sitasoni310 2 жыл бұрын
Helpful video. But sir u should make the video with explanation and own voice.
@mdemonhossen5701
@mdemonhossen5701 2 жыл бұрын
Supper bother
@vsedit9258
@vsedit9258 2 жыл бұрын
Bro I have a problem in bequle the error is unexpected token and expected and more
@gamertamil7577
@gamertamil7577 3 жыл бұрын
app close suddenly when i click clear button without any opertaion.i need help
@BabulCode
@BabulCode 2 жыл бұрын
Hello bro if any user input incorrect input then the app is crashing
@Shanaoh
@Shanaoh 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 жыл бұрын
You can add a condition to check for empty text in onclicklistener
@SS-vl3kz
@SS-vl3kz Жыл бұрын
@@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
@nirobbhuyain2003
@nirobbhuyain2003 3 жыл бұрын
Tnxxx
@VinayJadaun-tx3jr
@VinayJadaun-tx3jr 4 ай бұрын
i have used this code but my app is constinously crashing don't know what to do
@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..........
@clickmyname3357
@clickmyname3357 Жыл бұрын
please how can i remove the decimal
@farhanlearn8753
@farhanlearn8753 3 жыл бұрын
that was perfect
@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.
@gameworldesports
@gameworldesports 2 жыл бұрын
Hello, Request you Kindly make cricket scoring app with admin panel and ads including
@chaitanyachunduri6390
@chaitanyachunduri6390 3 жыл бұрын
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 жыл бұрын
here is the source code: github.com/evanemran/DroidCalc
@pakonkaki4122
@pakonkaki4122 3 жыл бұрын
@@CodingWithEvan the log button is not working why
@jaiswalansh4283
@jaiswalansh4283 2 жыл бұрын
did you understood the logic of eval method?
@ahmedsiraaj6716
@ahmedsiraaj6716 Жыл бұрын
Is the language java or kotlin
@shashankkkk
@shashankkkk 3 жыл бұрын
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 3 жыл бұрын
sure, you can share your code screenshot in our group, I will check facebook.com/groups/codingcom
@shashankkkk
@shashankkkk 3 жыл бұрын
@@CodingWithEvan man there are a lot of bugs in the code.... App crashes if I touch any operator button alone
@CodingWithEvan
@CodingWithEvan 3 жыл бұрын
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
@reza.r3785
@reza.r3785 2 жыл бұрын
hi bro. Why does it show decimal numbers after doing minus or addition?
@RafeeAhmad
@RafeeAhmad 3 жыл бұрын
Hi sir which editor use for creating app please reply
@CodingWithEvan
@CodingWithEvan 3 жыл бұрын
Android Studio.
@RafeeAhmad
@RafeeAhmad 3 жыл бұрын
@@CodingWithEvan Thanks sir
@umairwaseem882
@umairwaseem882 9 ай бұрын
how to add power button? ^(
@hamzaikram2700
@hamzaikram2700 3 жыл бұрын
Amazing but it can't calculate the double(1.5+1.5) values. Any Solution?
@albashism9931
@albashism9931 Жыл бұрын
use float
@ehtishammajeed6917
@ehtishammajeed6917 3 жыл бұрын
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 жыл бұрын
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?
@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 Ай бұрын
Hey i want to ask you us your project equal button functioning or not? I have an issue in equal button thats all
@goldpro7549
@goldpro7549 3 жыл бұрын
Sri how Mack offline AI
@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 жыл бұрын
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.
@jeremiahahemba
@jeremiahahemba 3 жыл бұрын
How do I get square root sign
@tsogangmosweswe6545
@tsogangmosweswe6545 3 жыл бұрын
Daddy Google 😂😂
@swatiee
@swatiee 3 жыл бұрын
Can you please tell me how to fix Installed build tools 31.0.0 corrupted error?
@sarthakarora6496
@sarthakarora6496 2 жыл бұрын
Use 30 instead
@sarthakarora6496
@sarthakarora6496 2 жыл бұрын
I got the same error
@ganeshaguru2187
@ganeshaguru2187 3 жыл бұрын
User interface is excellent.please send the source code.
@CodingWithEvan
@CodingWithEvan 3 жыл бұрын
here it is, github.com/evanemran/DroidCalc
@ganeshaguru2187
@ganeshaguru2187 3 жыл бұрын
@@CodingWithEvan It works perfectly. Thank you very much.
@saqibali001
@saqibali001 Жыл бұрын
sr please share eval function coding plz
@krishnaTiwari851
@krishnaTiwari851 3 жыл бұрын
Bro release the course from basic to advance on Android development
@CodingWithEvan
@CodingWithEvan 3 жыл бұрын
sure, I am working on it.
@mohammadnuriskiakbar7803
@mohammadnuriskiakbar7803 3 жыл бұрын
Sorry..how to change E form into 0 form?
@mohammadnuriskiakbar7803
@mohammadnuriskiakbar7803 3 жыл бұрын
I tried 232000 x 110 = 2.552E7 How to change the result into 0 form?
@SumonIslam-go9ld
@SumonIslam-go9ld Жыл бұрын
If the point is not followed by a zero. 5*5=20 ,not 5*5=20.0
@drkcreations9387
@drkcreations9387 3 жыл бұрын
getting app stopping
@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 жыл бұрын
Insert C button code in try-catch method.
@utkarshdixit9277
@utkarshdixit9277 3 жыл бұрын
@@bang679 thanks bro
@TheIncredibleTA
@TheIncredibleTA 3 жыл бұрын
please share eval function text file .
@CodingWithEvan
@CodingWithEvan 3 жыл бұрын
here, github.com/evanemran/Android_Tutorials/tree/master/Scientific_Calculator
@TheIncredibleTA
@TheIncredibleTA 3 жыл бұрын
@@CodingWithEvan Thank You .
@jaiswalansh4283
@jaiswalansh4283 2 жыл бұрын
@Tofael Ahmed did you understood the logic of eval function
@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
@Ankitmishra-qk6zi
@Ankitmishra-qk6zi 3 жыл бұрын
sir code run nahi ho raha hai
@CodingWithEvan
@CodingWithEvan 3 жыл бұрын
what is the error?
@drkcreations9387
@drkcreations9387 3 жыл бұрын
@@CodingWithEvan app gets 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
@Ankitmishra-qk6zi
@Ankitmishra-qk6zi 3 жыл бұрын
please sir help me
@shikshitavishwakarma9229
@shikshitavishwakarma9229 Жыл бұрын
Hello sir please listen to me
@keshavagarwal1170
@keshavagarwal1170 2 жыл бұрын
8 43
@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
@SumonIslam-go9ld
@SumonIslam-go9ld Жыл бұрын
If the point is not followed by a zero. 5*5=20 ,not 5*5=20.0
How to Make a News App | REST API | Android Project
1:26:06
Coding With Evan
Рет қаралды 86 М.
What's going on with Windows Laptops?
10:30
Marques Brownlee
Рет қаралды 2,6 МЛН
Smart Sigma Kid #funny #sigma #memes
00:26
CRAZY GREAPA
Рет қаралды 4,7 МЛН
Mama vs Son vs Daddy 😭🤣
00:13
DADDYSON SHOW
Рет қаралды 50 МЛН
How ChatGPT Built My App in Minutes 🤯
8:28
Website Learners
Рет қаралды 2,2 МЛН
ViewModels & Configuration Changes - Android Basics 2023
18:46
Philipp Lackner
Рет қаралды 110 М.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 933 М.
21 Programming Project Ideas (Beginner to Advanced)
15:49
Coding with Lewis
Рет қаралды 323 М.
How to make advanced image recognition bots using python
15:01
Kian Brose
Рет қаралды 1,3 МЛН
You are using useFetch WRONG! (I hope you don't)
11:14
Alexander Lichter
Рет қаралды 24 М.
React Native vs Flutter in 2024 - Make the RIGHT Choice (Difference Explained)
10:31
Daniel Dan | Tech & Data
Рет қаралды 160 М.
Top 3 Secret Jetpack Compose Modifiers I Bet You Didn't Know
9:08
Philipp Lackner
Рет қаралды 15 М.
KMP vs. Flutter - Who Will Win The Cross-Platform Battle?
16:19
Philipp Lackner
Рет қаралды 40 М.
Smart Sigma Kid #funny #sigma #memes
00:26
CRAZY GREAPA
Рет қаралды 4,7 МЛН