@Override protected void onResume() { super.onResume(); Bundle b = getIntent().getExtras(); int profileId = b.getInt("fac.userdelroot.droidprofiles.Notify", -1); pNotify = Profiles.getNotifyByProfileId( getContentResolver(), profileId, Notify.Columns.NOTIFY_TYPE_SMS); if (pNotify == null) pNotify = new Notify(); loadDefaultValues(); }