I am using Android SDK 1.6. Could someone tell me how to set an image as the wallpaper in the homescreen.
getApplicationContext().setWallpaper();
seems to be not working for me.
I am using Android SDK 1.6. Could someone tell me how to set an image as the wallpaper in the homescreen.
getApplicationContext().setWallpaper();
seems to be not working for me.
You have to add the SET_WALLPAPER
permission to your AndroidManifest.xml
<manifest xlmns:android...>
...
<uses-permission android:name="android.permission.SET_WALLPAPER" />
</manifest>
© 2022 - 2024 — McMap. All rights reserved.