Skip to content

Tag: android

Wrong values from string empty test (java x kotlin)

I’m having a super weird behavior from a code that I was testing. The test I wrote was to see the behavior of the class if the Android returned an empty package name. After some debugging, I found this (consider that packageName is empty): Is this expected? Can someone tell what the deal with this? ps1.…

SearchView icon shows twice

I’ve implemented SearchView inside my toolbar, following Android’s official instructions. SearchView works well itself, but when I tap the search icon, it is shifted to the left instead of showing the Search Hint and Close button, although if I click this “second Search” icon, finally …

ExoPlayer switching media source without black screen

I’m using exoplayer in my project, when switching mediasource i just use This causes approx. 0.5 seconds black screen until it switches video. Is there a way to tell exoplayer to retain last frame from previous video (instead of 0.5 sec black screen) until new video is started? Answer