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.
@@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...🙄🙄
@@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!
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. 😊
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.
Just completed this tutorial. Running android studio jellyfish. I used java language but was forced to use kotlin dsl. there were quite a few changes that needed to be made. However, I had chat gpt 4.0 correcting the errors in the code along the way. But, I got it to work. Thanks again for a great video. Only suggestion from me would be to slow down just a little when you complete a few lines of code to make pausing the video a little easier .
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...
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
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! 👍
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.
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 :)
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
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+=)
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?
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
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😇
Sir, I am sorry to sat that there are a bug! I When I clicked on "C" button after deleting all cumber it make error and if I also click on "C" this application make crash!😔 Please give us this solution!
you need to put a condition so the getResult method won't accept null values. Here's the code that fixed mine: if(dataToCalculate.length() > 0){ finalResult = getResult(dataToCalculate); } meaning the getResult method won't accept null value when you clear the dataToCalculate variable
For those who have a problem with backspace, try this code. It works for me. if(buttonText.equals("C") { if(dataToCalculate.length() > 0) { StringBuilder sb = new StringBuilder(solutionTv.getText()); sb.deleteCharAt(solutionTv.getText().length()-1); dataToCalculate = sb.toString(); solutionTv.setText(dataToCalculate); resultTv.setText(dataToCalculate); } return; }
implementation 'com.faendir.rhino:rhino-android:1.5.2'
where?
why my number button keypad background not change when i switch to dark mode ? thank you
implementation 'com. faendir. rhino:rhino-android:1.5.2'
hi
it is not working
please help
@@m5553 did you already sync your gradle?
"Say hello to this hello world and delete it", That was smooth af!!💫💫
😂😂
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.
Thanks
bhaiya your explanation is always the best among all the people. You own a huge respect and position in my android journey. ❤❤❤
Thank you so much 😀
Did ur code worked ?? Mine giving error on adding dependcy..can u plz help me with this
u r literally god for me rn..u helped my finish my prject
Thank you
@@EasyTuto1 it is showing an error on 14:08 for me on the getText and the setText
THANK YOUUUU because of this video i understood all the basic concepts of android studio!
keep making content like this! i love it.
Thank you brother... the way of yours teaching is very simpler....
Project done thank you sir👍😊
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!
Change if statement to while..so while ac is above 0. It must clear
@@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...🙄🙄
@@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!
The way you explain it, this was easier than making maggi. 🙇
Happy to hear that!
I love you sir 💗💗💗💗💗
Success hua
So thank you so much ❤️🙏
Gurudev 😊😊😊😊
nice bother keep growing ☺️👍
kiya bat hay. buht hee umda.. thanks.
Very nice
Keep going👍🏻
Incrível! Parabéns pelo trabalho! Funcionou perfeitamente! Ganhou mais 1 inscrito brasileiro! 👍👍👍
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. 😊
❤❤❤❤❤❤thank you great work
Thanks
My PC not accepting 'JavaScript ' keword showing error at time of importing in main activity
Plzz reply...
facing same problem
Me same.
Pls tell us the solution!
@@AagaaCimdeessaa me same
Is there any solution??
bro i learned so much fr thx
Verry good and easy following speech !!
Can you please tell about that what is the backend and frontend used
Thank you for this toturial i hope its work in my compiler when i code this later
Yes it will
Import org. Mozilla. JavaScript. Context... Giving me error😭
Mai apka problem fix kar sakta hu
Contact karo mujhe mere about section me Whats app no. hai
How did u solve that ... same thing giving me error
Make sure cAsE is correct Mozilla is different from mozilla. Only Context has capital letter.
Awesome 👍
Why u use a relative layout at starting 0:55 ?
Thanks sir 🙏
Really you are great, and thank you ❤️
🤣🤣say hello to this hello world and delete it. Such a dominance over hello world programs.
🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣
Thank you for the tutorial
how do you change the libs thing in your gradle part
Did get the answer yet????
What could be the problem because when I open the app and click any button, an error message appears saying "App has stopped".
U have to declare ur activity in the androidManifest
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.
thanks man, you good dawg
thanks buddy.... but at last when you imported the libraries, it is a bit confusing for newbie..
Sorry for that.
Nice brother 🎉 😍 😊
Thanks
Just completed this tutorial. Running android studio jellyfish. I used java language but was forced to use kotlin dsl. there were quite a few changes that needed to be made. However, I had chat gpt 4.0 correcting the errors in the code along the way. But, I got it to work. Thanks again for a great video. Only suggestion from me would be to slow down just a little when you complete a few lines of code to make pausing the video a little easier .
can we have the source code?
Can send me the changes please
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...
Something is wrong in the code.
Try resolving. ❤️
Thanks bhai ❤🎉
Thanks
there are errors in main. activity. java file.
its my first app and i can't solve it.
i need help sir 🥺 plz
why the implementation 'com.faendir.rhino:rhino-android:1.5.2' didn't work? it has a new one now?
Brother, where will you publish this on Playstore, please tell me.
Good one 👍👍
sir new implementation library?
Awesome 👍😊
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
Yeah you can just add condition when there is no value.
@EasyTuto1 do you have a video that uses a keyboard listener?
Thank you bro
Thanks💛
its 2024 and my gradle is language is kts is there a way you can change it to the one you used?
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! 👍
second that
Use BigDecimal class rather than floating point numbers to get accurate values.
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.
You are amazing
When I try put paste linear layout nothing comes 😢 if I try manual it doesn't work
Check correctly
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 :)
Did you get an explanation?
@@felixmaundu3891 no brother
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
Same problem
Please reply
non-static method 'setoptimizationlevel(int)' cannot be referenced from a static context .....this error show! What will I do
Yeah me to
Sir why is my 2nd linear layout overlapping with the first one ?
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
Can someone help me? My code does not have errors but the text view does not shows any number when i push any materialbutton
error showing during javascript writing??
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+=)
Thank you a lot.
The implementation in Gradle is working?
Brother I am facing problem in solution Text View it's not getting clear😞😞
Write v
How did the app theme change in dark mode? Isn't working for me
Do you have an answer yet?
Turn dark mode in your phone.
It will automatically turn on.
@@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?
Multiply option is not working
By doing the same only - and + operations are working what more to do for * and /
How to add that line into dependencies
Hi I have successfully created a calculator in this but can't see anything on my emulator. What might be the issue?
Is it running on your device?
@@EasyTuto1 no
It’s crashing may be.
So check the Logcat
Anyone please reply here what is the Backend used?
How to open in Design Model?
Very interesting and easy to follow. Can we have some more? Please?
Sure
too much helpful,,
what happend if i click only C?? the app is crashed
Bro kya hum apne android phone se calculator app bna skte h ....
can you explain whats going in gradle app ???
Basically we asked gradle to add that library to our project which was not by default present for our use.
Thank you so much sir
the part of import org.mozilla.javascript.Context;
import org.mozilla.javascript.Scriptable; is not working for me
Bro my all functions are working good but while turn on the dark mode it will not converting in dark theme properly
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
thank you but why my result is "err", whats wrong?
Check the code.
there is no activity_main_xml
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?
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
@@diras1127 please explain in plain english
same error . how to fix
@@atulthakur6928 were you able to solve it? I encountered the same.......solved to some sort but got another one.
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😇
Sir, I am sorry to sat that there are a bug! I When I clicked on "C" button after deleting all cumber it make error and if I also click on "C" this application make crash!😔 Please give us this solution!
You can check if no numbers are there or length is 0 then you if C is pressed you can return from there directly.
help me out im trying to copypaste and they keep overlaping each other
how do I get the four buttons below one another
When i clear all by using C
If nothing is there ,then i click C
Im getting an error
Will you please give me sol for that
same here
please help us solve this issue
In a clearscreen if i press "C"
it displays:
org.mozilla
.javascript
.Underfined@0
@@VikasKumar-wz9ju Same :(
you need to put a condition so the getResult method won't accept null values. Here's the code that fixed mine:
if(dataToCalculate.length() > 0){
finalResult = getResult(dataToCalculate);
}
meaning the getResult method won't accept null value when you clear the dataToCalculate variable
When we press the "C" button after the result text view becomes 0, the app is crashing each time
Add a condition for C if dataToCalculate.length ==0 return.
nandrigal kodi annaa
Brother can u please make the code pdf or anything inorder to make copy and paste without wasting time thank you
please may i know the name of your programming tools?
Its Android Studio.
Please upload next part on this calculator app scientific mode...
bro Ac button was not working bro what can i do bro
Do you have a version for doing this in Kotlin?
Please sir how can I import JavaScript?
Backend code is not working. Any button not work.please help me sir....
Hello, you didn't solve the dot button it concatenates more than one
It's showing "Err" Whenever I'm trying to use an operator... Plz help
how do you add that library bruh please for the love of God
bro. my C button is not working and showing as pressing it.
For those who have a problem with backspace, try this code. It works for me.
if(buttonText.equals("C")
{
if(dataToCalculate.length() > 0)
{
StringBuilder sb = new StringBuilder(solutionTv.getText());
sb.deleteCharAt(solutionTv.getText().length()-1);
dataToCalculate = sb.toString();
solutionTv.setText(dataToCalculate);
resultTv.setText(dataToCalculate);
}
return;
}
Great Bro
Thanks
it worked for me aswell
Thank You Bro
Thanks 🙏
love you so much mang
thanks a lot it was a great help.
Sir my last String operation is showing error please help
Check the new video in the channel of Simple Calculator.
My app didn't not give result what will I do
Nice
But app download kese kre?
If the result actually has .0 in the value it will also be replaced by empty string ?
no, not the whole result. Only .0 will get replace by the empty string