Closed mahmooddagga closed 7 years ago
@iammert @muratcanbur
i solve it i solve the problem by checking if its playing then stop -- before was always on press back stop may it causes issues
@Override
public void onBackPressed() {
**if (mRadioManager.isPlaying())**
mRadioManager.stopRadio();
mRadioManager.disconnect();
mRadioManager = null;
super.onBackPressed();
}
i was put context MainActivity.this i am trying change context and the result various ,,.... i try getApplicationContext but listner not fire
i think getBaseContext its best result mRadioManager = RadioManager.with(getBaseContext());