Set ringtone resource.

@param context
@param resId
510632
public void setRingtone(Context context, int resId) {
        if (resId > 0) {
            this.ringtoneUri = Uri.parse("android.resource://" +
                context.getPackageName() + "/" + resId);
        }
    }
441758
public T text(int resid) {

        if (view instanceof TextView) {
            TextView tv = (TextView) view;
            tv.setText(resid);
        }
        return self();
    }
1126582
public void startSecuritySettingsActivity(Context context) {
        if (!startDelegateActivity(context, delegate.getSecuritySettingsIntent(), null)) {
            startActivity(context, null, SecuritySettingsActivity.class);
        }
    }
47833
public void setContentView(int resId) {
        if (mCurrentLayoutId != resId) {
            View view = inflate(mContext, resId, null);
            if (mDefaultContentView == null &&
                resId == mCallback.getContentViewDefaultLayoutId(this)) {
                mDefaultContentView = view;
                mDefaultLayoutId = resId;
            }
            mCurrentLayoutId = resId;
            setContentView(view);
        }
    }
667035
public void beginContext(ServletContext context, ServletRequest req, ServletResponse resp)
    {
        pushRequestContext(context, req, resp);
        super.beginContext();
    }
43578
public static String readTextFile(Context context, int resourceId) {
        InputStream inputStream = context.getResources().openRawResource(
                resourceId);
        return readTextFile(inputStream);
    }
1173920
@Override
    public void initialize(BeanContext context) {
        Resource resource = ConsoleUtil.getConsoleResource(context);
        initialize(context, ResourceHandle.use(resource));
    }
1056836
public final void setDialogWindowBackground(@DrawableRes final int resourceId) {
        this.dialogWindowBackground = ContextCompat.getDrawable(getContext(), resourceId);
        this.dialogWindowBackgroundBitmap = null;
        this.dialogWindowBackgroundId = resourceId;
    }
916790
public final void setIcon(@DrawableRes final int resourceId) {
        this.icon = ContextCompat.getDrawable(getContext(), resourceId);
        this.iconBitmap = null;
        this.iconId = resourceId;
        this.iconAttributeId = -1;
        adaptIcon();
    }
21093
public void setResourceLocalService(
		com.liferay.portal.kernel.service.ResourceLocalService resourceLocalService) {
		this.resourceLocalService = resourceLocalService;
	}
861273
private void fillResponseContext(UnitResponse.Context context) {
        context.setDestinationNodeId(unitRequest.getContext().getSourceNodeId());
        context.setSourceNodeId(LocalNodeManager.LOCAL_NODE_ID);
        context.setMsgId(unitRequest.getContext().getMsgId());
        context.setSsid(unitRequest.getContext().getSsid());
    }
427006
public void setRingtone(String filepath) {
        if (filepath != null) {
            File file = new File(filepath);
            if (file.exists()) {
                this.ringtoneUri = Uri.fromFile(file);
            } else {
                Log.e(TAG, "ringtone file not found.");
            }
        }
    }
1339210
public static int retrieveThemeColor(Context context, int resId) {
    TypedValue outValue = resolveAttributeFromId(context, resId);
    if (outValue.type >= TypedValue.TYPE_FIRST_COLOR_INT
      && outValue.type <= TypedValue.TYPE_LAST_COLOR_INT) {
      return outValue.data;
    } else {
      return ContextCompat.getColor(context, outValue.resourceId);
    }
  }
1137238
public static void initializeSmsRadarService(Context context, SmsListener smsListener) {
		SmsRadar.smsListener = smsListener;
		Intent intent = new Intent(context, SmsRadarService.class);
		context.startService(intent);
	}
470621
public SimpleDialog radioButtonStyle(int resId){
        if(mRadioButtonStyle != resId){
            mRadioButtonStyle = resId;
            if(mAdapter != null && mMode == MODE_ITEMS)
                mAdapter.notifyDataSetChanged();
        }
        return this;
    }
604461
private void fillResponseContext(UnitResponse.Context responseContext) {
        IdManager.makeSureMsgId(responseContext);
        responseContext.setNodeStatus(getSimpleStatus());
        responseContext.setMessageType(MessageType.response);
    }
1270995
public SimpleDialog messageTextAppearance(int resId){
        if(mMessageTextAppearanceId != resId){
            mMessageTextAppearanceId = resId;
            if(mMessage != null)
                mMessage.setTextAppearance(getContext(), mMessageTextAppearanceId);
        }
        return this;
    }