I'm trying to implement a daydream service with a transparent background.
I wrote the following code:
public void onAttachedToWindow() {
super.onAttachedToWindow();
setContentView(R.layout.mydream);
getWindow().setBackgroundDrawable(new ColorDrawable(0));
.
.
.
}
But when I start up the daydream, the background is only transparent for 1 second. After that it turns to black background.
Can anyone help me with this?