Background
I answered a certain question long ago. It was too localized back then but I was a newb and I answered it. Now it is gathering some views because of its title.
My answer back then was also too localized. I answered in a way that the OP could just copy and paste my answer for it to work. Now 2 years has passed when I noticed that it is still gathering views and giving me reputation, so I decided to improve my answer. I added an explanation of the gist of my previous answer but I did not delete the original answer entirely.
Assumption
It has been 2 years since the OP was last seen here in SO. I assume that the question and answer has already served its purpose for him.
What I want to do
Since it is gathering views, I expect it to gather more views in the future.
- I want to edit the question to make it more readable, and more consistent to its title.
- I want to remove the source code provided in the question.
- I want to change the title from Play sound on button click android to How to play a sound on button click in Android.
- I also want to delete my original answer entirely as it's of no use right now. IMO the explanation is enough.
- If deleting my original answer is too much, then I will just remove the parts(parts that address the OP's coding mistakes) that make it too localized.
Doing this, the question will be reduced to something like:
How to play a sound on button click in Android?
How do you get a button to play a sound from raw on click? I created a button with id
button1
and I do not know how to proceed.
Now if I do this, I am afraid that my edit will be rejected as deviates too much from the original intent. I also am not sure if it is correct to do this things. There is that Explainer badge so I assume that this is somewhat encouraged. I then read this blog post and this meta post but I'm afraid that my edit is still too big that it warrants some feedback from the community.
Question
Is it correct to proceed with what I want to do or should I just forget about it and get on with my life?