Reputation: 194
int mColor = 0xff00ff00;
remoteView.setInt(R.id.framelayout1, "setBackgroundResource", android.R.color.white);
how do i set the color using mColor ?
Upvotes: 10
Views: 7290
Reputation: 31779
You should try
remoteView.setInt(R.id.framelayout1, "setBackgroundColor", mColor);
Upvotes: 25