10
int mColor = 0xff00ff00;

remoteView.setInt(R.id.framelayout1, "setBackgroundResource", android.R.color.white);

how do i set the color using mColor ?

mr bum
  • 194
  • 2
  • 10

1 Answers1

25

You should try

remoteView.setInt(R.id.framelayout1, "setBackgroundColor", mColor);
Vitaly Zinchenko
  • 4,871
  • 5
  • 36
  • 52
blessanm86
  • 31,439
  • 14
  • 68
  • 79