Android4.0 默认静、动态桌面设置

默认静态:

                 (1) mkdir -p overlay\frameworks\base\core\res\res\drawable-xlarge-nodpi

                 (2)并放置default_wallpaper.jpg  //你想设置的静态桌面

                 (3)在配置文件xxx.mk添加一行:DEVICE_PACKAGE_OVERLAYS :=$(LOCAL_PATH)/overlay  //这样就可以替换默认静态桌面了

默认动态:

                  (1)默认为“水面落叶”动态墙纸

                  (2)修改frameworks\base\core\res\res\values\config.xml

                    (3)<!-- Component name of the default wallpaper. This will be ImageWallpaper if not
                                  specified -->
                         <string name="default_wallpaper_component">com.android.wallpaper/.fall.FallWallpaper</string>包名/类名

注:logcat &

查看有:E/SurfaceTexture(   88): [ com.android.wallpaper.fall.FallWallpaper]

你可能感兴趣的:(android,String,Path,frameworks)