* commit '81f8927884610ea7bf9a7af59738eb3e3d0a4798': Update javadocs for DreamService.
This commit is contained in:
@@ -47,24 +47,30 @@ import com.android.internal.policy.PolicyManager;
|
|||||||
*
|
*
|
||||||
* <p>Dreams should be declared in the manifest as follows:</p>
|
* <p>Dreams should be declared in the manifest as follows:</p>
|
||||||
* <pre>
|
* <pre>
|
||||||
* {@code
|
* <service
|
||||||
* <service
|
|
||||||
* android:name=".MyDream"
|
* android:name=".MyDream"
|
||||||
* android:exported="true"
|
* android:exported="true"
|
||||||
* android:icon="@drawable/my_icon"
|
* android:icon="@drawable/my_icon"
|
||||||
* android:label="@string/my_dream_label" >
|
* android:label="@string/my_dream_label" >
|
||||||
*
|
*
|
||||||
* <intent-filter>
|
* <intent-filter>
|
||||||
* <action android:name="android.intent.action.MAIN" />
|
* <action android:name="android.service.dreams.DreamService" />
|
||||||
* <category android:name="android.intent.category.DREAM" />
|
* <category android:name="android.intent.category.DEFAULT" />
|
||||||
* </intent-filter>
|
* </intent-filter>
|
||||||
*
|
*
|
||||||
* <!-- Point to additional information for this dream (optional) -->
|
* <!-- Point to additional information for this dream (optional) -->
|
||||||
* <meta-data
|
* <meta-data
|
||||||
* android:name="android.service.dream"
|
* android:name="android.service.dream"
|
||||||
* android:resource="@xml/my_dream" />
|
* android:resource="@xml/my_dream" />
|
||||||
* </service>
|
* </service>
|
||||||
* }
|
* </pre>
|
||||||
|
* <p>If specified, additional information for the dream is defined using the
|
||||||
|
* <code><{@link android.R.styleable#Dream dream}></code> element. For example:</p>
|
||||||
|
* <pre>
|
||||||
|
* (in res/xml/my_dream.xml)
|
||||||
|
*
|
||||||
|
* <dream xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
* android:settingsActivity="com.example.app/.MyDreamSettingsActivity" />
|
||||||
* </pre>
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public class DreamService extends Service implements Window.Callback {
|
public class DreamService extends Service implements Window.Callback {
|
||||||
|
|||||||
Reference in New Issue
Block a user