user1241763
user1241763

Reputation: 59

How to add item in Setting->Display->Wallpaper->Choose wallpaper from?

I want to add item in Setting->Display->Wallpaper->Choose wallpaper from.

How to do and Please tell me,thanks..

enter image description here

Upvotes: 0

Views: 94

Answers (1)

Martin Nordholts
Martin Nordholts

Reputation: 10358

That is a list of Activities, so first ensure you have created an Activity that will be the entry point into your app from that list.

Then, open up AndroidManifest.xml and add the following <intent-filter> to the Activity you want to be listed:

<activity android:label="@string/activity_label" ...>
    <intent-filter>
        <action android:name="android.intent.action.SET_WALLPAPER" />
        <category android:name="android.intent.category.DEFAULT" />
    </intent-filter>
</activity>

The text of added item will be the label of the Activity (android:label="@string/activity_label")

Upvotes: 2

Related Questions