int mColor = 0xff00ff00;
remoteView.setInt(R.id.framelayout1, "setBackgroundResource", android.R.color.white);
how do i set the color using mColor ?
You should try
remoteView.setInt(R.id.framelayout1, "setBackgroundColor", mColor);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With