File tree Expand file tree Collapse file tree 1 file changed +16
-10
lines changed
core/java/android/service/dreams Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change 4747 *
4848 * <p>Dreams should be declared in the manifest as follows:</p>
4949 * <pre>
50- * {@code
51- * <service
50+ * <service
5251 * android:name=".MyDream"
5352 * android:exported="true"
5453 * android:icon="@drawable/my_icon"
5554 * android:label="@string/my_dream_label" >
5655 *
57- * < intent-filter>
58- * < action android:name="android.intent.action.MAIN " />
59- * < category android:name="android.intent.category.DREAM " />
60- * < /intent-filter>
56+ * < intent-filter>
57+ * < action android:name="android.service.dreams.DreamService " />
58+ * < category android:name="android.intent.category.DEFAULT " />
59+ * < /intent-filter>
6160 *
62- * < !-- Point to additional information for this dream (optional) -->
63- * < meta-data
61+ * < !-- Point to additional information for this dream (optional) -->
62+ * < meta-data
6463 * android:name="android.service.dream"
6564 * android:resource="@xml/my_dream" />
66- * </service>
67- * }
65+ * </service>
66+ * </pre>
67+ * <p>If specified, additional information for the dream is defined using the
68+ * <code><{@link android.R.styleable#Dream dream}></code> element. For example:</p>
69+ * <pre>
70+ * (in res/xml/my_dream.xml)
71+ *
72+ * <dream xmlns:android="http://schemas.android.com/apk/res/android"
73+ * android:settingsActivity="com.example.app/.MyDreamSettingsActivity" />
6874 * </pre>
6975 */
7076public class DreamService extends Service implements Window .Callback {
You can’t perform that action at this time.
0 commit comments