0

App close unexpectedly in android studio

I was developing calculator in android studio and i when i run it it stop unexpectedly when the editText box is empty and try to perform some opertion rather than of handling it. If somebody knows the issue kindly help me. https://pern-my.sharepoint.com/personal/fa18-bse-125_cuiatd_edu_pk/_layouts/15/onedrive.aspx?id=%2Fpersonal%2Ffa18%2Dbse%2D125%5Fcuiatd%5Fedu%5Fpk%2FDocuments%2FCalculator%20code

1st Nov 2020, 7:29 PM
Amar Murtaza
Amar Murtaza - avatar
7 Answers
+ 3
Amar Murtaza Welcome to SoloLearn. We can't know without seeing your code. Have you tried debbuging your app? It would help if you shared the debug log aswell as the code. Follow these rules when asking a question in SoloLearn: https://www.sololearn.com/Blog/38/8-simple-rules-to-get-help-from-the-community Welcome to the forum. Please add more details to your question.
1st Nov 2020, 8:07 PM
Kevin ★
+ 3
Amar Murtaza link your code or screenshot of error, try to figure out your log report(search that error you can probably find the solution). I think you are probably facing NullpointerExeption, if that's the case then you probably forget the Initialization process of your EditText or something.
2nd Nov 2020, 2:40 AM
0_O-[MĂ€gĂĄr_SĂĄm_ÄkĂ _NĂŒllpÞïntĂȘr_ÈxĂ«cĂ©ptïön]~~
0_O-[MĂ€gĂĄr_SĂĄm_ÄkĂ _NĂŒllpÞïntĂȘr_ÈxĂ«cĂ©ptïön]~~ - avatar
+ 2
Amar Murtaza go to share option of your code ,copy the link and paste it one your description.
2nd Nov 2020, 4:18 AM
0_O-[MĂ€gĂĄr_SĂĄm_ÄkĂ _NĂŒllpÞïntĂȘr_ÈxĂ«cĂ©ptïön]~~
0_O-[MĂ€gĂĄr_SĂĄm_ÄkĂ _NĂŒllpÞïntĂȘr_ÈxĂ«cĂ©ptïön]~~ - avatar
+ 2
Amar Murtaza your given link is asking for sign up, just Post a screenshot of that error on your feed and thank link here.
2nd Nov 2020, 4:30 AM
0_O-[MĂ€gĂĄr_SĂĄm_ÄkĂ _NĂŒllpÞïntĂȘr_ÈxĂ«cĂ©ptïön]~~
0_O-[MĂ€gĂĄr_SĂĄm_ÄkĂ _NĂŒllpÞïntĂȘr_ÈxĂ«cĂ©ptïön]~~ - avatar
0
How can i attach code to this because i dont see any option here of doing so
2nd Nov 2020, 4:15 AM
Amar Murtaza
Amar Murtaza - avatar
0
https://pern-my.sharepoint.com/personal/fa18-bse-125_cuiatd_edu_pk/_layouts/15/onedrive.aspx?id=%2Fpersonal%2Ffa18%2Dbse%2D125%5Fcuiatd%5Fedu%5Fpk%2FDocuments%2FCalculator%20code
2nd Nov 2020, 4:25 AM
Amar Murtaza
Amar Murtaza - avatar