The Idle Timeout application can be set using Attract Screen . The default Attract Screen app is NoAttractScreen app.
We can write a custom android application that can either run a screensaver or a video or do any other stuff we want it to do. Then we can make that application filter for the following intent ("concierge.intent.action.SHOW_ATTRACT_SCREEN") on the Android Manifest file of the app. Here is how our Home Application is set up to do same thing .
<action android:name="concierge.intent.action.SHOW_ATTRACT_SCREEN" />
<category android:name="android.intent.category.DEFAULT" />
Setting up the Attract Screen
Install the new AttractScreen App.
After the app is installed , go to Settings > UserSessions . There you can do two things .
1) Set up the timeout duration and
2) On the option "Attract Screen" you will be able to choose newly installed application to be set as Attract Screen(Idle Timeout App) .
You can install as many Attract Screen apps as you want and choose the default one there , and at the same time you can make any existing app Attract Screen app by filtering for that intent as shown above .
The AttractScreen application can be set via MDZ by constructing an MDZ package that contains a default_intents.xml file for the DEFAULT_INTENT_UPDATE action. A sample management folder structure that can be built into an MDZ for this purpose is attached to this document (AttractScreen_mgmt.zip). You can find this attachment at the bottom of this document. Use this sample as a reference for the structure of the directory that needs to be passed into the Management Package Builder tool as described on this page.
When there are many applications that can handle a intent , DEFAULT_INTENT_UPDATE action lets you to set one application as the default one . In the example below , Home App is selected as the default AttractScreen App. While creating a new file , put the complete ComponentName of the desired app for the tag "activity name" , and the intent tag would be the same as shown below.
The contents of the sample default_intents.xml file is shown below.
<?xml version="1.0" ?>
<activity name="com.motorola.asds.isign.home/.Home" >
<action name="concierge.intent.action.SHOW_ATTRACT_SCREEN" />
<cat name="android.intent.category.DEFAULT" />