Skip to content

Exception locking surface #728

@MeetDev2602

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

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