I developed the bubble-dictionary live wallpaper and is working fine, but when I change orientation on my mobile android canvas, it give error illegal argument exception
, so I want to have fixed orientation of my wallpaper service. Any one can please help me how to fixed the orientation of live wallpaper service my Manifest
file have follwoing its not have any screen orientation
for service tag so please tell me how to do this
<application
android:icon="@drawable/icon"
android:label="@string/app_name" >
<service
android:name="com.packageService.android.samplesV1.SampleLiveWallpaperService"
android:label="@string/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/sample_livewallpaper" />
</service>
<activity
android:name="com.packageService.android.samplesV1.ColorSettings"
android:exported="true"
android:label="Settings"
android:screenOrientation="portrait" >
</activity>
</application>