Music(activity) restarts when rotating device…why does it happen?and how can i stop it from restarting?
问题 well i think my question describes itself , anyways here is the code public class NowPlaying extends Activity implements Serializable { static MediaPlayer mp =new MediaPlayer(); String artist;ProgressDialog pd; int position; String key=null ; /*int z=0; SeekBar songProgressBar ; TextView songCurrentDurationLabel; TextView songTotalDurationLabel ; private Handler mHandler = new Handler(); private Utilities utils=new Utilities(); */ @SuppressLint("NewApi") protected void onCreate(Bundle