3
After I upgraded to Android Kitkat (4.4), a class object MediaPlayer
Android generates the following alert on Logcat:
Should have Subtitle controller already set
As explained in that question of the SO, just call the method setSubtitleAnchor
class MediaPlayer
, as per the example provided makes, that the alert would disappear.
This alert does not bring me any harm, I do not care to leave it there, after all nothing bad occurs, no exceptions, no visual messages to the user, but still I would like to eliminate it.
However, I searched the class documentation MediaPlayer
, already considering the API Level 19, and I couldn’t find the method setSubtitleAnchor
.
There is another way to make this warning no longer generated by the class MediaPlayer
? Or how to find this method setSubtitleAnchor
?
*Emphasizing that my class instances MediaPlayer
are all used to play only audio, no kind of video is played at any time.
I just edited it to give the question one more chance, it was hard to find something that could be edited :)
– Maniero
@bigown Thanks! I’ve kind of given up on this! I haven’t found any solution to this until today, other than ignoring Warning! P
– carlosrafaelgn
@bigown more than a year has passed, and only now have I been able to answer in order to cure my curiosity :)
– carlosrafaelgn