Questions tagged [dreamservice]

Daydream is an interactive screensaver mode on devices running Android 4.2 or newer. The DreamService API is used to create these wallpapers.

13 questions
5
votes
0 answers

android.os.BinderProxy cannot be cast to android.service.dreams.DreamService$DreamServiceWrapper

I'm struggling with exception Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{net.hubalek.android.apps.reborn.pro/android.service.dreams.DreamActivity}: java.lang.ClassCastException: android.os.BinderProxy cannot…
Tomáš Hubálek
  • 1,162
  • 1
  • 10
  • 28
4
votes
3 answers

Daydream with transparent background

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…
0s0ft
  • 76
  • 5
3
votes
1 answer

Screensaver with DreamService

I'm trying to make a simple screensaver which display pictures with DreamService but I allways got a simple colors screensaver. there is my code: AndroidManifest.xml
nobody710
  • 125
  • 1
  • 8
3
votes
1 answer

Hide Navigation Bar when starting the Daydream service?

I am adding the Dreamservice to my app, where I would like to play a video during the dream. Roughly the same code I use to hide the navigation control during my Main Activity // Hide navigation controls View v =…
Bradley Bossard
  • 2,439
  • 2
  • 23
  • 30
3
votes
2 answers

Android: DayDream in Application

I'm developing application in which I'm using DreamService. But built-in options only give start daydreaming while charging and docking. Is there any solution to invoke daydreaming during executing application( while device is inactive for a while,…
Forin
  • 1,549
  • 2
  • 20
  • 44
3
votes
2 answers

Android: Fragments Inside Daydreams

I am trying to create a daydream app and cannot seem to find any documentation on the use of fragments within my DreamService class. My intention was to use a frame the in the XML file:
user2052428
  • 31
  • 1
  • 3
3
votes
3 answers

Lock screen orientation of a DreamService

I've been fiddling with the new DreamService API for the past few hours, and it's pretty sweet. I do have one question, though. I'd like to lock the screen orientation to landscape when the DreamService is shown. The purpose of the DreamService is…
Michell Bak
  • 13,182
  • 11
  • 64
  • 121
2
votes
2 answers

Conditionally declare service in AndroidManifest

I have a service, in particular an Android Daydream DreamService, that I have declared in my AndroidManifest.xml file. When my app is loaded, Android detects this declaration and adds my app as an option to the list of Daydreams the user can choose…
Brian
  • 7,955
  • 16
  • 66
  • 107
1
vote
2 answers

How do I run an Android Dream Service as (or within) an Activity?

I have a perfectly functioning DreamService that I want to use within my main activity along with an extra button so that the user can access settings (Android TV appears to be missing the daydream settings icon as far as I can tell). Is there an…
Remy
  • 1,414
  • 4
  • 20
  • 29
1
vote
1 answer

RunOnUiThread in DreamService?

I have a DreamService and I want to begin updating some UI stuff once a background thread completes (I'm raising an event to trigger this). In the main version of my app I just use RunOnUiThread to start the UI updates from the event but…
James
  • 999
  • 2
  • 11
  • 22
0
votes
1 answer

Daydream service : make custom Daydream service as default

I created a Daydream service, and it's work perfectly, but I want to make it as default (don't need to go to Setting /screen saver ...). Is there a way to set screen saver default package like setDefaultComponent…
NVD
  • 1
  • 2
0
votes
1 answer

Clicking on settings button in Android Daydream service stopping the application

Clicking on settings button of daydream application closing my application. Please have allok at the Manifest file -
nki
  • 192
  • 3
  • 17
0
votes
1 answer

Ads in Android Daydream/DreamService?

Does anyone know if any of the Android Advertising SDKs work with the new DreamService functionality? I tried using AdMob and first saw that the Interstitial class constructor explicitly requires an Activity. I saw the the AdView has a constructor…