You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i add some code after listener the radio wont play. Like when i try to do something like add a toast messge inside onMetaDataReceived. The app doesnt play anything and when i remove it. It works fine. Can someone help me.
public class MainActivity extends Activity implements RadioListener
... @OverRide
public void onRadioStarted() {
}
@Override
public void onRadioStopped() {
}
@Override
public void onMetaDataReceived(String s, String s1) {
}
The text was updated successfully, but these errors were encountered:
The radio seems to break whenever you try to do anything with View inside the listener. I don't know why. Updating variable is ok, but doing changes on your view will break it.
EDIT: maybe the listener cannot run on ui thread..
When i add some code after listener the radio wont play. Like when i try to do something like add a toast messge inside onMetaDataReceived. The app doesnt play anything and when i remove it. It works fine. Can someone help me.
public class MainActivity extends Activity implements RadioListener
...
@OverRide
public void onRadioStarted() {
The text was updated successfully, but these errors were encountered: