public override void OnActivityCreated (Bundle savedInstanceState) { base.OnActivityCreated (savedInstanceState); _connection = new PlayerServiceConnection (this); _pauseIconString = Activity.ApplicationContext.GetString (Resource.String.ic_fa_pause); _playIconString = Activity.ApplicationContext.GetString (Resource.String.ic_fa_play); InitializeViews (); _uIUpdateTimer = new Timer ( o => Activity.RunOnUiThread (UpdateFromPlayerService), // Must RunOnUiThread to update. null, Timeout.Infinite, Timeout.Infinite ); }
public override void OnActivityCreated(Bundle savedInstanceState) { base.OnActivityCreated(savedInstanceState); _connection = new PlayerServiceConnection(this); _pauseIconString = Activity.ApplicationContext.GetString(Resource.String.ic_fa_pause); _playIconString = Activity.ApplicationContext.GetString(Resource.String.ic_fa_play); InitializeViews(); _uIUpdateTimer = new Timer( o => Activity.RunOnUiThread(UpdateFromPlayerService), // Must RunOnUiThread to update. null, Timeout.Infinite, Timeout.Infinite ); }