CatalystNZ
CatalystNZ

Reputation: 770

Can a live wallpaper also be an application? (With a separate Activity for the Application)

I have a Live Wallpaper which I would like to also make available as an Activity which can be accessed as a normal Phone App.

Can this be achieved?

Thanks in advance, Mark

Upvotes: 1

Views: 286

Answers (2)

Quintin Robinson
Quintin Robinson

Reputation: 82345

You certainly can you just need to setup the activities you want to expose through proper intent filters in your Android manifest under the application node..

<activity ...> <!-- this being the activity you want to expose -->
    <intent-filter>
        <action android:name="android.intent.action.MAIN"/>
        <category android:name="android.intent.category.LAUNCHER"/>
    </intent-filter>
</activity>

Upvotes: 1

EboMike
EboMike

Reputation: 77752

Just append an acitivity with

    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />

in the manifest. You can have as many as you want.

Upvotes: 2

Related Questions