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
-------------------------------------------------------------------------------------
I need to know more about you eval method bro... I like the way you did it
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.
Can you please 🥺 explain smthng about eval function or provide any link for that ???
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.
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.
Nice 😊 video. Keep posting such videos.
Thank you.
Helpful video. But sir u should make the video with explanation and own voice.
nice Evan bro
Thank you.
Thank you so much you are a literal life saver man...!!! really appreciate this video🥺🥺🥺
Is your project working properly
Can you please explain eval() method ?
one suggestion , add the butter knife dependency for many button.
Thank You so much bro
Excellent work babs
Nice bro...
Amazing 🤘🤘🤘
app close suddenly when i click clear button without any opertaion.i need help
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
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?
You can add a condition to check for empty text in onclicklistener
@@CodingWithEvan Hi can you please calculate (sin 90 +cos 0) in this calculator. I want to see it working or not ???
@@SS-vl3kz 1
User interface is excellent.please send the source code.
here it is, github.com/evanemran/DroidCalc
@@CodingWithEvan It works perfectly.
Thank you very much.
Amazing broo keep it up
Thank you.
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
here is the source code: github.com/evanemran/DroidCalc
@@CodingWithEvan the log button is not working why
did you understood the logic of eval method?
Nice work bro
Hello bro if any user input incorrect input then the app is crashing
thank you very much
If the point is not followed by a zero. 5*5=20 ,not 5*5=20.0
that was perfect
Hello,
Request you Kindly make cricket scoring app with admin panel and ads including
i have used this code but my app is constinously crashing don't know what to do
Bro I have a problem in bequle the error is unexpected token and expected and more
how to add power button? ^(
Sorry..how to change E form into 0 form?
I tried 232000 x 110 = 2.552E7
How to change the result into 0 form?
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
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
Hey i want to ask you us your project equal button functioning or not? I have an issue in equal button thats all
please how can i remove the decimal
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
Yes. Null checker needs to be added. I didn't add on every button because the video was becoming very large.
how to display error for e.g syntax error. instead of showing the error it exits the app
you can display toast messages for unhandled conditions.
@@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 😥💔
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();
}
@@CodingWithEvan i should write it in main activity?
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..........
Hi sir which editor use for creating app please reply
Android Studio.
@@CodingWithEvan Thanks sir
Supper bother
Is the language java or kotlin
sir code run nahi ho raha hai
what is the error?
@@CodingWithEvan app gets stopping
hello very good video. but i have a problem cos. tan, and sin were not fully displayed. ta, si, co how to solve this?
You can decrease the text size.
@@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.
sr please share eval function coding plz
Bro release the course from basic to advance on Android development
sure, I am working on it.
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....
sure, you can share your code screenshot in our group, I will check
facebook.com/groups/codingcom
@@CodingWithEvan man there are a lot of bugs in the code.... App crashes if I touch any operator button alone
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
@@shashankkkk hello bro I want to fix this crushing point
Why you replaced "+" with "/"
I replaced "÷" with "/" and "×" with "*" to use arithmetic operators.
@@CodingWithEvan Oh. I thought it was "+" instead of "÷" 😅
And what about Derivatives and Integration calculations ? How to implement those ? Please help
Amazing but it can't calculate the double(1.5+1.5) values. Any Solution?
use float
Tnxxx
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.
Insert C button code in try-catch method.
@@bang679 thanks bro
Sri how Mack offline AI
please share eval function text file .
here, github.com/evanemran/Android_Tutorials/tree/master/Scientific_Calculator
@@CodingWithEvan Thank You .
@Tofael Ahmed did you understood the logic of eval function
How do I get square root sign
Daddy Google 😂😂
Can you please tell me how to fix Installed build tools 31.0.0 corrupted error?
Use 30 instead
I got the same error
hi bro. Why does it show decimal numbers after doing minus or addition?
getting app stopping
Plz sir Don't put music on learning videos
Sure. My new videos doesn’t have any background music
8 43
please sir help me
Hello sir please listen to me
pls sr
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
thank you very much.
If the point is not followed by a zero. 5*5=20 ,not 5*5=20.0