int mColor = 0xff00ff00; remoteView.setInt(R.id.framelayout1, "setBackgroundResource", android.R.color.white);
How to set color using mColor?
You must try
remoteView.setInt(R.id.framelayout1, "setBackgroundColor", mColor);