Search Results

Search found 1 results on 1 pages for 'user1459142'.

Page 1/1 | 1 

  • Live Wallpaper Engine Abstraction

    - by user1459142
    I am trying to obtain an instance of my live wallpaper engine in another class, here is my code... In the other class: WallpaperEngine wpe = (WallpaperEngine) LiveWallpaperService.onCreateEngine(); In LiveWallpaperService: @Override public Engine onCreateEngine() { // TODO Auto-generated method stub return new WallpaperEngine(); } But when I refer to an object in my engine (i.e, "wpe.variable"), I get a NullPointerException and the wallpaper force closes.

    Read the article

1