2

I am working on Google Android TV Application.

My application has to download images from a Social Networking Website and then play the images as a screen Saver when ever the Google Android TV is idle state.

Getting the images is not a problem, I've completed that.

I am unable to find any API's of Screen Saver or the Settings of Google API. I am unable to understand how can I pull the downloaded images to play it in screen saver.

Sathyajith Bhat
  • 21,321
  • 22
  • 95
  • 134
Anirudh Loya
  • 173
  • 7

2 Answers2

0

You need a timer which at certain interval check for onUserInteraction(), when user is not interacting you need to start your activity in full screen mode playing all the images.

Abdul Rahman
  • 2,097
  • 4
  • 28
  • 36
Just Variable
  • 892
  • 10
  • 19
  • What happens when user is watching a TV ? He is not interacting but just watching it for hours .. How can we detect it that time ? We cant play screen saver while he is watching .. – Anirudh Loya Nov 09 '12 at 15:57
0

Downloading images is easy using the apache http apis to get the url and image but put these in an Async task. You can also load the image using something like LazyList. Once the image is downloaded you can then display it easily too with an Imageview in ad a timer checking for onUserInteraction() when the user is not active.

Also you might want to look into these questions and group answers:

Android disable screen saver

Application For Google TV

GoogleGroups

Community
  • 1
  • 1
JPM
  • 9,077
  • 13
  • 78
  • 137
  • What happens when user is watching a TV ? He is not interacting but just watching it for hours .. How can we detect it that time ? We cant play screen saver while he is watching .. – Anirudh Loya Nov 12 '12 at 09:55
  • Well I know my direcTV has a 4 hour timer if I don't do one thing for 4 hours then it will shut off. You can take this approach and set the screen saver to something very long. But if you are trying to figure out if the user is watching TV then all you have to check is the streams and see if he is streaming anything. – JPM Nov 12 '12 at 18:38