I don't know why some developers skip a lot of things when they build app or like that or copy paste. it doesn't help and your channel will not grow upp and you will lose many subscribers.
The most important thing in the entire video is implementing the library and using Expression builder , hey keep in mind in new versions of Android the word ===> compile
bro i got this error --> Expected org.gradle.api.artifacts.result.ResolvedDependencyResult but found org.gradle.api.internal.artifacts.result.DefaultUnresolvedDependencyResult
Of course, you can use it. The only problem, inside the button click we need to use a switch condition(it gets confusing). To avoid that I am using linearlayout. Thank you for supporting CodeAndroid !!! Follow me on twitter: @theCodeAndroid.
Hey, When I am Trying To add This (1 @color/actionButton 21sp @android:color/white center) in Style section Then Showing one error Like [':' is not a valid resource name character] How can I solve this Error. and To buttons, grey colour is also not showing.
I've only black in background, through I've included all things which you have mentioned,but it doesn't show the button's color orange.. Pls give me solution
In styles.xml file, under ActionButtonStyle and NumberButtonStyle, background should be android:background and you won't have only black background. I just had the same problem and hope it helps someone searching for the fix in the comments, also unlucky I didn't come up to this earlier so you didn't have to wait for a response for 8 months. Hope you didn't give up tho! Cheers!
in your line 55 why did u interconvert long and Double idont understand why u couldnt just use result.toString() why did u use an if and else if(result==longResult.toDouble()) tvresult.text=longResult.toString() else tvresult.text= resultValue.toString() Please clear my doubt
ExpressionBuilder evaluated result will have return type as Double. To check that result is having decimal value or not, I am comparing it with long value. Otherwise i need to convert both double and long to string and compare it. For numbers it is better to use the type int,float,long or double. So i converted both to double and compared it.
Sir the same code i have entered but at the beginning in main activity im getting error at tvResult and tvExpression as it is not suggesting from activity main Can you help me
The only issue I have is the "expression builder" and "log" in mainactivity. what could be wrong? Also this Library: "compile 'net.objecthunter:exp4j:0.4.8'" is obsolete....could this be the cause?
Thanks brother it's great... Who are just copy paste the program, will face some problems like me😂😂😂. Here i will share while compiling what problems I faced & how it solved. 1. In main activity appcompact v7 problems . Solution (don't change your actual import program data, it will automatically decide for me it was (androidx.appcompat.app) 2. Don't forget to copy the gradle library file in "build.gradle" (it's available in this video description i.e compile.net.obeject.... (in video 11.16) If you copy the code also some time error will occur for latest version Android studio. For that instead of compile we can put implementation... It will say to put you ... If anyone face any issues share with me. I did it.😍😍😍
Use a flag to control it. Reset this flag every time when we do any action. So that the flag can be ready for next number. One problem here is on press of back(erase), we need to read entire string to find dot is there in last number or not.
don't speed up your videos, they are way too fast and we can't understand what you are doing. Also sir how do you create a only for styles and color without making a new activity
We are using an object called "ExpressionBuilder". Which is described in that library. Using this library we can avoid doing calculation and handling crashes and other stuff.
If we set the expression on the result on click of the equal button, then when we can show the expression result?. If you want full expression, then add another TextView in between question and result. Then append the character in question as well as the new TextView. when the user clicks "CE" or after equal they press any number clear this TextView.
Hey please can anybody help me???? I made the .xml file as explained and then copied the library and also the code and pasted it. But my app is not working at all, the only error i'm getting is " UNRESOLVED REFERENCE " for all my Textviews id (tvOne,tvTwo,etc. etc.) ; all of them. I dont know how to resolve this issue , i literally tried everything, please help sir!
compile 'net.objecthunter:exp4j:0.4.8' This one not working Bro api 'net.objecthunter:exp4j:0.4.8' i tryid this one all same but app properly not working
Just to save time I make the typing faster. Beginners can pause the video once the typing is done, and intermediate people can see it on the go. in future video will try to fix this.
Hello, Thanks for this tutorial. I have a question: How can I add library "compile 'net.objecthunter:exp4j:0.4.8" on my project ?. I appreciate if someone can explain me xD
Well, I have the same issue, but I read the problem! Look, on the video it appears to use the library on the Gradle Build (Module App) Well... here;s the thing. If you just put compile 'net.objecthunter:exp4j:0.4.8' it will start to synchronize! "If you don't know how to start the Gradle Sync, there is a message right on top that says Gradle Sync - Start, click on it and then let the Gradle Begins!" Keep in mind something... if you start to sync the compile "net.objecthunter:exp4j:0.4.8" it can happen 2 things: Depending on the version of your Android Studio 1. it may start the sync, but it may not complete it, or 2. it will complete it. In my case was the first one, my Android Studio start the synchronization and after a few minutes (2mins), it stopped. But the sync chart says that the syntaxis "COMPILE" is obsolete for the current version of Android Studio 3.3, instead replace COMPILE with IMPLEMENTATION. So instead on typing "compile 'net.objecthunter:exp4j:0.4.8' " replace compile with "implementation 'net.objecthunter:exp4j:0.4.8' "
I hope that might resolve the problem you have! I am a beginner, and this calculator on Kotlin is my College Class Project and a new dare programming language from my teacher on College! I hope I was of service for you.
hi, I like your job you help me a lot thank you. please can you make a scientific calculator with (sin.tang.cos .....) I looking forward to seeing more videos of you. thanks :). PS.pleas in future can you give more details and explanation keep going
yes, I try it but the problem the, win I using (sin.tang or cos ) the result given with radians unite .i try to convert it to the degree but I failed (example sin30=0.5degree me sin30=-0988... radian). tvsin.setOnClickListener { appendOnExpression("sin(",false) } i try to put in the and of it but it not work
hi, I like your job thank you for it i have tow quastion:1- can i make calculator app and put it in google play with out copyright for library 2- can you added √ and % in library thank you very much
I am not the developer of that library. to check the license: www.objecthunter.net/exp4j/license.html. The library already contains √ and % functionalities.
not gonna lie, the tutorial was a bit hard to follow but it was worth it. A video that goes to the point and delivers a nice looking calculator.
It was extremely useful, the only problem was being so fast while talking and writing pieces of code. Overall, thanks so much!
Set replay speed to 0.75x
I don't know why some developers skip a lot of things when they build app or like that or copy paste. it doesn't help and your channel will not grow upp and you will lose many subscribers.
ExpressionBuilder is not working in my calculator project, what can I do???
You have to implement the library which is given in description. They only you will get ExpressionBuilder.
The most important thing in the entire video is implementing the library and using Expression builder , hey keep in mind in new versions of Android the word ===> compile
bro i got this error --> Expected org.gradle.api.artifacts.result.ResolvedDependencyResult but found org.gradle.api.internal.artifacts.result.DefaultUnresolvedDependencyResult
why you do so fast wr are beginer not a n expert
Sir??
My android studio can't find ExpressionBuilder and also build() method what can i do????
you need to include a library which is given in description. "implementation 'net.objecthunter:exp4j:0.4.8'"
@@CodeAndroid thanks u sir😇
Why are you using TextView as buttons again? I couldn't understand what was said in the video.
I don't want the look of button. So I used TextView.
hey sir instead of using linear layout over their for button u can use the grid view
Of course, you can use it. The only problem, inside the button click we need to use a switch condition(it gets confusing). To avoid that I am using linearlayout.
Thank you for supporting CodeAndroid !!!
Follow me on twitter: @theCodeAndroid.
thanks for your replay sir and wish you will 100k subscriber soon :)
thank you.
Fun appenonExpression(string : String , canClear : Boolean).
This is not workings in my project
Did you import the library.
Yes i did
SetOnClickListener(android.view.View.OnClickListener) in View cannot be applied to (void).
Sir how can i solve this error. Please reply me
Hey, When I am Trying To add This (1
@color/actionButton
21sp
@android:color/white
center) in Style section Then Showing one error Like [':' is not a valid resource name character] How can I solve this Error. and To buttons, grey colour is also not showing.
Hi sir , i have an error in ExpressionBuilder method in main activity , the ExpressionBuilder color is red
Can you help me
Check whether you compiled or implementation 'net.objecthunter:exp4j:0.4.8' dependency in your app level gradle file.
I've only black in background, through I've included all things which you have mentioned,but it doesn't show the button's color orange..
Pls give me solution
In styles.xml file, under ActionButtonStyle and NumberButtonStyle, background should be android:background and you won't have only black background. I just had the same problem and hope it helps someone searching for the fix in the comments, also unlucky I didn't come up to this earlier so you didn't have to wait for a response for 8 months.
Hope you didn't give up tho! Cheers!
Thanks, could you please explain the expressionbuilder. I didn't get it
ctrl + d to duplicate.
Newbie here my Android Studio doesn't have ExpressionBuilder how to add?
I am getting Unresolved reference: ExpressionBuilder error, can you help me out pls?
yeah me too..i think problem in library...but i dont know how to add library
in your line 55
why did u interconvert long and Double idont understand why u couldnt just use result.toString()
why did u use an if and else
if(result==longResult.toDouble())
tvresult.text=longResult.toString()
else
tvresult.text= resultValue.toString()
Please clear my doubt
ExpressionBuilder evaluated result will have return type as Double. To check that result is having decimal value or not, I am comparing it with long value. Otherwise i need to convert both double and long to string and compare it. For numbers it is better to use the type int,float,long or double. So i converted both to double and compared it.
Brother, the give library is not found and how to add on android studio????plz reply
How to add history of calculation look like on windows 10 / samsung style calculator?
could we make a sound while get for an correct answer
Sir the same code i have entered but at the beginning in main activity im getting error at tvResult and tvExpression as it is not suggesting from activity main
Can you help me
Not able to use this library getting error
Hi,
Operation are not happening. Please help
It seems operators r not registered but only numbers. On pressing equal button only numbers r returned
how about for decimal?
The only issue I have is the "expression builder" and "log" in mainactivity. what could be wrong? Also this Library: "compile 'net.objecthunter:exp4j:0.4.8'" is obsolete....could this be the cause?
Instead, compile you need to use "implementation".
what is this tutorial did you check what this code does?
20(3)=60
in code what method is used to do this?
this code is in libray
Hi bro how to make a coding for developing the app. How to learn that coding please help me
i please how i learn kotlin on web i don't see a website for learn kotlin to create app
Thanks brother it's great...
Who are just copy paste the program, will face some problems like me😂😂😂.
Here i will share while compiling what problems I faced & how it solved.
1. In main activity appcompact v7 problems .
Solution (don't change your actual import program data, it will automatically decide for me it was (androidx.appcompat.app)
2. Don't forget to copy the gradle library file in "build.gradle" (it's available in this video description i.e compile.net.obeject.... (in video 11.16)
If you copy the code also some time error will occur for latest version Android studio. For that instead of compile we can put implementation... It will say to put you ...
If anyone face any issues share with me. I did it.😍😍😍
i want "Dot" just one time after an integer. like this "2 ." , but 2...... is possible... how can i do this?
Use a flag to control it. Reset this flag every time when we do any action. So that the flag can be ready for next number. One problem here is on press of back(erase), we need to read entire string to find dot is there in last number or not.
@@CodeAndroid can you please share the flag code
Sir I am installing Android studio
But the design Editor unavailable
Problem sir
How to use gradle code that you have used?
In the application-level gradle file, you need to place that code inside dependencies.
my divide button is not working :(
If i am using this library.
Do i have to give credits/or mention the license of the owner?
No. Not required.
@@CodeAndroid thnx dude
don't speed up your videos, they are way too fast and we can't understand what you are doing.
Also sir how do you create a only for styles and color without making a new activity
Brother it has one problem of multiple operator at time
Yes. You can block/replace the operator by checking last character.
@@CodeAndroid can you do it for us in your video ?
Bro in my case 🔙 BACK bottom is not working 😥😥😥
Check the onclick for that button. Also check weather you are updating the textview.
hello sir , what is the use of "compile 'net.objecthunter:exp4j:0.4.8'" or why we should use this in this project?
We are using an object called "ExpressionBuilder". Which is described in that library. Using this library we can avoid doing calculation and handling crashes and other stuff.
can you explain function of . ? dot, i mean
Sir I would like a situation where my on click listener for equals sets the expression to the result at once sir. Thank you.
If we set the expression on the result on click of the equal button, then when we can show the expression result?.
If you want full expression, then add another TextView in between question and result. Then append the character in question as well as the new TextView. when the user clicks "CE" or after equal they press any number clear this TextView.
у кого вылетает приложение, при написании кода на вычисление чисел?
вылетает, но компилятор не ругается, ошибок не видит
The clear button
just clear tvExpress without
tvResult what can I do
Good job ,i have followed what you do step by step but i have only black backround
I found the error in name of style items
Upload the video in min resolution 1080p
Latest video I am uploading on 2K resolution. My old laptop has HD ready display. So I couldn't record more than that.
How to use android jetpack in building a calculator app
want source code right now
Thank you! This tutorial really helps me. :)
Gradle Is Not working Bro
Thank you bro, I HAVE Question how can i get installer of my Application
Hi sir i am getting error in .java class
you need to use ::class.java not .java class
Make tutorial on scientific calculator too using kotlin, anyways your tutorial is awesome thanks
Github please , i use this video for univercity project for android unit :)
Hey please can anybody help me????
I made the .xml file as explained and then copied the library and also the code and pasted it.
But my app is not working at all, the only error i'm getting is " UNRESOLVED REFERENCE " for all my Textviews id (tvOne,tvTwo,etc. etc.) ; all of them.
I dont know how to resolve this issue , i literally tried everything, please help sir!
same problem here
can you give me calculator apk
compile 'net.objecthunter:exp4j:0.4.8' This one not working Bro
api 'net.objecthunter:exp4j:0.4.8' i tryid this one all same but app properly not working
Your good but not to good tell me something why are you faster when your writing the code?
Just to save time I make the typing faster. Beginners can pause the video once the typing is done, and intermediate people can see it on the go. in future video will try to fix this.
@@CodeAndroid okay copy that and thanks 😊 but if you wanna explain some tutorial like this don't so faster all right.
Hello, Thanks for this tutorial. I have a question: How can I add library "compile 'net.objecthunter:exp4j:0.4.8" on my project ?. I appreciate if someone can explain me xD
Well, I have the same issue, but I read the problem!
Look, on the video it appears to use the library on the Gradle Build (Module App)
Well... here;s the thing. If you just put compile 'net.objecthunter:exp4j:0.4.8' it will start to synchronize!
"If you don't know how to start the Gradle Sync, there is a message right on top that says Gradle Sync - Start, click on it and then let the Gradle Begins!"
Keep in mind something... if you start to sync the compile "net.objecthunter:exp4j:0.4.8" it can happen 2 things:
Depending on the version of your Android Studio 1. it may start the sync, but it may not complete it, or 2. it will complete it.
In my case was the first one, my Android Studio start the synchronization and after a few minutes (2mins), it stopped. But the sync chart says that the syntaxis "COMPILE" is obsolete for the current version of Android Studio 3.3, instead replace COMPILE with IMPLEMENTATION.
So instead on typing "compile 'net.objecthunter:exp4j:0.4.8' " replace compile with "implementation 'net.objecthunter:exp4j:0.4.8' "
I hope that might resolve the problem you have! I am a beginner, and this calculator on Kotlin is my College Class Project and a new dare programming language from my teacher on College!
I hope I was of service for you.
Thanks a lot!!!!! XD
@@jhaneman1231 heyy !! bro thanks so much bro
@@jhaneman1231 Million thanks.
That was very helpful. Thanks!
Great tutorial! Thanks a lot!
Great video 😀
very bad ......very fast stream unable to understand
you can slow it down
An excellent video
hi, I like your job you help me a lot thank you.
please can you make a scientific calculator with (sin.tang.cos .....)
I looking forward to seeing more videos of you. thanks :).
PS.pleas in future can you give more details and explanation
keep going
Hi, In that app itself you can add one more row with sin, cos, and tan. That library can handle that.
yes, I try it but the problem the, win I using (sin.tang or cos ) the result given with radians unite .i try to convert it to the degree but I failed (example sin30=0.5degree me sin30=-0988... radian).
tvsin.setOnClickListener { appendOnExpression("sin(",false) }
i try to put in the and of it but it not work
I am thankful if you give me the solution thanks
Great Tutorial but you are Too fast!!!...Nice work though
you can always play at a slower speed or press pause ;)
@@pagevpetty gues so
Thank you Sir. I made otherwise the kt part and works perfectly !
hi, I like your job thank you for it
i have tow quastion:1- can i make calculator app and put it in google play with out copyright for library
2- can you added √ and % in library
thank you very much
I am not the developer of that library. to check the license: www.objecthunter.net/exp4j/license.html. The library already contains √ and % functionalities.
Thank you this very useful
Thank you so much
GRACIAS!!!
nicely explained
I need this wallpaper in your PC 😍 please
Good . enjoyed
I Love you indians..🙌👌
Too fast not good
Thanks
cool
Explain everything and make a video
Thank U
Ur too fast
my is showing error on tvResult.text
Hi bro how to make a coding for developing the app. How to learn that coding please help me