Skip to content

Exception locking surface #728

Description

@MeetDev2602

first of all when I go to set the wallpaper so it show first android preview screen than if I click to home screen button then it took to me home screen but when I go to resume to app so it throws exception

class ProcessingLiveWallpaper : PWallpaper() {
    override fun onCreate() {
        super.onCreate()
    }

    override fun createSketch(): PApplet {
        return  AllAnimationLiveWallpaper(applicationContext)
    }
}
val liveIntent = Intent(WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER)
 liveIntent.putExtra(
                WallpaperManager.EXTRA_LIVE_WALLPAPER_COMPONENT,
                ComponentName(this@MainActivity, ProcessingLiveWallpaper::class.java)
            )
resultLauncher.launch(liveIntent)

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions