Added BroadcastReceiver so that other apps can send intent to set the preference(none,slide,device)