This video demonstrates step by step implementation of Calculator App in Android Java. Keep Learning #Android #Java #DrParagShukla
Пікірлер: 143
@tanjosiah3 жыл бұрын
Literally the only clear and understandable tutorial on youtube, thank you very much
@DrParagShukla3 жыл бұрын
Glad to hear that..! Thank you...!
@SandeepKumar-qs4zm3 жыл бұрын
I tried 1.4*3 it gives result 4.1999999
@DrParagShukla3 жыл бұрын
For exact calculation see this video kzfaq.info/get/bejne/mZmYrc5o1JbYcps.html
@ganeshmogal26473 жыл бұрын
@@DrParagShukla nice
@yousafahmad8962 жыл бұрын
amazing sir really you are the only clear and understandable tutorial on youtube, thank you very much
@DrParagShukla2 жыл бұрын
My Pleasure
@BSCAdhithyan3 жыл бұрын
It works!!!....and all the clear explanation from you, tysm❤️
@DrParagShukla3 жыл бұрын
My Pleasure
@DigitalLibraryofEducations2 жыл бұрын
You are such a good teacher and coding with the developer. I appreciate you. Thank you keep it up
@DrParagShukla2 жыл бұрын
Thank You for your kind words My Pleasure
@scarecrow_fang3 жыл бұрын
Clearly understood everything. Great video.
@DrParagShukla3 жыл бұрын
Thank You So Much
@playerpodre3 жыл бұрын
Thank you Dr. Shukla. His video helped a lot in the conclusion of my academic coursework. As the others said: clearly and understandable vídeo. Thank you again. Now I can increase my score.
@DrParagShukla3 жыл бұрын
My Pleasure Thank You for your valuable comment
@medjl60832 жыл бұрын
You are the best Bro. Thanks from Tunisia.
@DrParagShukla2 жыл бұрын
Glad that you liked it. My Pleasure
@GuptaJi_01 Жыл бұрын
The best calculator tutorial video sir, Thank you so much
@DrParagShukla Жыл бұрын
Thank You Glad to hear
@DrParagShukla2 жыл бұрын
Update : Android Design To change background color of Button app: background = "@color/red" in Button is not working Above will not work on new Android versions. For materiel design Button use app:backgroundTint="@color/red" In short, To change color of Button. Use backgroundTint instead of background in Button. Thank You
@XadaiSantos3 жыл бұрын
Thank you very much for the video, it has helped me so much! Wish you the best, sir
@DrParagShukla3 жыл бұрын
Thank you so much.
@DhamerJ3 жыл бұрын
Es como si Rajesh te enseñada a programar XD jajaja gran video!
@dienhuynh2 жыл бұрын
thank you for your video , it helps me so much.
@DrParagShukla2 жыл бұрын
My Pleasure
@thekinghimself82192 жыл бұрын
Thank you so much sire this is wonderful, and understandable
@DrParagShukla2 жыл бұрын
My Pleasure
@Dimkou773 жыл бұрын
TY! Greetings from Russia man!
@DrParagShukla3 жыл бұрын
My Pleasure
@cabdullaahicabdicasiisxuse97973 жыл бұрын
thank you
@user-uv3uy6kw7x2 жыл бұрын
I love you so much. You saved my live.
@DrParagShukla2 жыл бұрын
Glad that you liked it.
@yasirvlogs53423 жыл бұрын
sir you are doing a great work .Thanks from pakistan punjab
@DrParagShukla3 жыл бұрын
Glad that you liked it.
@yasirvlogs53423 жыл бұрын
@@DrParagShukla it was my obligation like share and subscribe
@yasirvlogs53423 жыл бұрын
@@DrParagShukla actually i am preparing an scientific calculator and you know first is to develop an simple calculator which has been completed by your video .Have you any video about scientific calculator? can you suggest me?
@DrParagShukla3 жыл бұрын
I have not develop any scientific calculator yet.
@gositangnathaniel30863 жыл бұрын
this was very helpful.
@DrParagShukla3 жыл бұрын
Thank You
@Arivukodichennan3 жыл бұрын
thank you brother this video very useful
@Arivukodichennan3 жыл бұрын
but 1+1=2 this type not showing why? what to do?
@FatmaAhmed-fl1ws Жыл бұрын
thanks so much ♥️
@DrParagShukla Жыл бұрын
My Pleasure
@rohitmuliyana63483 жыл бұрын
great sir 🙏
@DrParagShukla3 жыл бұрын
Thank You
@user-pz1tc6co2j2 жыл бұрын
Sir, Thank you so much
@user-pz1tc6co2j2 жыл бұрын
I got into trouble at the last minute. Plus, minus, divided, multiple, even after setting. it comes to equalisation Emulator becomes a fence!!
@omegalol541 Жыл бұрын
thank you so much
@DrParagShukla Жыл бұрын
My Pleasure
@farhanlearn87533 жыл бұрын
that was perfect
@DrParagShukla3 жыл бұрын
Thank You
@jacksmith45433 жыл бұрын
thank you sir
@DrParagShukla3 жыл бұрын
My Pleasure
@hailshadagnaw Жыл бұрын
tnx brother
@DrParagShukla Жыл бұрын
My Pleasure
@Aesthetic_priya0432 жыл бұрын
thanku sir so much
@DrParagShukla2 жыл бұрын
My Pleasure
@rafhaellowixhomwad2 жыл бұрын
Wow, you speak english..finally, I found this tutorial.
@DrParagShukla2 жыл бұрын
My Pleasure
@chefgeraldinelovelace-atki83102 жыл бұрын
@@DrParagShukla Hi how to make an app for quotes??
@arvinpradhan3 жыл бұрын
Thank you! How to convert the negative number from plusminus to positive?
@DrParagShukla3 жыл бұрын
Multiply the same number with the -1 and you will get the positive number. For example -12 * -1 = 12
2 жыл бұрын
thanks sir , nice share. i've made additional code in the end equalEvent at main, after edl.set... : isNewop = true; op = "+"; oldNumber = "0"; so, when we complete 1 task after click "=" , we can do the next task without click "AC" or if we pressing "=" sign again and again, it doesn't change the last result.
@ramadhirsingh25102 жыл бұрын
My app crashes if i press equal without entering any values. Is there something else i need to do? Log complains of empty string
@DrParagShukla2 жыл бұрын
You can check for empty string. Like this If (editText.getText().toString() == "") then disable button equal
@jonamustafa54612 жыл бұрын
Very nice! You can also add the following inside the clearEvent() function so that after AC is pressed, the previous values given won't be remembered: previousNumber = ""; newNumber = "";
@DrParagShukla2 жыл бұрын
Correct Very Good Suggestion Thank You
@somebodyhere86203 жыл бұрын
Thank you very much from Russia. I used Text View, not Edit Text
@DrParagShukla3 жыл бұрын
Welcome. Good Idea.
@somebodyhere86203 жыл бұрын
@@DrParagShukla look, it is for plus-minus else if (view.getId() == R.id.buPlusMinus) { if (number.contains("-")) { char[] ch = number.toCharArray(); char[] modifiedArray = Arrays.copyOfRange(ch, 1, ch.length); number = new String(modifiedArray); } else { number = "-" + number; }
@somebodyhere86203 жыл бұрын
ohhh, forgot. I've made your calculator with if else, because I did it for children)
@skynest1053 жыл бұрын
Sir how to get multiple new values?????
@francisfranco53663 жыл бұрын
HOW can we do to see the numbers and operator in the editText like, 25+2=27,
@DrParagShukla3 жыл бұрын
For that you need to treat as String and to calculate you need to use substring function. It will be complex, for calculation purpose. This is the reason why i am clearing the text.
@mansisuchak74363 жыл бұрын
sir plz guide me for zoo app. in which on opening first page shows all animals pics and when i click on animal it shows description about that animal using kotlin. that is done using linear layout, listview, base adapter,layout inflater.
@DrParagShukla3 жыл бұрын
Same type of application i did for food app. Following is the video. You just need to change the image. kzfaq.info/get/bejne/iMuFdbxmzp_Tmo0.html
@mansisuchak74363 жыл бұрын
@@DrParagShukla thq very much sir
@preethik80342 жыл бұрын
Thanks sir !! nice share But I have a doubt how u would opened a emulator which is showing in screen as a calculator_ app??????
@DrParagShukla2 жыл бұрын
Yes It wil be calculator app. But, not inbuilt. It will user defined calculator app.
@matinmighani29953 жыл бұрын
yea man
@mansisuchak74363 жыл бұрын
sir very nice shortest code. isnewop= true set reason did not understand though
@DrParagShukla3 жыл бұрын
isnewop is set to identify that whenever user click on any operator i am assigning true to isnewop. And storing the value of text in variable. And whenever user click on = I am assigning false to isnewop. Based on value of isnewop we can calculate.
@hackerslay88523 жыл бұрын
Sir, I want to show the operator symbol too in the input so that users may not get confused..Help me what to do to show that operator symbol in the input text
@DrParagShukla3 жыл бұрын
It is possible. But, it will be quite complicated. Because, you need to use substring function to cut the string and you need to search for the operator too.
@ManishaKumari-mq4nz3 жыл бұрын
The background of the buttons are not changing.. Can you help me please? It is working for the edit text area, but not for any buttons.
@sohamhegde23863 жыл бұрын
U have to go to the colour resource file and change the primary and secondary colour to ur required colour.
@vikramrathod43732 жыл бұрын
Use android:backgroundTint="@color/blue" insted android:background="@color/blue"
@siddhisattur43672 жыл бұрын
my program is unable to compile even after getting zero errors pls help me out!!
@user-uz7cw4pt9j9 ай бұрын
Is this working in mobile ?
@Tech_Wala_Friend3 жыл бұрын
Can you make using Kotlin?
@DrParagShukla3 жыл бұрын
It is already there kzfaq.info/get/bejne/hdxxa5B3yt-reo0.html
@psycho_zu62942 жыл бұрын
i cant edit this it doesnt delete no words can b changed plz help
@user-mb8to9eu1q2 жыл бұрын
Why does my program crash?
@cooldude-kk4nx Жыл бұрын
I got constant expression required error How to solve it
@vaishnavikadam3087 Жыл бұрын
I also face this same problem... Constant expression required
@khanaftab90412 жыл бұрын
How to convert this to apk??
@saikumar63743 жыл бұрын
Operator event is not working
@disappear95172 жыл бұрын
Please leave the full code here if you can
@mazenalmahuob10922 жыл бұрын
How can I show my values that will type it display on text value to see them and do the operation on them? like this 5*4 20
@juansantos.182 Жыл бұрын
Hi. You solved it?
@hanifahabib29903 жыл бұрын
My background is not changing tell me why it's not getting the color
@vikramrathod43732 жыл бұрын
Use android:backgroundTint="@color/blue" insted android:background="@color/blue"
@nazansari990210 ай бұрын
My calculator is crashing if I enter only one number and then click an equal button. Please tell how to solve this problem.
@rahulkharapkar99623 жыл бұрын
When I click the number buttons app is crashing i tried debugging i didn't understand much it's redirecting me to function in which we applied switch case but everything is same as your tutorial Can you help me with these? Can we connect on any other social media platforms like linkedIn or anything else pls help me to resolve this issue
@DrParagShukla3 жыл бұрын
Please check that id of the each button you have given as i mentioned in video. and make sure that in onclick you have called the correct function.
@rahulkharapkar99623 жыл бұрын
@@DrParagShukla everything is correct sir I have checked even spellings
@DrParagShukla3 жыл бұрын
please download the code from following url. I uploaded for you github.com/paragshukla007/Calculator_App
@Tech_Wala_Friend3 жыл бұрын
@@DrParagShukla you are really Helpfull person. Thanks Keep it up Sir ji
@nazansari990210 ай бұрын
I cannot find the code where is the code?@@DrParagShukla
@rajmusicworld63 жыл бұрын
Sir plz in hindi video
@DrParagShukla3 жыл бұрын
Will note this point
@bestfootballmomenttv6007 Жыл бұрын
Need to zoom you're code for the viewers to see clearly
@nachiketsathvara13993 жыл бұрын
How to avoid user to enter multiple dot(.) in calculator ?
@DrParagShukla3 жыл бұрын
For that you need to write regular expression. Following is regular expression to get digit with only one decimal point ^(\d+)?([.]?\d{0,2})?$
@nachiketsathvara13993 жыл бұрын
@@DrParagShukla in onclick of btndot can I put this expression?
@DrParagShukla3 жыл бұрын
Check this video kzfaq.info/get/bejne/gNCTZqeWpsCrpJ8.html I made as per your query
@nachiketsathvara13993 жыл бұрын
@@DrParagShukla thank you😊
@DrParagShukla3 жыл бұрын
My Pleasure
@pablolopez99123 жыл бұрын
hermano, solo un 6 en la nota final eh pero bueno gracias por ayudarme a aprobar
@konkerr Жыл бұрын
espero que hayas pasado la materia xd
@pablolopez9912 Жыл бұрын
@@konkerr sisi ya me saqué el superior jajaja
@konkerr Жыл бұрын
@@pablolopez9912 Jajaja me alegro xd
@sumaiyaazad18182 жыл бұрын
Can you please share your code?
@DrParagShukla2 жыл бұрын
github.com/paragshukla007/Calculator_App
@dinhdthanh44292 жыл бұрын
nice english
@DrParagShukla2 жыл бұрын
Thank You
@mahefuzkhan17742 жыл бұрын
.
@atifali2973 Жыл бұрын
hardcode text error
@DrParagShukla Жыл бұрын
It is warning not error You may set the string in strings.xml file to avoid this warning.
@zwiftprocyclist5892 жыл бұрын
dude slow down youcan do it slower
@SandeepKumar-qs4zm3 жыл бұрын
Waste of time its not give correct calculations
@DrParagShukla3 жыл бұрын
Where you are getting wrong calculation?? Please let me know, so I can work on it.
@SandeepKumar-qs4zm3 жыл бұрын
@@DrParagShukla sir when I multiply 1.4*3 it gives 4.199999
@DrParagShukla3 жыл бұрын
@@SandeepKumar-qs4zm because of floating point it happens. If you need exact decimal values, you should use java.math.BigDecimal.