1.前言
在10.0的系统rom定制化开发中,在进行Launcher3的开发过程中,在launcher3启动的过程中,有时候会出现引用Context的时候, 出现Tried to access visual service WallpaperManager from a non-visual Context:android.app.Application@794ff48 Visual services, such as WindowManager, WallpaperService or LayoutInflater should be accessed from Activity or other visual Context. Use an Activity or a Context created with Context#createWindowContext(int, Bundle), which are adjusted to the configuration and visual bounds of an area on screen.的异常,接下来分析下异常的原因,然后解决这个问题
2.Launcher3中Tried to access visual service WallpaperManager from a non-visual Contextandroid.app.Application的异常分析
packages\apps\Launcher3\quickstep\src\com\android\launcher3\uioverrides\WallpaperColorInfo.java
订阅专栏 解锁全文
333

被折叠的 条评论
为什么被折叠?



