Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Android SDK 1.6。有人可以告诉我如何将图像设置为主屏幕中的壁纸。
getApplicationContext().setWallpaper();
似乎不适合我。
您必须将SET_WALLPAPER权限添加到您的AndroidManifest.xml
SET_WALLPAPER
AndroidManifest.xml
<manifest xlmns:android...> ... <uses-permission android:name="android.permission.SET_WALLPAPER" /> </manifest>