I am working on simple android live wallpapers, I am following chapter 12 of Hello, Android as my guide.
The bare bones of the wallpaper look like this:
public class MyWallpaper extends WallpaperService { private class MyEngine extends Engine {
According to the book MyEngine must will be the inner class MyWallpaper . I have no reason to argue about this, but the book does not explain why this is so. I prefer not to use inner classes solely for stylistic / aesthetic reasons.
I was wondering if MyEngine should really be a private inner class, and if so, why?
Peter source share