Calculator App - Android Java

  Рет қаралды 73,296

Dr. Parag Shukla

Dr. Parag Shukla

4 жыл бұрын

This video demonstrates step by step implementation of Calculator App in Android Java.
Keep Learning
#Android #Java #DrParagShukla

Пікірлер: 143
@tanjosiah
@tanjosiah 3 жыл бұрын
Literally the only clear and understandable tutorial on youtube, thank you very much
@DrParagShukla
@DrParagShukla 3 жыл бұрын
Glad to hear that..! Thank you...!
@SandeepKumar-qs4zm
@SandeepKumar-qs4zm 3 жыл бұрын
I tried 1.4*3 it gives result 4.1999999
@DrParagShukla
@DrParagShukla 3 жыл бұрын
For exact calculation see this video kzfaq.info/get/bejne/mZmYrc5o1JbYcps.html
@ganeshmogal2647
@ganeshmogal2647 3 жыл бұрын
@@DrParagShukla nice
@yousafahmad896
@yousafahmad896 2 жыл бұрын
amazing sir really you are the only clear and understandable tutorial on youtube, thank you very much
@DrParagShukla
@DrParagShukla 2 жыл бұрын
My Pleasure
@BSCAdhithyan
@BSCAdhithyan 3 жыл бұрын
It works!!!....and all the clear explanation from you, tysm❤️
@DrParagShukla
@DrParagShukla 3 жыл бұрын
My Pleasure
@DigitalLibraryofEducations
@DigitalLibraryofEducations 2 жыл бұрын
You are such a good teacher and coding with the developer. I appreciate you. Thank you keep it up
@DrParagShukla
@DrParagShukla 2 жыл бұрын
Thank You for your kind words My Pleasure
@scarecrow_fang
@scarecrow_fang 3 жыл бұрын
Clearly understood everything. Great video.
@DrParagShukla
@DrParagShukla 3 жыл бұрын
Thank You So Much
@playerpodre
@playerpodre 3 жыл бұрын
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.
@DrParagShukla
@DrParagShukla 3 жыл бұрын
My Pleasure Thank You for your valuable comment
@medjl6083
@medjl6083 2 жыл бұрын
You are the best Bro. Thanks from Tunisia.
@DrParagShukla
@DrParagShukla 2 жыл бұрын
Glad that you liked it. My Pleasure
@GuptaJi_01
@GuptaJi_01 Жыл бұрын
The best calculator tutorial video sir, Thank you so much
@DrParagShukla
@DrParagShukla Жыл бұрын
Thank You Glad to hear
@DrParagShukla
@DrParagShukla 2 жыл бұрын
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
@XadaiSantos
@XadaiSantos 3 жыл бұрын
Thank you very much for the video, it has helped me so much! Wish you the best, sir
@DrParagShukla
@DrParagShukla 3 жыл бұрын
Thank you so much.
@DhamerJ
@DhamerJ 3 жыл бұрын
Es como si Rajesh te enseñada a programar XD jajaja gran video!
@dienhuynh
@dienhuynh 2 жыл бұрын
thank you for your video , it helps me so much.
@DrParagShukla
@DrParagShukla 2 жыл бұрын
My Pleasure
@thekinghimself8219
@thekinghimself8219 2 жыл бұрын
Thank you so much sire this is wonderful, and understandable
@DrParagShukla
@DrParagShukla 2 жыл бұрын
My Pleasure
@Dimkou77
@Dimkou77 3 жыл бұрын
TY! Greetings from Russia man!
@DrParagShukla
@DrParagShukla 3 жыл бұрын
My Pleasure
@cabdullaahicabdicasiisxuse9797
@cabdullaahicabdicasiisxuse9797 3 жыл бұрын
thank you
@user-uv3uy6kw7x
@user-uv3uy6kw7x 2 жыл бұрын
I love you so much. You saved my live.
@DrParagShukla
@DrParagShukla 2 жыл бұрын
Glad that you liked it.
@yasirvlogs5342
@yasirvlogs5342 3 жыл бұрын
sir you are doing a great work .Thanks from pakistan punjab
@DrParagShukla
@DrParagShukla 3 жыл бұрын
Glad that you liked it.
@yasirvlogs5342
@yasirvlogs5342 3 жыл бұрын
@@DrParagShukla it was my obligation like share and subscribe
@yasirvlogs5342
@yasirvlogs5342 3 жыл бұрын
@@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?
@DrParagShukla
@DrParagShukla 3 жыл бұрын
I have not develop any scientific calculator yet.
@gositangnathaniel3086
@gositangnathaniel3086 3 жыл бұрын
this was very helpful.
@DrParagShukla
@DrParagShukla 3 жыл бұрын
Thank You
@Arivukodichennan
@Arivukodichennan 3 жыл бұрын
thank you brother this video very useful
@Arivukodichennan
@Arivukodichennan 3 жыл бұрын
but 1+1=2 this type not showing why? what to do?
@FatmaAhmed-fl1ws
@FatmaAhmed-fl1ws Жыл бұрын
thanks so much ♥️
@DrParagShukla
@DrParagShukla Жыл бұрын
My Pleasure
@rohitmuliyana6348
@rohitmuliyana6348 3 жыл бұрын
great sir 🙏
@DrParagShukla
@DrParagShukla 3 жыл бұрын
Thank You
@user-pz1tc6co2j
@user-pz1tc6co2j 2 жыл бұрын
Sir, Thank you so much
@user-pz1tc6co2j
@user-pz1tc6co2j 2 жыл бұрын
I got into trouble at the last minute. Plus, minus, divided, multiple, even after setting. it comes to equalisation Emulator becomes a fence!!
@omegalol541
@omegalol541 Жыл бұрын
thank you so much
@DrParagShukla
@DrParagShukla Жыл бұрын
My Pleasure
@farhanlearn8753
@farhanlearn8753 3 жыл бұрын
that was perfect
@DrParagShukla
@DrParagShukla 3 жыл бұрын
Thank You
@jacksmith4543
@jacksmith4543 3 жыл бұрын
thank you sir
@DrParagShukla
@DrParagShukla 3 жыл бұрын
My Pleasure
@hailshadagnaw
@hailshadagnaw Жыл бұрын
tnx brother
@DrParagShukla
@DrParagShukla Жыл бұрын
My Pleasure
@Aesthetic_priya043
@Aesthetic_priya043 2 жыл бұрын
thanku sir so much
@DrParagShukla
@DrParagShukla 2 жыл бұрын
My Pleasure
@rafhaellowixhomwad
@rafhaellowixhomwad 2 жыл бұрын
Wow, you speak english..finally, I found this tutorial.
@DrParagShukla
@DrParagShukla 2 жыл бұрын
My Pleasure
@chefgeraldinelovelace-atki8310
@chefgeraldinelovelace-atki8310 2 жыл бұрын
@@DrParagShukla Hi how to make an app for quotes??
@arvinpradhan
@arvinpradhan 3 жыл бұрын
Thank you! How to convert the negative number from plusminus to positive?
@DrParagShukla
@DrParagShukla 3 жыл бұрын
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.
@ramadhirsingh2510
@ramadhirsingh2510 2 жыл бұрын
My app crashes if i press equal without entering any values. Is there something else i need to do? Log complains of empty string
@DrParagShukla
@DrParagShukla 2 жыл бұрын
You can check for empty string. Like this If (editText.getText().toString() == "") then disable button equal
@jonamustafa5461
@jonamustafa5461 2 жыл бұрын
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 = "";
@DrParagShukla
@DrParagShukla 2 жыл бұрын
Correct Very Good Suggestion Thank You
@somebodyhere8620
@somebodyhere8620 3 жыл бұрын
Thank you very much from Russia. I used Text View, not Edit Text
@DrParagShukla
@DrParagShukla 3 жыл бұрын
Welcome. Good Idea.
@somebodyhere8620
@somebodyhere8620 3 жыл бұрын
@@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; }
@somebodyhere8620
@somebodyhere8620 3 жыл бұрын
ohhh, forgot. I've made your calculator with if else, because I did it for children)
@skynest105
@skynest105 3 жыл бұрын
Sir how to get multiple new values?????
@francisfranco5366
@francisfranco5366 3 жыл бұрын
HOW can we do to see the numbers and operator in the editText like, 25+2=27,
@DrParagShukla
@DrParagShukla 3 жыл бұрын
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.
@mansisuchak7436
@mansisuchak7436 3 жыл бұрын
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.
@DrParagShukla
@DrParagShukla 3 жыл бұрын
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
@mansisuchak7436
@mansisuchak7436 3 жыл бұрын
@@DrParagShukla thq very much sir
@preethik8034
@preethik8034 2 жыл бұрын
Thanks sir !! nice share But I have a doubt how u would opened a emulator which is showing in screen as a calculator_ app??????
@DrParagShukla
@DrParagShukla 2 жыл бұрын
Yes It wil be calculator app. But, not inbuilt. It will user defined calculator app.
@matinmighani2995
@matinmighani2995 3 жыл бұрын
yea man
@mansisuchak7436
@mansisuchak7436 3 жыл бұрын
sir very nice shortest code. isnewop= true set reason did not understand though
@DrParagShukla
@DrParagShukla 3 жыл бұрын
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.
@hackerslay8852
@hackerslay8852 3 жыл бұрын
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
@DrParagShukla
@DrParagShukla 3 жыл бұрын
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-mq4nz
@ManishaKumari-mq4nz 3 жыл бұрын
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.
@sohamhegde2386
@sohamhegde2386 3 жыл бұрын
U have to go to the colour resource file and change the primary and secondary colour to ur required colour.
@vikramrathod4373
@vikramrathod4373 2 жыл бұрын
Use android:backgroundTint="@color/blue" insted android:background="@color/blue"
@siddhisattur4367
@siddhisattur4367 2 жыл бұрын
my program is unable to compile even after getting zero errors pls help me out!!
@user-uz7cw4pt9j
@user-uz7cw4pt9j 9 ай бұрын
Is this working in mobile ?
@Tech_Wala_Friend
@Tech_Wala_Friend 3 жыл бұрын
Can you make using Kotlin?
@DrParagShukla
@DrParagShukla 3 жыл бұрын
It is already there kzfaq.info/get/bejne/hdxxa5B3yt-reo0.html
@psycho_zu6294
@psycho_zu6294 2 жыл бұрын
i cant edit this it doesnt delete no words can b changed plz help
@user-mb8to9eu1q
@user-mb8to9eu1q 2 жыл бұрын
Why does my program crash?
@cooldude-kk4nx
@cooldude-kk4nx Жыл бұрын
I got constant expression required error How to solve it
@vaishnavikadam3087
@vaishnavikadam3087 Жыл бұрын
I also face this same problem... Constant expression required
@khanaftab9041
@khanaftab9041 2 жыл бұрын
How to convert this to apk??
@saikumar6374
@saikumar6374 3 жыл бұрын
Operator event is not working
@disappear9517
@disappear9517 2 жыл бұрын
Please leave the full code here if you can
@mazenalmahuob1092
@mazenalmahuob1092 2 жыл бұрын
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
@juansantos.182 Жыл бұрын
Hi. You solved it?
@hanifahabib2990
@hanifahabib2990 3 жыл бұрын
My background is not changing tell me why it's not getting the color
@vikramrathod4373
@vikramrathod4373 2 жыл бұрын
Use android:backgroundTint="@color/blue" insted android:background="@color/blue"
@nazansari9902
@nazansari9902 10 ай бұрын
My calculator is crashing if I enter only one number and then click an equal button. Please tell how to solve this problem.
@rahulkharapkar9962
@rahulkharapkar9962 3 жыл бұрын
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
@DrParagShukla
@DrParagShukla 3 жыл бұрын
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.
@rahulkharapkar9962
@rahulkharapkar9962 3 жыл бұрын
@@DrParagShukla everything is correct sir I have checked even spellings
@DrParagShukla
@DrParagShukla 3 жыл бұрын
please download the code from following url. I uploaded for you github.com/paragshukla007/Calculator_App
@Tech_Wala_Friend
@Tech_Wala_Friend 3 жыл бұрын
@@DrParagShukla you are really Helpfull person. Thanks Keep it up Sir ji
@nazansari9902
@nazansari9902 10 ай бұрын
I cannot find the code where is the code?@@DrParagShukla
@rajmusicworld6
@rajmusicworld6 3 жыл бұрын
Sir plz in hindi video
@DrParagShukla
@DrParagShukla 3 жыл бұрын
Will note this point
@bestfootballmomenttv6007
@bestfootballmomenttv6007 Жыл бұрын
Need to zoom you're code for the viewers to see clearly
@nachiketsathvara1399
@nachiketsathvara1399 3 жыл бұрын
How to avoid user to enter multiple dot(.) in calculator ?
@DrParagShukla
@DrParagShukla 3 жыл бұрын
For that you need to write regular expression. Following is regular expression to get digit with only one decimal point ^(\d+)?([.]?\d{0,2})?$
@nachiketsathvara1399
@nachiketsathvara1399 3 жыл бұрын
@@DrParagShukla in onclick of btndot can I put this expression?
@DrParagShukla
@DrParagShukla 3 жыл бұрын
Check this video kzfaq.info/get/bejne/gNCTZqeWpsCrpJ8.html I made as per your query
@nachiketsathvara1399
@nachiketsathvara1399 3 жыл бұрын
@@DrParagShukla thank you😊
@DrParagShukla
@DrParagShukla 3 жыл бұрын
My Pleasure
@pablolopez9912
@pablolopez9912 3 жыл бұрын
hermano, solo un 6 en la nota final eh pero bueno gracias por ayudarme a aprobar
@konkerr
@konkerr Жыл бұрын
espero que hayas pasado la materia xd
@pablolopez9912
@pablolopez9912 Жыл бұрын
​@@konkerr sisi ya me saqué el superior jajaja
@konkerr
@konkerr Жыл бұрын
@@pablolopez9912 Jajaja me alegro xd
@sumaiyaazad1818
@sumaiyaazad1818 2 жыл бұрын
Can you please share your code?
@DrParagShukla
@DrParagShukla 2 жыл бұрын
github.com/paragshukla007/Calculator_App
@dinhdthanh4429
@dinhdthanh4429 2 жыл бұрын
nice english
@DrParagShukla
@DrParagShukla 2 жыл бұрын
Thank You
@mahefuzkhan1774
@mahefuzkhan1774 2 жыл бұрын
.
@atifali2973
@atifali2973 Жыл бұрын
hardcode text error
@DrParagShukla
@DrParagShukla Жыл бұрын
It is warning not error You may set the string in strings.xml file to avoid this warning.
@zwiftprocyclist589
@zwiftprocyclist589 2 жыл бұрын
dude slow down youcan do it slower
@SandeepKumar-qs4zm
@SandeepKumar-qs4zm 3 жыл бұрын
Waste of time its not give correct calculations
@DrParagShukla
@DrParagShukla 3 жыл бұрын
Where you are getting wrong calculation?? Please let me know, so I can work on it.
@SandeepKumar-qs4zm
@SandeepKumar-qs4zm 3 жыл бұрын
@@DrParagShukla sir when I multiply 1.4*3 it gives 4.199999
@DrParagShukla
@DrParagShukla 3 жыл бұрын
@@SandeepKumar-qs4zm because of floating point it happens. If you need exact decimal values, you should use java.math.BigDecimal.
@SandeepKumar-qs4zm
@SandeepKumar-qs4zm 3 жыл бұрын
@@DrParagShukla make a video of sir
@DrParagShukla
@DrParagShukla 3 жыл бұрын
Sure will do it
@user-vz5tj6hk5q
@user-vz5tj6hk5q 3 жыл бұрын
thank you
@DrParagShukla
@DrParagShukla 3 жыл бұрын
My Pleasure
Did you believe it was real? #tiktok
00:25
Анастасия Тарасова
Рет қаралды 53 МЛН
I CAN’T BELIEVE I LOST 😱
00:46
Topper Guild
Рет қаралды 108 МЛН
1 or 2?🐄
00:12
Kan Andrey
Рет қаралды 52 МЛН
Java calculator app 🖩
34:36
Bro Code
Рет қаралды 409 М.
How to make a calculator in Android Studio 2020 | Part 1
15:38
Practical Coding
Рет қаралды 157 М.
Calculator Project using Android Studio: Step by Step Tutorial
36:13
Learn TechToTech
Рет қаралды 89 М.
How to make a calculator in Android Studio 2020 | Part 3
23:19
Practical Coding
Рет қаралды 68 М.
1 Project Setup  | News application | Android Studio
9:47
Easy Tuto
Рет қаралды 19 М.
Calculator App Example Android Studio Tutorial
12:33
Code With Cal
Рет қаралды 87 М.
JVM ( java virtual machine) architecture - tutorial
29:16
Ranjith ramachandran
Рет қаралды 511 М.
Did you believe it was real? #tiktok
00:25
Анастасия Тарасова
Рет қаралды 53 МЛН