I have a livewallpaper and I want to my wallpaper work in portrait mode only. Can I do it?
<application
android:label="@string/wallpaper_name"
android:debuggable="true"
android:screenOrientation="portrait"
android:icon="@drawable/icon">
<service
android:label="@string/wallpaper"
android:name=".LiveWallpaper"
android:permission="android.permission.BIND_WALLPAPER">
<intent-filter>
<action android:name="android.service.wallpaper.WallpaperService" />
</intent-filter>
<meta-data
android:name="android.service.wallpaper"
android:resource="@xml/weather_wallpaper" />
</service>
</application>
I try this, but it does't work, because there is not android:screenOrientation in application tag.