Calculator App for Android using Java Full Project

Поделиться
HTML-код
  • Опубликовано: 20 фев 2023
  • In this video I will show you how to create calculator app using java object oriented programming (OOP) & XML using Android Studio 2023.

Комментарии • 61

  • @techwithbob221
    @techwithbob221  7 месяцев назад +2

    🚨 Important Tip for Viewers 🚨:
    For a smoother experience using the Android Calculator app, consider this tweak. In the 'Main.java' file, within the 'MainActivity' class, locate the line 'double firstNum;' and modify it to 'double firstNum = 0;'. This adjustment helps prevent potential errors when clicking 'equal' before any operation. Your feedback is valuable!

    • @MonsMons
      @MonsMons 4 месяца назад

      issue still existing to fix it you should add this code to equal.setOnClickListener:
      if (operation == null) {
      Toast.makeText(MainActivity.this, "No operation selected", Toast.LENGTH_SHORT).show();
      return;
      }

    • @techwithbob221
      @techwithbob221  3 месяца назад

      Actually, it's even simpler than that; it's just one line of code. If you need further clarification on how to make this adjustment, feel free to ask!

    • @techwithbob221
      @techwithbob221  3 месяца назад

      That's a great suggestion! If the issue persists, adding that code snippet to the `equal.setOnClickListener` could help. Alternatively, you could set a default operation like addition ('+') by replacing 'String operation;' with 'String operation = "+";' in the code. This way, you handle the problem by ensuring there's always an operation selected before clicking 'equal'. Hope this helps!

  • @user-by9ue4bn7b
    @user-by9ue4bn7b 9 месяцев назад +5

    Thanks for this video,
    Now I'm verry happy because, I create my first app in android studio 😂 and you should take video on the kotlin language 😅

  • @code642
    @code642 10 месяцев назад +2

    Thankyou so much
    This is really helpful for me😊😊😊

  • @liveguruji8407
    @liveguruji8407 4 дня назад

    Hi sir,
    Greetings of the day.
    This is to inform you that the button text not showing,
    Also one other problem (Speakale text not present) sir please help to resolve it.

  • @sanikalinge
    @sanikalinge Месяц назад

    It's run successfully🤓 !!!!Thank you so much ❤😊

  • @pp12471
    @pp12471 6 месяцев назад +1

    helps! thank you

    • @techwithbob221
      @techwithbob221  5 месяцев назад +1

      You're welcome! If you have any more questions or need further assistance, feel free to ask. I'm here to help!

  • @bikemadness6117
    @bikemadness6117 3 месяца назад

    Thanks brother 👏

    • @techwithbob221
      @techwithbob221  3 месяца назад

      You're welcome! If you have any more questions or need further assistance, feel free to ask anytime.

  • @mdrakif4612
    @mdrakif4612 4 месяца назад

    Thanks

    • @techwithbob221
      @techwithbob221  3 месяца назад

      You're very welcome! If you have any more questions or need further assistance, feel free to ask. I'm here to help!

  • @cinta_aa5911
    @cinta_aa5911 2 месяца назад

    why are my text view , gettext, and set visibility in main activity is erorr?? pls help

    • @techwithbob221
      @techwithbob221  Месяц назад

      To help you with the errors you're facing, could you provide more details? Specifically, what error messages are you seeing with your TextView, getText, and setVisibility methods? Additionally, sharing the relevant parts of your code where these issues are occurring would be very helpful. Looking forward to your response so I can assist you further!

  • @Amanda38219
    @Amanda38219 Год назад +2

    Aw, This Video only have 0 Comments! I'll make it 1K Comments Hopefully that's Helps!

  • @Elchin3d
    @Elchin3d Год назад +1

    Thank you for your tutorial. The only question which is beside from your tutorial concept. If you could answer i would appreciate. When I press dot on my keyboard the dot (point) appears on number field but calculation crashes and the app exits. What could be the correct way of this ?

    • @techwithbob221
      @techwithbob221  Год назад +1

      Hi Elçin,
      I apologize for the delay in my response to your comment. I'm sorry that I wasn't able to respond to your request in a timely manner.
      I'm sorry to hear that you're facing an issue with this project.
      It is possible that the error occurred because you clicked the equals sign without first selecting a mathematical operation. Make sure to choose the appropriate operation before clicking the equals sign to avoid any errors.
      One suggestion I can offer is to try using a try-catch block to identify and isolate the error and logging the exception to provide more visibility into the error.
      If you're still having trouble after trying this technique, you can contact me directly at my email:
      Bob.TechWithBob@gmail.com
      However, please note that due to some pressing commitments, I may not be able to respond immediately.
      Thank you for your understanding, and I hope we can resolve this issue together.

    • @CodersHaven
      @CodersHaven 9 месяцев назад

      @@techwithbob221 ...

  • @parashurama_srishti_
    @parashurama_srishti_ 8 месяцев назад

    8:29

  • @KaushikSomani-zz4xr
    @KaushikSomani-zz4xr Год назад

    anyone can say me from where other row button come?

    • @techwithbob221
      @techwithbob221  Год назад

      Hi KaushikSomani-zz4xr,
      Thank you for taking the time to watch my video and leave a comment. I appreciate your interest in my work.
      I'm sorry, but I'm not sure I understand your request. Could you please provide more details or clarify what you're looking for?
      Once I have a better understanding of your request, I'll do my best to help you out. Thank you for your patience and cooperation.

  • @techshoelbd4301
    @techshoelbd4301 4 месяца назад

    Your videos are great but the background is white😮

    • @techwithbob221
      @techwithbob221  3 месяца назад

      Thank you for your feedback! I appreciate your positive comments about the content of the videos. Your input is valuable in helping me improve the overall viewing experience. If you have any suggestions or ideas on how I can enhance the videos further, please feel free to share them. I'm always eager to hear from you.

  • @itsvir1755
    @itsvir1755 6 месяцев назад

    Hi
    is it gui based means the result in sameway displayed in video

    • @techwithbob221
      @techwithbob221  6 месяцев назад +1

      Hello itsvir1755,
      Thank you for your comment! Yes, the Android calculator app tutorial is GUI-based, meaning the user interface is designed to provide a graphical representation, and the result is displayed in a similar way to what you see in the video.
      If you have any further questions or if there's anything specific you'd like more information on, feel free to ask.
      Happy coding!

    • @itsvir1755
      @itsvir1755 6 месяцев назад

      Thank you for your such helpful reply thank you very much

  • @KaushikSomani-zz4xr
    @KaushikSomani-zz4xr Год назад +1

    How to fix this cannot extract from com.android.apptcompiler.ParsedResource@64779fac problem?

    • @techwithbob221
      @techwithbob221  Год назад +1

      Hi KaushikSomani-zz4xr,
      Thank you for taking the time to watch my video and leave a comment. I appreciate your interest in my work.
      I'm sorry, but I'm not sure I understand your request. Could you please provide more details or clarify what you're looking for?
      Once I have a better understanding of your request, I'll do my best to help you out. Thank you for your patience and cooperation.

  • @ayvanmacalino4992
    @ayvanmacalino4992 3 месяца назад

    what version of android studio did you use?

    • @techwithbob221
      @techwithbob221  3 месяца назад +1

      I'm not sure of the exact version of Android Studio used, but it's likely that it was Android Studio Electric Eel | 2022.1.1 Patch 2 (February 2023).

  • @alvarezamayajesusyahir371-8
    @alvarezamayajesusyahir371-8 9 месяцев назад +1

    Puedes darme tu github completo?? 😫🥺🙏

    • @techwithbob221
      @techwithbob221  3 месяца назад

      Lamentablemente, el proyecto no está disponible en GitHub en este momento. Sin embargo, puedes acceder a él siguiendo este enlace:
      drive.google.com/file/d/19fbHQDPG3FNQe6E-bsK7I_YjvV4TJpHB/view?usp=sharing
      Si tienes alguna otra pregunta o necesitas más información sobre el proyecto, no dudes en preguntar. ¡Estoy aquí para ayudarte!

  • @jerrymienalugon1246
    @jerrymienalugon1246 7 месяцев назад

    why it keeps crashing? help huhu

    • @techwithbob221
      @techwithbob221  7 месяцев назад

      Hi there! Thanks for reaching out. Please check the pinned comment for a useful tweak that might address your concern. If you still encounter issues, consider debugging and handling errors. Feel free to share the specific error details, and I'll do my best to assist you. Happy coding! 🚀

  • @suyashthale3172
    @suyashthale3172 5 месяцев назад +1

    Brother everything is working fine just I am unable to change the color of digits and signs(i.e they are not visible but still working ) pls help me

    • @sweetlavenderstudies
      @sweetlavenderstudies 5 месяцев назад

      android: textColor = " " is what helped me.

    • @techwithbob221
      @techwithbob221  3 месяца назад

      I'm glad to hear that everything else is working fine! However, I'm not quite understanding the issue with the color of the digits and signs. Are you saying that the buttons are not visible against the background? How are they not visible but still working? Could you provide more details or clarify the specific part where you're facing this issue? Once I have more information, I'll do my best to help you resolve it as quickly as possible.

    • @suyashthale3172
      @suyashthale3172 3 месяца назад

      @@techwithbob221I mean the texts on the buttons are not visible, I don't know they are overlap with circle background or not

    • @techwithbob221
      @techwithbob221  3 месяца назад +1

      If the texts on the buttons are not visible, you can try adding
      @color/black
      in buttons style (Button1 & Button2) in themes.xml. This might help in making the text visible. Give it a try and let me know if it resolves the issue. If you have any other questions or if this doesn't work, feel free to ask, and I'll do my best to assist you further!

    • @suyashthale3172
      @suyashthale3172 3 месяца назад

      @@techwithbob221 not working I think I made the shapes overlapping the text. If somehow you can understand my problem pls guide me

  • @Amanda38219
    @Amanda38219 Год назад

    a

  • @user-op8oi5kc2e
    @user-op8oi5kc2e 10 месяцев назад

    help plz

    • @techwithbob221
      @techwithbob221  10 месяцев назад

      Hi there!
      Thank you for reaching out and expressing your need for help. I'll be more than happy to assist you. Could you kindly provide more details about the specific issue or topic you need assistance with? This will help me understand how to best support you. Feel free to ask any questions or explain your problem further, and I'll do my best to guide you through it.
      Looking forward to hearing from you and helping you out!

  • @har1sh21
    @har1sh21 7 месяцев назад +1

    Multiplication is not working😢

    • @techwithbob221
      @techwithbob221  7 месяцев назад

      Hi har1sh21,
      Thank you for reaching out. I've reviewed the code and tested the app, and I didn't encounter any issues with the multiplication; it's working as expected.
      If you're experiencing a problem, I recommend checking your implementation and trying to debug it. Ensure that there's proper error handling in place, and if you encounter any specific errors, feel free to share them. I'd be happy to help troubleshoot. Happy coding!

  • @pranjalisrivastava6170
    @pranjalisrivastava6170 Год назад +1

    source code please

    • @techwithbob221
      @techwithbob221  Год назад +2

      Hi pranjalisrivastava6170,
      Thank you for watching my video. I'm happy to hear that you found it helpful.
      You can access the source code by following this link:
      drive.google.com/file/d/19fbHQDPG3FNQe6E-bsK7I_YjvV4TJpHB/view?usp=sharing
      Please note that the code is provided as is, without any warranties or support. Also, please keep in mind that the project is still in development and the code may be subject to change in the future.
      I would appreciate it if you subscribe, for more similar content in the future. Let me know if you have any other questions or suggestions.

  • @Amanda38219
    @Amanda38219 Год назад

    a
    a
    a

  • @Amanda38219
    @Amanda38219 Год назад

    a

  • @Amanda38219
    @Amanda38219 Год назад

    a

  • @Amanda38219
    @Amanda38219 Год назад

    a

  • @Amanda38219
    @Amanda38219 Год назад

    a

  • @Amanda38219
    @Amanda38219 Год назад

    a

  • @Amanda38219
    @Amanda38219 Год назад

    a

  • @Amanda38219
    @Amanda38219 Год назад

    a