Everything works fine in my app but when I press the back button (I mean exit app) the app is crashing. And I don't know why? I tried a couple of solutions but nothing works. It's a sounds/ringtones application.
Here my code
And this is my error logs.
How should I resolve this error? Any help would be great. Thanks.
Is line 110 necessary?
I'm always a bit dubious about setting a reference to null.
In this case (based on when cleanUpMediaPlayer is called) it doesn't actually achieve anything, unless some external class calls it?
And if no external class uses that method then it ought to be private.
And when my army is complete, I will rule the world! But, for now, I'm going to be happy with this tiny ad:
Create Edit Print & Convert PDF Using Free API with Java