Search Unity

uLiveWallpaper - Develop Android Live Wallpapers with Unity!

Discussion in 'Assets and Asset Store' started by ZimM, Dec 20, 2015.

  1. Andre555544445555

    Andre555544445555

    Joined:
    Jul 27, 2016
    Posts:
    4
    Hello!

    After running project on android studio, android emulator say error: "unfortunately ulive has stopped.
    What is problem?

    Logcat android monitor:


    07-27 10:26:11.094 3663-3663/com.A1.A131 D/UnityLWP: Starting uLiveWallpaper v1.3.0.1 release (Unity v5.4.0), built at 28-06-2016 22:22:59
    07-27 10:26:11.114 3663-3663/com.A1.A131 D/UnityLWP: UnityPlayerWrapper == null, trying to create it
    07-27 10:26:11.179 3663-3663/com.A1.A131 E/UnityLWP: Unable to disable conflicting built-in Unity player API 23 permission request dialog. This may result in wallpaper not starting when some permissions are not granted. Please report this!
    07-27 10:26:11.179 3663-3663/com.A1.A131 W/System.err: java.lang.Exception: isApiVersionFieldDisabled == false
    07-27 10:26:11.179 3663-3663/com.A1.A131 W/System.err: at com.lostpolygon.unity.androidintegration.h.a(Unknown Source)
    07-27 10:26:11.179 3663-3663/com.A1.A131 W/System.err: at com.lostpolygon.unity.androidintegration.h.<init>(Unknown Source)
    07-27 10:26:11.179 3663-3663/com.A1.A131 W/System.err: at com.lostpolygon.unity.androidintegration.UnityPlayerInstanceManager.createUnityPlayerDirectly(Unknown Source)
    07-27 10:26:11.179 3663-3663/com.A1.A131 W/System.err: at com.lostpolygon.unity.androidintegration.UnityPlayerInstanceManager$1.run(Unknown Source)
    07-27 10:26:11.179 3663-3663/com.A1.A131 W/System.err: at com.lostpolygon.unity.androidintegration.d.a(Unknown Source)
    07-27 10:26:11.179 3663-3663/com.A1.A131 W/System.err: at com.lostpolygon.unity.androidintegration.UnityPlayerInstanceManager.createUnityPlayerFromActivity(Unknown Source)
    07-27 10:26:11.179 3663-3663/com.A1.A131 W/System.err: at com.lostpolygon.unity.androidintegration.UnityPlayerInstanceManager.requestCreateUnityPlayer(Unknown Source)
    07-27 10:26:11.179 3663-3663/com.A1.A131 W/System.err: at com.lostpolygon.unity.androidintegration.i.a(Unknown Source)
    07-27 10:26:11.179 3663-3663/com.A1.A131 W/System.err: at com.lostpolygon.unity.livewallpaper.LiveWallpaperCompatibleUnityPlayerActivity.onCreate(Unknown Source)
    07-27 10:26:11.179 3663-3663/com.A1.A131 W/System.err: at android.app.Activity.performCreate(Activity.java:6237)
    07-27 10:26:11.179 3663-3663/com.A1.A131 W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
    07-27 10:26:11.179 3663-3663/com.A1.A131 W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
    07-27 10:26:11.181 3663-3663/com.A1.A131 W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
    07-27 10:26:11.181 3663-3663/com.A1.A131 W/System.err: at android.app.ActivityThread.-wrap11(ActivityThread.java)
    07-27 10:26:11.181 3663-3663/com.A1.A131 W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
    07-27 10:26:11.181 3663-3663/com.A1.A131 W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
    07-27 10:26:11.181 3663-3663/com.A1.A131 W/System.err: at android.os.Looper.loop(Looper.java:148)
    07-27 10:26:11.181 3663-3663/com.A1.A131 W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5417)
    07-27 10:26:11.181 3663-3663/com.A1.A131 W/System.err: at java.lang.reflect.Method.invoke(Native Method)
    07-27 10:26:11.181 3663-3663/com.A1.A131 W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    07-27 10:26:11.181 3663-3663/com.A1.A131 W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
    07-27 10:26:11.188 3663-3663/com.A1.A131 W/Unity: Not running Unity from an Activity; ignored...
    07-27 10:26:11.232 3663-3663/com.A1.A131 E/UnityLWP: Unable to initialize VSyncManagerWrapper. This will lead to more battery drain when live wallpaper is in the background. Please report this.
    07-27 10:26:11.232 3663-3663/com.A1.A131 W/System.err: java.lang.Exception: VSyncManager interface type not found
    07-27 10:26:11.232 3663-3663/com.A1.A131 W/System.err: at com.lostpolygon.unity.androidintegration.h$b.<init>(Unknown Source)
    07-27 10:26:11.232 3663-3663/com.A1.A131 W/System.err: at com.lostpolygon.unity.androidintegration.h.<init>(Unknown Source)
    07-27 10:26:11.232 3663-3663/com.A1.A131 W/System.err: at com.lostpolygon.unity.androidintegration.UnityPlayerInstanceManager.createUnityPlayerDirectly(Unknown Source)
    07-27 10:26:11.232 3663-3663/com.A1.A131 W/System.err: at com.lostpolygon.unity.androidintegration.UnityPlayerInstanceManager$1.run(Unknown Source)
    07-27 10:26:11.232 3663-3663/com.A1.A131 W/System.err: at com.lostpolygon.unity.androidintegration.d.a(Unknown Source)
    07-27 10:26:11.232 3663-3663/com.A1.A131 W/System.err: at com.lostpolygon.unity.androidintegration.UnityPlayerInstanceManager.createUnityPlayerFromActivity(Unknown Source)
    07-27 10:26:11.233 3663-3663/com.A1.A131 W/System.err: at com.lostpolygon.unity.androidintegration.UnityPlayerInstanceManager.requestCreateUnityPlayer(Unknown Source)
    07-27 10:26:11.233 3663-3663/com.A1.A131 W/System.err: at com.lostpolygon.unity.androidintegration.i.a(Unknown Source)
    07-27 10:26:11.233 3663-3663/com.A1.A131 W/System.err: at com.lostpolygon.unity.livewallpaper.LiveWallpaperCompatibleUnityPlayerActivity.onCreate(Unknown Source)
    07-27 10:26:11.233 3663-3663/com.A1.A131 W/System.err: at android.app.Activity.performCreate(Activity.java:6237)
    07-27 10:26:11.233 3663-3663/com.A1.A131 W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
    07-27 10:26:11.233 3663-3663/com.A1.A131 W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
    07-27 10:26:11.233 3663-3663/com.A1.A131 W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
    07-27 10:26:11.233 3663-3663/com.A1.A131 W/System.err: at android.app.ActivityThread.-wrap11(ActivityThread.java)
    07-27 10:26:11.233 3663-3663/com.A1.A131 W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
    07-27 10:26:11.233 3663-3663/com.A1.A131 W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
    07-27 10:26:11.233 3663-3663/com.A1.A131 W/System.err: at android.os.Looper.loop(Looper.java:148)
    07-27 10:26:11.233 3663-3663/com.A1.A131 W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5417)
    07-27 10:26:11.233 3663-3663/com.A1.A131 W/System.err: at java.lang.reflect.Method.invoke(Native Method)
    07-27 10:26:11.233 3663-3663/com.A1.A131 W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    07-27 10:26:11.233 3663-3663/com.A1.A131 W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
    07-27 10:26:11.262 3663-3663/com.A1.A131 W/ResourceType: Invalid package identifier when getting bag for resource number 0x00000000
    07-27 10:26:11.275 3663-3692/com.A1.A131 D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true

    [ 07-27 10:26:11.282 3663: 3663 D/ ]
    HostConnection::get() New Host Connection established 0xaaa110a0, tid 3663


    [ 07-27 10:26:11.332 3663: 3692 D/ ]
    HostConnection::get() New Host Connection established 0xae3d28c0, tid 3692
    07-27 10:26:11.334 3663-3692/com.A1.A131 I/OpenGLRenderer: Initialized EGL, version 1.4
    07-27 10:26:11.413 3663-3692/com.A1.A131 W/EGL_emulation: eglSurfaceAttrib not implemented
    07-27 10:26:11.413 3663-3692/com.A1.A131 W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xae3d3600, error=EGL_SUCCESS
    07-27 10:26:11.419 3663-3663/com.A1.A131 W/Unity: Not running Unity from an Activity; ignored...
    07-27 10:26:11.420 3663-3663/com.A1.A131 D/UnityLWP: UnityPlayerWrapper: Resuming
    07-27 10:26:11.579 3663-3690/com.A1.A131 E/EGL_emulation: [getAttribValue] Bad attribute idx
    07-27 10:26:11.579 3663-3690/com.A1.A131 E/EGL_emulation: tid 3690: eglGetConfigAttrib(613): error 0x3004 (EGL_BAD_ATTRIBUTE)
    07-27 10:26:11.579 3663-3690/com.A1.A131 E/EGL_emulation: [getAttribValue] Bad attribute idx
    07-27 10:26:11.579 3663-3690/com.A1.A131 E/EGL_emulation: tid 3690: eglGetConfigAttrib(613): error 0x3004 (EGL_BAD_ATTRIBUTE)
    07-27 10:26:11.579 3663-3690/com.A1.A131 E/EGL_emulation: [getAttribValue] Bad attribute idx
    07-27 10:26:11.579 3663-3690/com.A1.A131 E/EGL_emulation: tid 3690: eglGetConfigAttrib(613): error 0x3004 (EGL_BAD_ATTRIBUTE)
    07-27 10:26:11.609 3663-3690/com.A1.A131 D/Unity: GL_EXT_debug_marker GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_depth24 GL_OES_depth32 GL_OES_element_index_uint GL_OES_texture_float GL_OES_texture_float_linear GL_OES_compressed_paletted_texture GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth_texture GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_packed_depth_stencil GL_OES_vertex_half_float GL_OES_texture_npot GL_OES_rgb8_rgba8 ANDROID_EMU_CHECKSUM_HELPER_v1
    07-27 10:26:11.698 3663-3690/com.A1.A131 W/libc: pthread_create sched_setscheduler call failed: Operation not permitted
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: #version 100
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: #extension GL_EXT_shader_texture_lod : enable
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: precision mediump float;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: lowp vec4 impl_low_textureCubeLodEXT(lowp samplerCube sampler, highp vec3 coord, mediump float lod)
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: {
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: #if defined(GL_EXT_shader_texture_lod)
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: return textureCubeLodEXT(sampler, coord, lod);
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: #else
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: return textureCube(sampler, coord, lod);
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: #endif
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: }
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: uniform highp vec3 _WorldSpaceCameraPos;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: uniform highp vec4 _ProjectionParams;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: uniform highp vec4 _ZBufferParams;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: uniform highp mat4 unity_CameraToWorld;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: uniform lowp samplerCube unity_SpecCube0;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: uniform highp vec4 unity_SpecCube0_BoxMax;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: uniform highp vec4 unity_SpecCube0_BoxMin;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: uniform mediump vec4 unity_SpecCube0_HDR;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: uniform highp vec4 unity_SpecCube1_ProbePosition;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: uniform highp sampler2D _CameraDepthTexture;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: uniform sampler2D _CameraGBufferTexture0;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: uniform sampler2D _CameraGBufferTexture1;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: uniform sampler2D _CameraGBufferTexture2;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: varying highp vec4 xlv_TEXCOORD0;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: varying highp vec3 xlv_TEXCOORD1;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: void main ()
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: {
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: mediump float tmpvar_1;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: mediump vec3 worldNormalRefl_2;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: mediump vec4 gbuffer2_3;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: mediump vec4 gbuffer1_4;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: mediump vec4 gbuffer0_5;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: highp vec2 tmpvar_6;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: tmpvar_6 = (xlv_TEXCOORD0.xy / xlv_TEXCOORD0.w);
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: highp vec4 tmpvar_7;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: tmpvar_7.w = 1.0;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: tmpvar_7.xyz = ((xlv_TEXCOORD1 * (_ProjectionParams.z / xlv_TEXCOORD1.z)) * (1.0/((
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: (_ZBufferParams.x * texture2D (_CameraDepthTexture, tmpvar_6).x)
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: + _ZBufferParams.y))));
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: highp vec3 tmpvar_8;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: tmpvar_8 = (unity_CameraToWorld * tmpvar_7).xyz;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: lowp vec4 tmpvar_9;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: tmpvar_9 = texture2D (_CameraGBufferTexture0, tmpvar_6);
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: gbuffer0_5 = tmpvar_9;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: lowp vec4 tmpvar_10;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: tmpvar_10 = texture2D (_CameraGBufferTexture1, tmpvar_6);
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: gbuffer1_4 = tmpvar_10;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: lowp vec4 tmpvar_11;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: tmpvar_11 = texture2D (_CameraGBufferTexture2, tmpvar_6);
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: gbuffer2_3 = tmpvar_11;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: mediump vec3 tmpvar_12;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: tmpvar_12 = normalize(((gbuffer2_3.xyz * 2.0) - 1.0));
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: highp vec3 tmpvar_13;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: tmpvar_13 = normalize((tmpvar_8 - _WorldSpaceCameraPos));
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: highp vec3 tmpvar_14;
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: tmpvar_14 = (tmpvar_13 - (2.0 * (
    07-27 10:26:11.836 3663-3690/com.A1.A131 D/Unity: dot (tmpvar_12, tmpvar_13)
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: * tmpvar_12)));
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: worldNormalRefl_2 = tmpvar_14;
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: tmpvar_1 = (1.0 - gbuffer1_4.w);
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: mediump vec4 tmpvar_15;
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: tmpvar_15.xyz = worldNormalRefl_2;
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: tmpvar_15.w = ((tmpvar_1 * (1.7 -
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: (0.7 * tmpvar_1)
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: )) * 6.0);
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: lowp vec4 tmpvar_16;
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: tmpvar_16 = impl_low_textureCubeLodEXT (unity_SpecCube0, worldNormalRefl_2, tmpvar_15.w);
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: mediump vec4 tmpvar_17;
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: tmpvar_17 = tmpvar_16;
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: mediump vec3 viewDir_18;
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: viewDir_18 = -(tmpvar_13);
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: mediump float tmpvar_19;
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: tmpvar_19 = (1.0 - gbuffer1_4.w);
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: mediump float x_20;
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: x_20 = (1.0 - max (0.0, dot (tmpvar_12, viewDir_18)));
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: mediump vec4 tmpvar_21;
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: tmpvar_21.w = 1.0;
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: tmpvar_21.xyz = (((1.0 -
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: ((tmpvar_19 * tmpvar_19) * (tmpvar_19 * 0.28))
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: ) * (
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: ((unity_SpecCube0_HDR.x * tmpvar_17.w) * tmpvar_17.xyz)
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: * gbuffer0_5.w)) * mix (gbuffer1_4.xyz, vec3(clamp (
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: (gbuffer1_4.w + (1.0 - (1.0 - max (
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: max (gbuffer1_4.x, gbuffer1_4.y)
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: , gbuffer1_4.z))))
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: , 0.0, 1.0)), vec3((
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: (x_20 * x_20)
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: *
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: (x_20 * x_20)
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: ))));
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: mediump vec3 p_22;
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: p_22 = tmpvar_8;
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: mediump vec3 aabbMin_23;
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: aabbMin_23 = unity_SpecCube0_BoxMin.xyz;
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: mediump vec3 aabbMax_24;
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: aabbMax_24 = unity_SpecCube0_BoxMax.xyz;
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: mediump vec3 tmpvar_25;
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: tmpvar_25 = max (max ((p_22 - aabbMax_24), (aabbMin_23 - p_22)), vec3(0.0, 0.0, 0.0));
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: mediump float tmpvar_26;
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: tmpvar_26 = sqrt(dot (tmpvar_25, tmpvar_25));
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: mediump float tmpvar_27;
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: highp float tmpvar_28;
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: tmpvar_28 = clamp ((1.0 - (tmpvar_26 / unity_SpecCube1_ProbePosition.w)), 0.0, 1.0);
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: tmpvar_27 = tmpvar_28;
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: mediump vec4 tmpvar_29;
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: tmpvar_29.xyz = tmpvar_21.xyz;
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: tmpvar_29.w = tmpvar_27;
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: gl_FragData[0] = tmpvar_29;
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: }
    07-27 10:26:11.837 3663-3690/com.A1.A131 D/Unity: fragment evaluation shader
    07-27 10:26:12.086 3663-3690/com.A1.A131 D/Unity: #version 100
    07-27 10:26:12.086 3663-3690/com.A1.A131 D/Unity: #extension GL_EXT_shader_texture_lod : enable
    07-27 10:26:12.086 3663-3690/com.A1.A131 D/Unity: precision mediump float;
    07-27 10:26:12.086 3663-3690/com.A1.A131 D/Unity: lowp vec4 impl_low_textureCubeLodEXT(lowp samplerCube sampler, highp vec3 coord, mediump float lod)
    07-27 10:26:12.086 3663-3690/com.A1.A131 D/Unity: {
    07-27 10:26:12.086 3663-3690/com.A1.A131 D/Unity: #if defined(GL_EXT_shader_texture_lod)
    07-27 10:26:12.086 3663-3690/com.A1.A131 D/Unity: return textureCubeLodEXT(sampler, coord, lod);
    07-27 10:26:12.086 3663-3690/com.A1.A131 D/Unity: #else
    07-27 10:26:12.086 3663-3690/com.A1.A131 D/Unity: return textureCube(sampler, coord, lod);
    07-27 10:26:12.086 3663-3690/com.A1.A131 D/Unity: #endif
    07-27 10:26:12.086 3663-3690/com.A1.A131 D/Unity: }
    07-27 10:26:12.086 3663-3690/com.A1.A131 D/Unity: uniform lowp samplerCube _MainTex;
    07-27 10:26:12.086 3663-3690/com.A1.A131 D/Unity: uniform mediump float _Level;
    07-27 10:26:12.086 3663-3690/com.A1.A131 D/Unity: varying mediump vec4 xlv_TEXCOORD0;
    07-27 10:26:12.086 3663-3690/com.A1.A131 D/Unity: void main ()
    07-27 10:26:12.086 3663-3690/com.A1.A131 D/Unity: {
    07-27 10:26:12.086 3663-3690/com.A1.A131 D/Unity: mediump vec4 tmpvar_1;
    07-27 10:26:12.086 3663-3690/com.A1.A131 D/Unity: lowp vec4 tmpvar_2;
    07-27 10:26:12.086 3663-3690/com.A1.A131 D/Unity: tmpvar_2 = impl_low_textureCubeLodEXT (_MainTex, xlv_TEXCOORD0.xyz, _Level);
    07-27 10:26:12.086 3663-3690/com.A1.A131 D/Unity: tmpvar_1 = tmpvar_2;
    07-27 10:26:12.086 3663-3690/com.A1.A131 D/Unity: gl_FragData[0] = tmpvar_1;
    07-27 10:26:12.086 3663-3690/com.A1.A131 D/Unity: }
    07-27 10:26:12.086 3663-3690/com.A1.A131 D/Unity: fragment evaluation shader
    07-27 10:26:12.094 3663-3690/com.A1.A131 D/Unity: #version 100
    07-27 10:26:12.094 3663-3690/com.A1.A131 D/Unity: #extension GL_EXT_shader_texture_lod : enable
    07-27 10:26:12.094 3663-3690/com.A1.A131 D/Unity: precision mediump float;
    07-27 10:26:12.094 3663-3690/com.A1.A131 D/Unity: lowp vec4 impl_low_textureCubeLodEXT(lowp samplerCube sampler, highp vec3 coord, mediump float lod)
    07-27 10:26:12.094 3663-3690/com.A1.A131 D/Unity: {
    07-27 10:26:12.095 3663-3690/com.A1.A131 D/Unity: #if defined(GL_EXT_shader_texture_lod)
    07-27 10:26:12.095 3663-3690/com.A1.A131 D/Unity: return textureCubeLodEXT(sampler, coord, lod);
    07-27 10:26:12.095 3663-3690/com.A1.A131 D/Unity: #else
    07-27 10:26:12.095 3663-3690/com.A1.A131 D/Unity: return textureCube(sampler, coord, lod);
    07-27 10:26:12.095 3663-3690/com.A1.A131 D/Unity: #endif
    07-27 10:26:12.095 3663-3690/com.A1.A131 D/Unity: }
    07-27 10:26:12.095 3663-3690/com.A1.A131 D/Unity: uniform highp float _Level;
    07-27 10:26:12.095 3663-3690/com.A1.A131 D/Unity: uniform lowp samplerCube _MainTex;
    07-27 10:26:12.095 3663-3690/com.A1.A131 D/Unity: varying highp vec4 xlv_TEXCOORD0;
    07-27 10:26:12.095 3663-3690/com.A1.A131 D/Unity: void main ()
    07-27 10:26:12.095 3663-3690/com.A1.A131 D/Unity: {
    07-27 10:26:12.095 3663-3690/com.A1.A131 D/Unity: highp vec4 tmpvar_1;
    07-27 10:26:12.095 3663-3690/com.A1.A131 D/Unity: lowp vec4 tmpvar_2;
    07-27 10:26:12.095 3663-3690/com.A1.A131 D/Unity: tmpvar_2 = impl_low_textureCubeLodEXT (_MainTex, xlv_TEXCOORD0.xyz, _Level);
    07-27 10:26:12.095 3663-3690/com.A1.A131 D/Unity: tmpvar_1 = tmpvar_2;
    07-27 10:26:12.095 3663-3690/com.A1.A131 D/Unity: gl_FragData[0] = tmpvar_1;
    07-27 10:26:12.095 3663-3690/com.A1.A131 D/Unity: }
    07-27 10:26:12.095 3663-3690/com.A1.A131 D/Unity: fragment evaluation shader
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: #version 100
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: #extension GL_EXT_shader_texture_lod : enable
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: precision mediump float;
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: lowp vec4 impl_low_textureCubeLodEXT(lowp samplerCube sampler, highp vec3 coord, mediump float lod)
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: {
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: #if defined(GL_EXT_shader_texture_lod)
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: return textureCubeLodEXT(sampler, coord, lod);
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: #else
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: return textureCube(sampler, coord, lod);
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: #endif
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: }
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: uniform mediump vec4 _TexA_HDR;
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: uniform mediump vec4 _TexB_HDR;
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: uniform lowp samplerCube _TexA;
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: uniform lowp samplerCube _TexB;
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: uniform highp float _Level;
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: uniform highp float _value;
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: varying highp vec3 xlv_TEXCOORD0;
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: void main ()
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: {
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: mediump vec3 res_1;
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: mediump vec4 tmpvar_2;
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: lowp vec4 tmpvar_3;
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: tmpvar_3 = impl_low_textureCubeLodEXT (_TexA, xlv_TEXCOORD0, _Level);
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: tmpvar_2 = tmpvar_3;
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: mediump vec3 tmpvar_4;
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: tmpvar_4 = ((_TexA_HDR.x * tmpvar_2.w) * tmpvar_2.xyz);
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: mediump vec4 tmpvar_5;
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: lowp vec4 tmpvar_6;
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: tmpvar_6 = impl_low_textureCubeLodEXT (_TexB, xlv_TEXCOORD0, _Level);
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: tmpvar_5 = tmpvar_6;
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: mediump vec3 tmpvar_7;
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: tmpvar_7 = ((_TexB_HDR.x * tmpvar_5.w) * tmpvar_5.xyz);
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: highp vec3 tmpvar_8;
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: tmpvar_8 = mix (tmpvar_4, tmpvar_7, vec3(_value));
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: res_1 = tmpvar_8;
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: mediump vec4 tmpvar_9;
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: tmpvar_9.w = 1.0;
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: tmpvar_9.xyz = res_1;
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: gl_FragData[0] = tmpvar_9;
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: }
    07-27 10:26:12.103 3663-3690/com.A1.A131 D/Unity: fragment evaluation shader
    07-27 10:26:12.134 3663-3690/com.A1.A131 E/Unity: Unable to find OVRPlugin
    07-27 10:26:12.134 3663-3690/com.A1.A131 A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0xbe41b850 in tid 3690 (UnityMain)
     
  2. ZimM

    ZimM

    Joined:
    Dec 24, 2012
    Posts:
    963
    Please use the Spoiler tag to hide big blocks of text. Thanks.
    Which Android version do you use on the emulator? Does it works with the latest stable Unity version, Unity 5.3.6? Unity 5.4.0 is still in beta and not guaranteed to work.
     
    Last edited: Jul 27, 2016
  3. ZimM

    ZimM

    Joined:
    Dec 24, 2012
    Posts:
    963
    @Andre555544445555
    Ok, I think I know what your issue is. Go to Player Settings → Android → Other Settings and disable Virtual Reality Supported. After that, re-create the project again.
     
  4. Andre555544445555

    Andre555544445555

    Joined:
    Jul 27, 2016
    Posts:
    4
    I am install unity 5.3.6 and all worked!!
    Thank you!
     
  5. Andre555544445555

    Andre555544445555

    Joined:
    Jul 27, 2016
    Posts:
    4
    5.4.6 dont worked
     
  6. ZimM

    ZimM

    Joined:
    Dec 24, 2012
    Posts:
    963
    I'm sorry, 5.4.6?.. There is no such Unity version, did you mean 5.3.6? Did it worked in the end with some version?
     
    Last edited: Jul 29, 2016
  7. Brutusomega

    Brutusomega

    Joined:
    Jul 30, 2013
    Posts:
    56
    I am trying to get video playback to work with the uLive wallpaper, so far i tried Easy Movie Texture asset and AVPro Video but video playback doesnt work, is uLive wallpaper incompatibile with those assets or there is something wrong on my end?
     
  8. ZimM

    ZimM

    Joined:
    Dec 24, 2012
    Posts:
    963
    Just saying "it doesn't works" isn't going to get you any answers. How exactly is it not working? Do you get any errors?
    I've personally tested uLiveWallpaper with AVPro Video and it worked fine.
     
  9. Brutusomega

    Brutusomega

    Joined:
    Jul 30, 2013
    Posts:
    56
    Good to know it does work with AVPro Video, as for my case, i didnt get any errors, i could see the on screen buttons from both plugins but video playback just didnt start.(in editor video started just fine)
    I am going to return with more details after i do more testing tommorow.
     
  10. ZimM

    ZimM

    Joined:
    Dec 24, 2012
    Posts:
    963
    Have you checked the logcat log? Seeing the on screen buttons doesn't means anything by itself. I guess you might be missing the native AVPro Video library.
     
  11. ZimM

    ZimM

    Joined:
    Dec 24, 2012
    Posts:
    963
    uLiveWallpaper 1.3.1 is now live on Asset Store!

    Change log:

    New features
    • Added WallpaperOffsetData.HomeScreenCount and WallpaperOffsetData.CurrentHomeScreen properties.
    Improvements and fixes
    • Unity 5.4 compatibility.
    • Disable Virtual Reality support for the first time project is built to avoid unnecessary OVRPlugin import.
     
    Breathtaker likes this.
  12. Brutusomega

    Brutusomega

    Joined:
    Jul 30, 2013
    Posts:
    56
    08-01 12:14:29.869 23840-23917/com.BrutusGames.wall D/dalvikvm: Trying to load lib /data/app-lib/com.BrutusGames.wall-1/libAVProLocal.so 0x41c68c60
    08-01 12:14:29.879 23840-23917/com.BrutusGames.wall D/dalvikvm: Added shared lib /data/app-lib/com.BrutusGames.wall-1/libAVProLocal.so 0x41c68c60
    08-01 12:14:29.979 23840-23840/com.BrutusGames.wall D/UnityLWP: preview : UnityWallpaperEngine.onVisibilityChanged: true
    08-01 12:14:29.979 23840-23840/com.BrutusGames.wall W/Unity: Not running Unity from an Activity; ignored...
    08-01 12:14:29.989 23840-23840/com.BrutusGames.wall D/UnityLWP: UnityPlayerWrapper: Resuming
    08-01 12:14:30.059 23840-23917/com.BrutusGames.wall I/Unity: Exception: JNI: Init'd AndroidJavaObject with null ptr!
    at UnityEngine.AndroidJavaObject..ctor (IntPtr jobject) [0x00000] in <filename unknown>:0
    at UnityEngine.AndroidJavaObject.AndroidJavaObjectDeleteLocalRef (IntPtr jobject) [0x00000] in <filename unknown>:0
    at UnityEngine.AndroidJavaObject._GetStatic[AndroidJavaObject] (System.String fieldName) [0x00000] in <filename unknown>:0
    at UnityEngine.AndroidJavaObject.GetStatic[AndroidJavaObject] (System.String fieldName) [0x00000] in <filename unknown>:0
    at RenderHeads.Media.AVProVideo.AndroidMediaPlayer.InitialisePlatform () [0x00000] in <filename unknown>:0
    at RenderHeads.Media.AVProVideo.MediaPlayer.CreatePlatformMediaPlayer () [0x00000] in <filename unknown>:0
    at RenderHeads.Media.AVProVideo.MediaPlayer.Initialise () [0x00000] in <filename unknown>:0
    at RenderHeads.Media.AVProVideo.MediaPlayer.Start () [0x00000] in <filename unknown>:0

    (Filename: Line: -1)
    08-01 12:14:30.059 23840-23917/com.BrutusGames.wall I/Unity: NullReferenceException: Object reference not set to an instance of an object
    at RenderHeads.Media.AVProVideo.Demos.VCR.Start () [0x00000] in <filename unknown>:0

    (Filename: Line: -1)

    Any ideas on why im getting filename unknown error?
     
    Last edited: Aug 3, 2016
  13. Breathtaker

    Breathtaker

    Joined:
    May 21, 2015
    Posts:
    22
    HI! I have same error like Andre555544445555. :(

    08-04 23:50:08.106 3374-3374/com.N8789N.Wallpaper E/UnityLWP: Unable to disable conflicting built-in Unity player API 23 permission request dialog. This may result in wallpaper not starting when some permissions are not granted. Please report this!
    08-04 23:50:18.380 3374-3374/com.N8789N.Wallpaper E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.N8789N.Wallpaper, PID: 3374
    java.lang.RuntimeException: Error receiving broadcast Intent { act=android.intent.action.SCREEN_OFF flg=0x50000010 (has extras) } in com.lostpolygon.unity.livewallpaper.UnityWallpaperService$1@abd848b
    at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:934)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:168)
    at android.app.ActivityThread.main(ActivityThread.java:5885)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)
    Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'com.lostpolygon.unity.androidintegration.g com.lostpolygon.unity.androidintegration.UnityPlayerInstanceManager.getUnityPlayerPauseResumeManager()' on a null object reference
    at com.lostpolygon.unity.livewallpaper.UnityWallpaperService.b(Unknown Source)
    at com.lostpolygon.unity.livewallpaper.UnityWallpaperService$1.onReceive(Unknown Source)
    at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:915)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:168)
    at android.app.ActivityThread.main(ActivityThread.java:5885)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)
    08-04 23:50:18.906 3867-3867/com.N8789N.Wallpaper E/UnityLWP: Unable to disable conflicting built-in Unity player API 23 permission request dialog. This may result in wallpaper not starting when some permissions are not granted. Please report this!
    08-04 23:52:22.069 5871-5871/com.N8789N.Wallpaper E/UnityLWP: Unable to disable conflicting built-in Unity player API 23 permission request dialog. This may result in wallpaper not starting when some permissions are not granted. Please report this!

    08-04 23:50:03.739 3374-3374/com.N8789N.Wallpaper I/art: Late-enabling -Xcheck:jni
    08-04 23:50:03.740 3374-3374/com.N8789N.Wallpaper I/art: VMHOOK: rlim_cur : 0 pid:3374
    08-04 23:50:04.031 3374-3374/com.N8789N.Wallpaper I/art: override thread count:-j2
    08-04 23:50:04.163 3374-3374/com.N8789N.Wallpaper I/art: override thread count:-j2
    08-04 23:50:04.297 3374-3374/com.N8789N.Wallpaper I/art: override thread count:-j2
    08-04 23:50:04.797 3374-3374/com.N8789N.Wallpaper I/art: override thread count:-j2
    08-04 23:50:04.923 3374-3374/com.N8789N.Wallpaper I/art: override thread count:-j2
    08-04 23:50:05.496 3374-3374/com.N8789N.Wallpaper I/art: override thread count:-j2
    08-04 23:50:05.600 3374-3374/com.N8789N.Wallpaper I/art: override thread count:-j2
    08-04 23:50:05.746 3374-3374/com.N8789N.Wallpaper I/art: override thread count:-j2
    08-04 23:50:05.865 3374-3374/com.N8789N.Wallpaper I/art: override thread count:-j2
    08-04 23:50:05.978 3374-3374/com.N8789N.Wallpaper I/art: override thread count:-j2
    08-04 23:50:06.495 3374-3374/com.N8789N.Wallpaper D/UnityLWP: Starting live wallpaper preview screen for com.N8789N.Wallpaper.LiveWallpaperService
    08-04 23:50:07.544 3374-3374/com.N8789N.Wallpaper D/UnityLWP: Starting ULIVEWALLPAPER v1.3.1.0 release (Unity v5.4.0), built at 30-07-2016 15:52:09
    08-04 23:50:07.847 3374-3374/com.N8789N.Wallpaper D/UnityLWP: UnityPlayerWrapper == null, trying to create it
    08-04 23:50:07.872 3374-3374/com.N8789N.Wallpaper D/UnityLWP: preview : UnityWallpaperEngine.onCreate
    08-04 23:50:07.895 3374-3374/com.N8789N.Wallpaper D/UnityLWP: preview : UnityWallpaperEngine.onSurfaceChanged
    08-04 23:50:07.895 3374-3374/com.N8789N.Wallpaper D/UnityLWP: preview : UnityWallpaperEngine.onVisibilityChanged: true
    08-04 23:50:07.895 3374-3374/com.N8789N.Wallpaper D/UnityLWP: preview : UnityWallpaperEngine.onVisibilityChanged: false
    08-04 23:50:07.897 3374-3374/com.N8789N.Wallpaper D/UnityLWP: preview : UnityWallpaperEngine.onVisibilityChanged: true
    08-04 23:50:08.106 3374-3374/com.N8789N.Wallpaper E/UnityLWP: Unable to disable conflicting built-in Unity player API 23 permission request dialog. This may result in wallpaper not starting when some permissions are not granted. Please report this!
    08-04 23:50:08.106 3374-3374/com.N8789N.Wallpaper W/System.err: java.lang.Exception: permissionRequestDialogInterface == null
    08-04 23:50:08.107 3374-3374/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.androidintegration.h.a(Unknown Source)
    08-04 23:50:08.107 3374-3374/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.androidintegration.h.<init>(Unknown Source)
    08-04 23:50:08.107 3374-3374/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.androidintegration.UnityPlayerInstanceManager.createUnityPlayerDirectly(Unknown Source)
    08-04 23:50:08.107 3374-3374/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.androidintegration.UnityPlayerInstanceManager$1.run(Unknown Source)
    08-04 23:50:08.107 3374-3374/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.androidintegration.d.a(Unknown Source)
    08-04 23:50:08.107 3374-3374/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.androidintegration.UnityPlayerInstanceManager.createUnityPlayerFromActivity(Unknown Source)
    08-04 23:50:08.107 3374-3374/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.androidintegration.UnityPlayerInstantiatorActivity.onCreate(Unknown Source)
    08-04 23:50:08.107 3374-3374/com.N8789N.Wallpaper W/System.err: at android.app.Activity.performCreate(Activity.java:6262)
    08-04 23:50:08.107 3374-3374/com.N8789N.Wallpaper W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1125)
    08-04 23:50:08.107 3374-3374/com.N8789N.Wallpaper W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2462)
    08-04 23:50:08.107 3374-3374/com.N8789N.Wallpaper W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2569)
    08-04 23:50:08.107 3374-3374/com.N8789N.Wallpaper W/System.err: at android.app.ActivityThread.access$900(ActivityThread.java:150)
    08-04 23:50:08.107 3374-3374/com.N8789N.Wallpaper W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1399)
    08-04 23:50:08.108 3374-3374/com.N8789N.Wallpaper W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
    08-04 23:50:08.108 3374-3374/com.N8789N.Wallpaper W/System.err: at android.os.Looper.loop(Looper.java:168)
    08-04 23:50:08.108 3374-3374/com.N8789N.Wallpaper W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5885)
    08-04 23:50:08.108 3374-3374/com.N8789N.Wallpaper W/System.err: at java.lang.reflect.Method.invoke(Native Method)
    08-04 23:50:08.108 3374-3374/com.N8789N.Wallpaper W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)
    08-04 23:50:08.108 3374-3374/com.N8789N.Wallpaper W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)
    08-04 23:50:08.110 3374-3374/com.N8789N.Wallpaper W/System.err: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/unity3d/player/UnityPlayer;
    08-04 23:50:08.110 3374-3374/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.androidintegration.h.<init>(Unknown Source)
    08-04 23:50:08.111 3374-3374/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.androidintegration.UnityPlayerInstanceManager.createUnityPlayerDirectly(Unknown Source)
    08-04 23:50:08.111 3374-3374/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.androidintegration.UnityPlayerInstanceManager$1.run(Unknown Source)
    08-04 23:50:08.111 3374-3374/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.androidintegration.d.a(Unknown Source)
    08-04 23:50:08.111 3374-3374/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.androidintegration.UnityPlayerInstanceManager.createUnityPlayerFromActivity(Unknown Source)
    08-04 23:50:08.111 3374-3374/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.androidintegration.UnityPlayerInstantiatorActivity.onCreate(Unknown Source)
    08-04 23:50:08.111 3374-3374/com.N8789N.Wallpaper W/System.err: at android.app.Activity.performCreate(Activity.java:6262)
    08-04 23:50:08.111 3374-3374/com.N8789N.Wallpaper W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1125)
    08-04 23:50:08.111 3374-3374/com.N8789N.Wallpaper W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2462)
    08-04 23:50:08.111 3374-3374/com.N8789N.Wallpaper W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2569)
    08-04 23:50:08.111 3374-3374/com.N8789N.Wallpaper W/System.err: at android.app.ActivityThread.access$900(ActivityThread.java:150)
    08-04 23:50:08.111 3374-3374/com.N8789N.Wallpaper W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1399)
    08-04 23:50:08.111 3374-3374/com.N8789N.Wallpaper W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
    08-04 23:50:08.111 3374-3374/com.N8789N.Wallpaper W/System.err: at android.os.Looper.loop(Looper.java:168)
    08-04 23:50:08.111 3374-3374/com.N8789N.Wallpaper W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5885)
    08-04 23:50:08.111 3374-3374/com.N8789N.Wallpaper W/System.err: at java.lang.reflect.Method.invoke(Native Method)
    08-04 23:50:08.111 3374-3374/com.N8789N.Wallpaper W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)
    08-04 23:50:08.112 3374-3374/com.N8789N.Wallpaper W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)
    08-04 23:50:08.112 3374-3374/com.N8789N.Wallpaper W/System.err: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.unity3d.player.UnityPlayer" on path: DexPathList[[dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_9-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_8-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_7-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_6-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_5-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_4-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_3-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_0-classes.dex"],nativeLibraryDirectories=[/data/app/com.N8789N.Wallpaper-1/lib/arm, /data/app/com.N8789N.Wallpaper-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib, system/vendor/lib, system/vendor/lib/egl, system/lib/hw]]
    08-04 23:50:08.119 3374-3374/com.N8789N.Wallpaper W/System.err: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
    08-04 23:50:08.119 3374-3374/com.N8789N.Wallpaper W/System.err: at com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader.findClass(IncrementalClassLoader.java:90)
    08-04 23:50:08.119 3374-3374/com.N8789N.Wallpaper W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
    08-04 23:50:08.119 3374-3374/com.N8789N.Wallpaper W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
    08-04 23:50:08.119 3374-3374/com.N8789N.Wallpaper W/System.err: ... 18 more
    08-04 23:50:08.119 3374-3374/com.N8789N.Wallpaper W/System.err: Suppressed: java.lang.ClassNotFoundException: Didn't find class "com.unity3d.player.UnityPlayer" on path: DexPathList[[zip file "/data/app/com.N8789N.Wallpaper-1/base.apk"],nativeLibraryDirectories=[/data/app/com.N8789N.Wallpaper-1/lib/arm, /data/app/com.N8789N.Wallpaper-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib, system/vendor/lib, system/vendor/lib/egl, system/lib/hw]]
    08-04 23:50:08.119 3374-3374/com.N8789N.Wallpaper W/System.err: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
    08-04 23:50:08.120 3374-3374/com.N8789N.Wallpaper W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
    08-04 23:50:08.120 3374-3374/com.N8789N.Wallpaper W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
    08-04 23:50:08.120 3374-3374/com.N8789N.Wallpaper W/System.err: ... 19 more
    08-04 23:50:08.120 3374-3374/com.N8789N.Wallpaper W/System.err: Suppressed: java.lang.ClassNotFoundException: Didn't find class "com.unity3d.player.UnityPlayer" on path: DexPathList[[dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_9-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_8-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_7-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_6-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_5-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_4-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_3-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_0-classes.dex"],nativeLibraryDirectories=[/data/app/com.N8789N.Wallpaper-1/lib/arm, /data/app/com.N8789N.Wallpaper-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib, system/vendor/lib, system/vendor/lib/egl, system/lib/hw]]
    08-04 23:50:08.120 3374-3374/com.N8789N.Wallpaper W/System.err: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
    08-04 23:50:08.120 3374-3374/com.N8789N.Wallpaper W/System.err: at com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader.findClass(IncrementalClassLoader.java:90)
    08-04 23:50:08.120 3374-3374/com.N8789N.Wallpaper W/System.err: at com.android.tools.fd.runtime.IncrementalClassLoader.findClass(IncrementalClassLoader.java:62)
    08-04 23:50:08.121 3374-3374/com.N8789N.Wallpaper W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
    08-04 23:50:08.121 3374-3374/com.N8789N.Wallpaper W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
    08-04 23:50:08.121 3374-3374/com.N8789N.Wallpaper W/System.err: ... 20 more
    08-04 23:50:08.121 3374-3374/com.N8789N.Wallpaper W/System.err: Suppressed: java.lang.ClassNotFoundException: com.unity3d.player.UnityPlayer
    08-04 23:50:08.121 3374-3374/com.N8789N.Wallpaper W/System.err: at java.lang.Class.classForName(Native Method)
    08-04 23:50:08.121 3374-3374/com.N8789N.Wallpaper W/System.err: at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
    08-04 23:50:08.121 3374-3374/com.N8789N.Wallpaper W/System.err: at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
    08-04 23:50:08.121 3374-3374/com.N8789N.Wallpaper W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
    08-04 23:50:08.121 3374-3374/com.N8789N.Wallpaper W/System.err: ... 21 more
    08-04 23:50:08.121 3374-3374/com.N8789N.Wallpaper W/System.err: Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
    08-04 23:50:08.182 3374-3553/com.N8789N.Wallpaper I/Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: EGL 1.4 QUALCOMM build: Nondeterministic_AU_msm8974_LA.BF.1.1.3__release_AU (I3fa967cfef)
    OpenGL ES Shader Compiler Version: E031.28.00.02
    Build Date: 09/29/15 Tue
    Local Branch: mybranch14683032
    Remote Branch: quic/master
    Local Patches: NONE
    Reconstruct Branch: NOTHING
    08-04 23:50:17.628 3374-3374/com.N8789N.Wallpaper D/UnityLWP: preview : UnityWallpaperEngine.onVisibilityChanged: false
    08-04 23:50:18.379 3374-3374/com.N8789N.Wallpaper W/System.err: java.lang.RuntimeException: Error receiving broadcast Intent { act=android.intent.action.SCREEN_OFF flg=0x50000010 (has extras) } in com.lostpolygon.unity.livewallpaper.UnityWallpaperService$1@abd848b
    08-04 23:50:18.379 3374-3374/com.N8789N.Wallpaper W/System.err: at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:934)
    08-04 23:50:18.379 3374-3374/com.N8789N.Wallpaper W/System.err: at android.os.Handler.handleCallback(Handler.java:739)
    08-04 23:50:18.379 3374-3374/com.N8789N.Wallpaper W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95)
    08-04 23:50:18.379 3374-3374/com.N8789N.Wallpaper W/System.err: at android.os.Looper.loop(Looper.java:168)
    08-04 23:50:18.379 3374-3374/com.N8789N.Wallpaper W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5885)
    08-04 23:50:18.379 3374-3374/com.N8789N.Wallpaper W/System.err: at java.lang.reflect.Method.invoke(Native Method)
    08-04 23:50:18.379 3374-3374/com.N8789N.Wallpaper W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)
    08-04 23:50:18.379 3374-3374/com.N8789N.Wallpaper W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)
    08-04 23:50:18.379 3374-3374/com.N8789N.Wallpaper W/System.err: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'com.lostpolygon.unity.androidintegration.g com.lostpolygon.unity.androidintegration.UnityPlayerInstanceManager.getUnityPlayerPauseResumeManager()' on a null object reference
    08-04 23:50:18.379 3374-3374/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.livewallpaper.UnityWallpaperService.b(Unknown Source)
    08-04 23:50:18.379 3374-3374/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.livewallpaper.UnityWallpaperService$1.onReceive(Unknown Source)
    08-04 23:50:18.379 3374-3374/com.N8789N.Wallpaper W/System.err: at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:915)
    08-04 23:50:18.379 3374-3374/com.N8789N.Wallpaper W/System.err: ... 7 more
    08-04 23:50:18.380 3374-3374/com.N8789N.Wallpaper E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.N8789N.Wallpaper, PID: 3374
    java.lang.RuntimeException: Error receiving broadcast Intent { act=android.intent.action.SCREEN_OFF flg=0x50000010 (has extras) } in com.lostpolygon.unity.livewallpaper.UnityWallpaperService$1@abd848b
    at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:934)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:168)
    at android.app.ActivityThread.main(ActivityThread.java:5885)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)
    Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'com.lostpolygon.unity.androidintegration.g com.lostpolygon.unity.androidintegration.UnityPlayerInstanceManager.getUnityPlayerPauseResumeManager()' on a null object reference
    at com.lostpolygon.unity.livewallpaper.UnityWallpaperService.b(Unknown Source)
    at com.lostpolygon.unity.livewallpaper.UnityWallpaperService$1.onReceive(Unknown Source)
    at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:915)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:168)
    at android.app.ActivityThread.main(ActivityThread.java:5885)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)
    08-04 23:50:18.906 3867-3867/com.N8789N.Wallpaper E/UnityLWP: Unable to disable conflicting built-in Unity player API 23 permission request dialog. This may result in wallpaper not starting when some permissions are not granted. Please report this!
    08-04 23:50:18.906 3867-3867/com.N8789N.Wallpaper W/System.err: java.lang.Exception: permissionRequestDialogInterface == null
    08-04 23:50:18.906 3867-3867/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.androidintegration.h.a(Unknown Source)
    08-04 23:50:18.906 3867-3867/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.androidintegration.h.<init>(Unknown Source)
    08-04 23:50:18.906 3867-3867/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.androidintegration.UnityPlayerInstanceManager.createUnityPlayerDirectly(Unknown Source)
    08-04 23:50:18.906 3867-3867/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.androidintegration.UnityPlayerInstanceManager$1.run(Unknown Source)
    08-04 23:50:18.907 3867-3867/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.androidintegration.d.a(Unknown Source)
    08-04 23:50:18.907 3867-3867/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.androidintegration.UnityPlayerInstanceManager.createUnityPlayerFromActivity(Unknown Source)
    08-04 23:50:18.907 3867-3867/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.androidintegration.UnityPlayerInstantiatorActivity.onCreate(Unknown Source)
    08-04 23:50:18.907 3867-3867/com.N8789N.Wallpaper W/System.err: at android.app.Activity.performCreate(Activity.java:6262)
    08-04 23:50:18.907 3867-3867/com.N8789N.Wallpaper W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1125)
    08-04 23:50:18.907 3867-3867/com.N8789N.Wallpaper W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2462)
    08-04 23:50:18.907 3867-3867/com.N8789N.Wallpaper W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2569)
    08-04 23:50:18.907 3867-3867/com.N8789N.Wallpaper W/System.err: at android.app.ActivityThread.access$900(ActivityThread.java:150)
    08-04 23:50:18.907 3867-3867/com.N8789N.Wallpaper W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1399)
    08-04 23:50:18.907 3867-3867/com.N8789N.Wallpaper W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
    08-04 23:50:18.907 3867-3867/com.N8789N.Wallpaper W/System.err: at android.os.Looper.loop(Looper.java:168)
    08-04 23:50:18.907 3867-3867/com.N8789N.Wallpaper W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5885)
    08-04 23:50:18.907 3867-3867/com.N8789N.Wallpaper W/System.err: at java.lang.reflect.Method.invoke(Native Method)
    08-04 23:50:18.907 3867-3867/com.N8789N.Wallpaper W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)
    08-04 23:50:18.907 3867-3867/com.N8789N.Wallpaper W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)
    08-04 23:50:18.909 3867-3867/com.N8789N.Wallpaper W/System.err: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/unity3d/player/UnityPlayer;
    08-04 23:50:18.909 3867-3867/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.androidintegration.h.<init>(Unknown Source)
    08-04 23:50:18.910 3867-3867/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.androidintegration.UnityPlayerInstanceManager.createUnityPlayerDirectly(Unknown Source)
    08-04 23:50:18.910 3867-3867/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.androidintegration.UnityPlayerInstanceManager$1.run(Unknown Source)
    08-04 23:50:18.910 3867-3867/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.androidintegration.d.a(Unknown Source)
    08-04 23:50:18.910 3867-3867/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.androidintegration.UnityPlayerInstanceManager.createUnityPlayerFromActivity(Unknown Source)
    08-04 23:50:18.910 3867-3867/com.N8789N.Wallpaper W/System.err: at com.lostpolygon.unity.androidintegration.UnityPlayerInstantiatorActivity.onCreate(Unknown Source)
    08-04 23:50:18.910 3867-3867/com.N8789N.Wallpaper W/System.err: at android.app.Activity.performCreate(Activity.java:6262)
    08-04 23:50:18.910 3867-3867/com.N8789N.Wallpaper W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1125)
    08-04 23:50:18.910 3867-3867/com.N8789N.Wallpaper W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2462)
    08-04 23:50:18.910 3867-3867/com.N8789N.Wallpaper W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2569)
    08-04 23:50:18.910 3867-3867/com.N8789N.Wallpaper W/System.err: at android.app.ActivityThread.access$900(ActivityThread.java:150)
    08-04 23:50:18.910 3867-3867/com.N8789N.Wallpaper W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1399)
    08-04 23:50:18.911 3867-3867/com.N8789N.Wallpaper W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
    08-04 23:50:18.911 3867-3867/com.N8789N.Wallpaper W/System.err: at android.os.Looper.loop(Looper.java:168)
    08-04 23:50:18.911 3867-3867/com.N8789N.Wallpaper W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5885)
    08-04 23:50:18.911 3867-3867/com.N8789N.Wallpaper W/System.err: at java.lang.reflect.Method.invoke(Native Method)
    08-04 23:50:18.911 3867-3867/com.N8789N.Wallpaper W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)
    08-04 23:50:18.911 3867-3867/com.N8789N.Wallpaper W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)
    08-04 23:50:18.911 3867-3867/com.N8789N.Wallpaper W/System.err: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.unity3d.player.UnityPlayer" on path: DexPathList[[dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_9-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_8-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_7-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_6-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_5-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_4-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_3-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_0-classes.dex"],nativeLibraryDirectories=[/data/app/com.N8789N.Wallpaper-1/lib/arm, /data/app/com.N8789N.Wallpaper-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib, system/vendor/lib, system/vendor/lib/egl, system/lib/hw]]
    08-04 23:50:18.912 3867-3867/com.N8789N.Wallpaper W/System.err: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
    08-04 23:50:18.912 3867-3867/com.N8789N.Wallpaper W/System.err: at com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader.findClass(IncrementalClassLoader.java:90)
    08-04 23:50:18.912 3867-3867/com.N8789N.Wallpaper W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
    08-04 23:50:18.912 3867-3867/com.N8789N.Wallpaper W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
    08-04 23:50:18.912 3867-3867/com.N8789N.Wallpaper W/System.err: ... 18 more
    08-04 23:50:18.912 3867-3867/com.N8789N.Wallpaper W/System.err: Suppressed: java.lang.ClassNotFoundException: Didn't find class "com.unity3d.player.UnityPlayer" on path: DexPathList[[zip file "/data/app/com.N8789N.Wallpaper-1/base.apk"],nativeLibraryDirectories=[/data/app/com.N8789N.Wallpaper-1/lib/arm, /data/app/com.N8789N.Wallpaper-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib, system/vendor/lib, system/vendor/lib/egl, system/lib/hw]]
    08-04 23:50:18.912 3867-3867/com.N8789N.Wallpaper W/System.err: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
    08-04 23:50:18.912 3867-3867/com.N8789N.Wallpaper W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
    08-04 23:50:18.913 3867-3867/com.N8789N.Wallpaper W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
    08-04 23:50:18.913 3867-3867/com.N8789N.Wallpaper W/System.err: ... 19 more
    08-04 23:50:18.913 3867-3867/com.N8789N.Wallpaper W/System.err: Suppressed: java.lang.ClassNotFoundException: Didn't find class "com.unity3d.player.UnityPlayer" on path: DexPathList[[dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_9-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_8-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_7-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_6-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_5-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_4-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_3-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/com.N8789N.Wallpaper/files/instant-run/dex/slice-slice_0-classes.dex"],nativeLibraryDirectories=[/data/app/com.N8789N.Wallpaper-1/lib/arm, /data/app/com.N8789N.Wallpaper-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib, system/vendor/lib, system/vendor/lib/egl, system/lib/hw]]
    08-04 23:50:18.913 3867-3867/com.N8789N.Wallpaper W/System.err: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
    08-04 23:50:18.913 3867-3867/com.N8789N.Wallpaper W/System.err: at com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader.findClass(IncrementalClassLoader.java:90)
    08-04 23:50:18.913 3867-3867/com.N8789N.Wallpaper W/System.err: at com.android.tools.fd.runtime.IncrementalClassLoader.findClass(IncrementalClassLoader.java:62)
    08-04 23:50:18.913 3867-3867/com.N8789N.Wallpaper W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
    08-04 23:50:18.913 3867-3867/com.N8789N.Wallpaper W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
    08-04 23:50:18.913 3867-3867/com.N8789N.Wallpaper W/System.err: ... 20 more
    08-04 23:50:18.913 3867-3867/com.N8789N.Wallpaper W/System.err: Suppressed: java.lang.ClassNotFoundException: com.unity3d.player.UnityPlayer
    08-04 23:50:18.914 3867-3867/com.N8789N.Wallpaper W/System.err: at java.lang.Class.classForName(Native Method)
    08-04 23:50:18.914 3867-3867/com.N8789N.Wallpaper W/System.err: at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
    08-04 23:50:18.914 3867-3867/com.N8789N.Wallpaper W/System.err: at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
    08-04 23:50:18.914 3867-3867/com.N8789N.Wallpaper W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
    08-04 23:50:18.914 3867-3867/com.N8789N.Wallpaper W/System.err: ... 21 more
    08-04 23:50:18.914 3867-3867/com.N8789N.Wallpaper W/System.err: Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
    08-04 23:50:19.402 3867-3867/com.N8789N.Wallpaper D/UnityLWP: Starting ULIVEWALLPAPER v1.3.1.0 release (Unity v5.4.0), built at 30-07-2016 15:52:09
    08-04 23:50:19.596 3867-3896/com.N8789N.Wallpaper I/Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: EGL 1.4 QUALCOMM build: Nondeterministic_AU_msm8974_LA.BF.1.1.3__release_AU (I3fa967cfef)
    OpenGL ES Shader Compiler Version: E031.28.00.02
    Build Date: 09/29/15 Tue
    Local Branch: mybranch14683032
    Remote Branch: quic/master
    Local Patches: NONE
    Reconstruct Branch: NOTHING
    08-04 23:50:19.659 3867-3867/com.N8789N.Wallpaper D/UnityLWP: UnityPlayerWrapper == null, trying to create it
    08-04 23:50:20.056 3867-3867/com.N8789N.Wallpaper D/UnityLWP: preview : UnityWallpaperEngine.onCreate
    08-04 23:50:20.094 3867-3867/com.N8789N.Wallpaper D/UnityLWP: preview : UnityWallpaperEngine.onSurfaceChanged
    08-04 23:50:20.095 3867-3867/com.N8789N.Wallpaper D/UnityLWP: preview : UnityWallpaperEngine.onVisibilityChanged: true
    08-04 23:50:20.095 3867-3867/com.N8789N.Wallpaper D/UnityLWP: preview : UnityWallpaperEngine.onVisibilityChanged: false
    08-04 23:50:20.097 3867-3867/com.N8789N.Wallpaper D/UnityLWP: preview : UnityWallpaperEngine.onVisibilityChanged: true
     
  14. D_e_l_t_a

    D_e_l_t_a

    Joined:
    Jan 2, 2009
    Posts:
    72
    I'm still getting familiar with Android Studio and building for Android so I'm probably missing something silly here but after following the instructions on building the project it loads ok but on importing as ADT I get these errors on compilation:

    no resource found that matches the given name (at 'theme' with value '@StyLe/uLiveWallpaper.SettingsDefault')
    and
    >com.android.ide.common.process.ProcessException" org.gradle.process.internal.ExecException: Process 'command'/Users/*myusername*/LIBRARY/ANDROID/ANDROID-SDK/BUILD-TOOS/23.0.2/AAPT" FINISHED WITH NON-ZERO EXIT VALUE 1

    Can anyone help me narrow this error down, I'm thinking maybe some SDK-install or Manifest error?
     
    Breathtaker likes this.
  15. Breathtaker

    Breathtaker

    Joined:
    May 21, 2015
    Posts:
    22
    HI! I think this error relatet to Step 4 of Project creation part in manual.

    Step 4
    Click “File → Project Structure...” to open the “Project Structure” window.
    In the “Modules” list (on the left), select the “app” module. Switch to “Dependencies”
    tab. Click the green “+” button at the right side and add Module dependency
    “LP_uLiveWallpaper”.
    Finally, click OK to close the “Project Structure” window.

    Same problem was there: http://forum.unity3d.com/threads/ul...apers-with-unity-5.375255/page-6#post-2721704
     
  16. D_e_l_t_a

    D_e_l_t_a

    Joined:
    Jan 2, 2009
    Posts:
    72
    Thanks Breathtaker. Am I correct in thinking that an error like the one I posted can show up in the Android Studio console but will go away once the other steps (aar. file imported etc) have been taken? I've had some success in doing it this way, I'd like to be clearer on the ADT import process though, and be familiar with any potential errors, harmless or otherwise that may show up.
     
  17. Breathtaker

    Breathtaker

    Joined:
    May 21, 2015
    Posts:
    22
    Yes. You are absolutoly right. I haved same issue. In my case Android studio not add reference to LP_uLiveWallpaper (or just remove it). I don't know why.
     
  18. Goofy420

    Goofy420

    Joined:
    Apr 27, 2013
    Posts:
    248
    CommandInvokationFailure: Unable to merge android manifests. See the Console for more details.
    C:/Program Files/Java/jdk1.7.0_79\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Users/Static/AppData/Local/Android/sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -


    I'm using Unity 5.3.5. The AnroidManifest.xml doesn't exist in that directory, but Androidmanifest-main.xml does.
    I'm no expert, but shouldn't all the Path.PathSeperator be pointing the same way? I'm stumped as to why I'm the only one with this issue.
     
    Last edited: Aug 9, 2016
  19. ZimM

    ZimM

    Joined:
    Dec 24, 2012
    Posts:
    963
    It looks like you didn't imported the AVPro native library. You have to do this manually. I don't currently own AVPro, so I can't guide you with exact steps, unfortunately, but you can PM me, and we'll figure something out.
    As @Breathtaker said, build errors are expected until all steps are done. After all, uLiveWallpaper library is required for build to succeed.
    That error is from Unity, not uLiveWallpaper. I can only assume there is something wrong about your Unity, Java, or Android SDK installation. I've just tested in 5.3.5 and found no issues.
     
  20. Goofy420

    Goofy420

    Joined:
    Apr 27, 2013
    Posts:
    248
    You're right. I had to update my JDK and all works well.
     
  21. Breathtaker

    Breathtaker

    Joined:
    May 21, 2015
    Posts:
    22
    Hello ZimM, can you give me advice where is search error? Maybe i need try to run app in android < 6? Or use anoher target platform? Or it is error from unity 5.4?

    This error message is yours? - Unable to disable conflicting built-in Unity player API 23 permission request dialog. This may result in wallpaper not starting when some permissions are not granted. Please report this!
     
  22. hellaandrew

    hellaandrew

    Joined:
    Mar 31, 2010
    Posts:
    33
    Hi Zim,

    I have updated to the latest version of Unity (5.4.0f3). I'm sorry if this has already been asked but I couldn't find anything on it. I am now receiving this error:

    Error CS0103 The name 'LiveWallpaper' does not exist in the current context

    This is happening on my scripts that I know have been working. The LiveWallpaper object can't be found anymore (I'm using the LiveWallpaper.Preferences.GetString(string, string); method)

    Do you have any suggestions on how this can be fixed? Or would it require an update from you. Thanks Zim
     
  23. Goofy420

    Goofy420

    Joined:
    Apr 27, 2013
    Posts:
    248
    Sounds like your platform got switched from android to pc
     
  24. hellaandrew

    hellaandrew

    Joined:
    Mar 31, 2010
    Posts:
    33
    @Goofy420 Thanks for that info. It would have taken me forever to realize that on my own. I guess now we have to download some Android module? That's new...
     
  25. Mebsoftware

    Mebsoftware

    Joined:
    Dec 21, 2015
    Posts:
    13
    Hi Zimm.When I click on the settings button instead preference.xml want to open unity scene. Is it possible? I want to make a scene the Settings menu.
     
  26. Breathtaker

    Breathtaker

    Joined:
    May 21, 2015
    Posts:
    22
    Hi Zimm. I hope you can help me.
    I found strange issue with music. When i return to live wallpaper (android home screen) music in my music player just stop playing. And when i unlock device music stop playing.

    Unity sound system is disabled. Audiolistener removed from camera.
     
  27. Breathtaker

    Breathtaker

    Joined:
    May 21, 2015
    Posts:
    22
    This is Unity bug. Not fixed even in 5.4.0f3. Version without this but is 5.3.4f1.
     
  28. Breathtaker

    Breathtaker

    Joined:
    May 21, 2015
    Posts:
    22
    In my case error reason was in dependency. After change build tools version dependency to unity library just dissapear.
     
  29. D_e_l_t_a

    D_e_l_t_a

    Joined:
    Jan 2, 2009
    Posts:
    72
    I'm trying something a little unusual with this and appreciate any tips anyone may have. I'm playing around with making a Live Wallpaper that acts as a companion to a main app. So the Wallpaper (Part 1)runs as a normal Live WP, but clicking a certain panel within it will trigger/activate a hidden/unactivated section of code (Part 2), which loads and runs like a normal app. It is not a separate app, however, it's still part of the Wallpaper apk, just some de-activated objects that simulate another scene.
    I'm curious about a couple of things. For efficiency should I activate this Part 2 code as another Scene file, pausing the wallpaper ? Or could I activate some objects and run the whole thing as an app, again pausing/hiding the wallpaper?
    Not sure if I've been clear on thiso_O but a quicker way would be to ask:
    Can I pause the Wallpaper, run the code as an actual app, before quitting that code and returning to just the Wallpaper?
     
  30. Deathfate

    Deathfate

    Joined:
    Sep 10, 2012
    Posts:
    46
    I think I found a "bug" in your plugin, I would like to make a wallpaper and a app with the same code, I see that you have implemented a custom event with “UnityActivityResumed” and “UnityActivityPaused”.

    I want to know if i am currently in the app or wallpaper, the easiest way would be to have a boolean or enum that tells you if you are wallpaper or app like IsPreview (enum values would be, wallpaper, app, preview and settings), but as you don't provide this then I have to use the custom event, the problem comes when UnityActivityResumed doesn't get called when the app starts for the first time, it only gets called in onResume.

    Is there any way to know if I am in the app or the wallpaper? if not, could either do this method or call UnityActivityResumed the first time you run the app?

    Thank you
     
  31. Breathtaker

    Breathtaker

    Joined:
    May 21, 2015
    Posts:
    22
    HI everyone! I'am noob in java and android developing.:)

    I need make event that will give me information about new messages (sms, and another app notifications).
    Where i should start? I need pro version asset?

    Thx everyone!:)
     
  32. gekn1976

    gekn1976

    Joined:
    Jul 31, 2013
    Posts:
    3

    Please don't write an "Activity app" imitation in Unity :) Instead use the wonderful SDK that Google has provided for you. Look at how Wallpaper Settings is implemented and start from there.

    Happy Coding!
     
  33. abotrix

    abotrix

    Joined:
    Oct 21, 2015
    Posts:
    20
    In short, I think you want a separate Unity Activity within your live wallpaper. I had been banging my head on this one for a while but I think I came up with something but I'm sure it not the best way. I coped the original UnityPlayerActivity activity through Unity (Google Android Project - > Build) and changed a few things.
    In the UnityPlayerActivity.java, instead of having the UnityPlayer set in setContentView:
    Code (CSharp):
    1. setContentView(your xml layout);
    Make a separate blank layout with an id or in my case:
    RelativeLayout
    - FrameLayout (id for unityplayer in the background)
    - LinearLayout (for android native buttons)

    After you set the content to your layout add to UnityPlayerActivity after opengles init:
    Code (CSharp):
    1. FrameLayout layout = (FrameLayout) findViewById(R.id.unitylayout);
    2.                 ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams(metrics.widthPixels, metrics.heightPixels); // full screen
    3.                 layout.addView(mUnityPlayer, 0, layoutParams);
    Make sure your activity is in your manifest and add to activity:
    android:launchMode="singleTask"
    android: ParentActivityName="activty name"
    android: Process=":UnityKillsMe"
    android:screenOrientation="fullSensor"
    android:theme="@StyLe/UnityThemeSelector">
    <intent-filter> <action android:name="whatever activity its coming from" /></intent-filter>

    When launching activity with an intent use:
    Code (CSharp):
    1. Intent i = new Intent(getApplicationContext(), nameofyourclass);
    2. i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
    3. startActivity(i);
    This should get you started. It took me weeks to figure this one out.
    On a separate note, does anyone know how to fix the TapToOpenSettings component when it says:
    09-09 08:04:27.432 20670-20728/com.f7pixel.davincilwp I/Unity: AndroidJavaException: java.lang.ClassNotFoundException: SettingsActivity
    java.lang.ClassNotFoundException: SettingsActivity
    at java.lang.Class.classForName(Native Method)
    at java.lang.Class.forName(Class.java:324)
    at java.lang.Class.forName(Class.java:285)
    at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
    at com.unity3d.player.UnityPlayer.a(Unknown Source)
    at com.unity3d.player.UnityPlayer$b$1.handleMessage(Unknown Source)
    at android.os.Handler.dispatchMessage(Handler.java:98)
    at android.os.Looper.loop(Looper.java:158)
    at com.unity3d.player.UnityPlayer$b.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: Didn't find class "SettingsActivity" on path: DexPathList[[dex file "/data/data/com.f7pixel.davincilwp/files/instant-run/dex/slice-unity-classes_a540df406c9e3be0c3663c3df632e0eca5db7054-classes.dex", dex file "/data/data/com.f7pixel.davincilwp/files/instant-run/dex/slice-support-annotations-23.3.0_198bf1f15f12c06e45576795ea0987599171e8a5-classes.dex", dex
    09-09 08:04:27.442 20670-20728/com.f7pixel.davincilwp I/Unity: Attempting to start Activity 'SettingsActivity'

    I have the basic SettingsActivity class and in the component I put "SettingsActivity" but when I tap the screen there is a really big memory leak, everything slows down to a lag and nothing happens. Any thoughts is appreciate.
     
  34. D_e_l_t_a

    D_e_l_t_a

    Joined:
    Jan 2, 2009
    Posts:
    72
    Thanks abotrix, some detailed stuff there, that should get me started.
     
  35. ZimM

    ZimM

    Joined:
    Dec 24, 2012
    Posts:
    963
    yes, just use "Invisible Self-Closing" settings Activity, subscrie to the LiveWallpaper.PreferenceActivityTriggered event in your C#, and show/hide the scene from there. See the included ApiDemo scene for an example.

    Here's the example code to switch the GameObject on\off when LiveWallpaper.PreferenceActivityTriggered is invoked:
    Code (CSharp):
    1.     using System;
    2.     using LostPolygon.uLiveWallpaper;
    3.     using UnityEngine;
    4.  
    5.     public class PreferenceActivityGameObjectTrigger : MonoBehaviour {
    6.         public GameObject TriggeredGameObject;
    7.  
    8.         private void OnEnable() {
    9.             LiveWallpaper.PreferenceActivityTriggered += LiveWallpaperOnPreferenceActivityTriggered;
    10.         }
    11.  
    12.         private void OnDisable() {
    13.             LiveWallpaper.PreferenceActivityTriggered -= LiveWallpaperOnPreferenceActivityTriggered;
    14.         }
    15.  
    16.         private void LiveWallpaperOnPreferenceActivityTriggered() {
    17.             TriggeredGameObject.SetActive(!TriggeredGameObject.activeSelf);
    18.         }
    19.     }
    20.  
    I'm not exactly sure what do you mean. You can have a Unity-based Activity by checking the "Create Unity Activity" checkbox while creating the project. Both the Activity and the wallpaper use the same Unity instance. Pausing/resuming is handled automatically. You can, of course, start the Activity from the Wallpaper.
    Thanks for reporting. The UnityActivityResumed event is actually sent when starting the app, the issue is that this event is dispatched before anything has a change to receive it. I'll fix this in the next version. Meanwhile, if you have the Pro version, you can open the LiveWallpaperUnityMessagesForwarder.cs script and delete these lines:
    Code (CSharp):
    1.         private void OnEnable() {
    2.             if (GenericMessageEntered != null)
    3.                 GenericMessageEntered();
    4.         }
    That should fix the problem.
    Basically, you need to learn Java and Android development first, no way around that. Just forget about Unity for a while and do some pure Android development.
    Receiving SMS is relatively easy:
    http://stackoverflow.com/questions/7089313/android-listen-for-incoming-sms-messages
    Receiving notifications of other apps is much harder due to some security implications, and is a relatively advanced topic. These links might help you:
    https://developer.android.com/refer...notification/NotificationListenerService.html
    http://stackoverflow.com/questions/17926236/notificationlistenerservice-implementation
    You don't need Pro version for that, just extend the classes in your Android Studio project.
    Don't do that. This is horribly wrong and misleading. You absolutely can't just take the standard Unity UnityPlayerActivity and modify it a bit. Thing is, Unity only allows a single instance of Unity player to exist within a single process. Basically, Unity player is a singleton internally. This works fine for a regular Unity app, but in a live wallpaper, you must share the same Unity player instance between the Activity and the Wallpaper, otherwise you'll get random crashes, memory leaks, and other issues.
    Now, must importantly - why are you doing this? I've already solved this problem in a correct way by making a special Unity Activity that correctly handles sharing and managing the Unity Player instance with the Wallpaper service. Just tick the "Create Unity Activity" checkbox while creating the project, and it will all work correctly.

    As for the TapToOpenSettings - are you setting the Activity class name manually? You must either leave it empty, or use the fully qualified class name, like "com.supersoft.superwallpaper.SettingsActivity".
     
  36. abotrix

    abotrix

    Joined:
    Oct 21, 2015
    Posts:
    20
    Yah, you are correct. It's definitely not the right way but it was the only way I found out how to do it because this way it gave me control to put my own layout on top of the UnityPlayer. Its more like a hack, but I got it working. How should it be done? I only been using Unity for a year so I'm still kinda new.

    Thank you for clearing up my understanding of the TapToOpenSettings!
     
    Last edited: Sep 12, 2016
  37. Deathfate

    Deathfate

    Joined:
    Sep 10, 2012
    Posts:
    46
    Is there any way to hide the Settings / Set as wallpaper buttons when you open the SettingsActivity? I want to open my main app when in settings, I can change the scene when the settings are opened but the Settings and Set As wallpaper buttons are over my scene.

    I tried also to StartActivity with an Intent and the my main app is correctly opened and there aren't any buttons over it but when I press back the wallpapera and preview are frozen and It ends up crashing eventually.

    Thank you

    EDIT: I managed to do this by overriding back button for moving task to the back instead of finish
     
    Last edited: Sep 14, 2016
  38. mjohar90

    mjohar90

    Joined:
    Sep 20, 2016
    Posts:
    4
    Does this supports il2cpp build ?
     
  39. pako

    pako

    Joined:
    Nov 21, 2012
    Posts:
    111
    Hi,

    I'm trying to convert an old project that used Uni2LwP to use uLiveWallpaper.

    I followed all instructions in the manual but I get an error in Project creation Step 5:

    "cannot find symbol class LiveWallpaperCompatibleUnityPlayerActivity".

    and the Gradle Console:

    D:\Android Studio Projects Root\UnityPlayerActivity.java:3: error: cannot find symbol
    import com.lostpolygon.unity.livewallpaper.LiveWallpaperCompatibleUnityPlayerActivity;
    ^
    symbol: class LiveWallpaperCompatibleUnityPlayerActivity
    location: package com.lostpolygon.unity.livewallpaper

    D:\Android Studio Projects Root\UnityPlayerActivity.java:5: error: cannot find symbol
    public class UnityPlayerActivity extends LiveWallpaperCompatibleUnityPlayerActivity {
    ^
    symbol: class LiveWallpaperCompatibleUnityPlayerActivity
    2 errors

    I have double checked in Project Structure/Modules/app/Depedencies that lp_uLiveWallpaper is present (screenshot).

    I tried restarting Android Studio, Cleaning and then Rebuilding the project then restarting again, but I just can't get rid of this error.

    I'm using Unity 5.3.6f1, uLiveWallpaper 1.3.1.0 and Android Studio 2.2.

    Please help.
     

    Attached Files:

  40. 1skription

    1skription

    Joined:
    May 28, 2014
    Posts:
    7
  41. pako

    pako

    Joined:
    Nov 21, 2012
    Posts:
    111
    Hi 1skription, and thanks for your reply. I removed all white spaces from the path, recreated the project, but unfortunately, I still get the same errors.

    Additionally, as I get more familiar with Android Studio, I noticed 31 errors in AndroidManifest.xml.
     
  42. ZimM

    ZimM

    Joined:
    Dec 24, 2012
    Posts:
    963
    Yes, there are no issues with IL2CPP builds.
    Looks like something is wrong your environment, project, Android SDK, or Android Studio. It's impossible to with more detail why the "LP_uLiveWallpaper.aar" library is not loaded. If possible, please PM me your Android Studio project, so I can at least examine if the problem is indeed somewhere on your side.
     
  43. pako

    pako

    Joined:
    Nov 21, 2012
    Posts:
    111
    Since my project is very large, I tried creating a live wallpaper with an empty Unity project, and the same errors occur, so at least we know that the problem is not with the project itself. I will PM you the Android Studio project of this empty test project.
     
  44. ZimM

    ZimM

    Joined:
    Dec 24, 2012
    Posts:
    963
    I've figured out the issue. Indeed, the template for the Activity was wrong, not importing the correct thing. Just open the UnityPlayerActivity.java file and change this line
    Code (CSharp):
    1. import com.lostpolygon.unity.livewallpaper.LiveWallpaperCompatibleUnityPlayerActivity;
    to
    Code (CSharp):
    1. import com.lostpolygon.unity.livewallpaper.activities.LiveWallpaperCompatibleUnityPlayerActivity;
    It should build right away after that. I've already fixed the issue in uLiveWallpaper, I'll do an update on Asset Store later today.

    Thanks for pointing out this issue!
     
  45. ZimM

    ZimM

    Joined:
    Dec 24, 2012
    Posts:
    963
    uLiveWallpaper 1.3.2 is now live on Asset Store!

    Change log:

    New features
    • It is now possible to override the onCreateLayout() method of UnityPlayerActivity to create a custom layout.
    • Custom events that are sent from Unity Activity are completely reworked. See the manual for more details.
    • It is now possible to choose what Unity Activity events will trigger pausing and resuming Unity player. See the UnityPlayerActivity.java file.
    Improvements and fixes
    • Fixed not being able to receive the first Unity Activity custom event.
     
  46. mjohar90

    mjohar90

    Joined:
    Sep 20, 2016
    Posts:
    4
    . Hi
    I still have doubts regarding il2cpp. If
    I change the build settings in unity to il2cpp from mono , does the ulivewalpaper generates the intermediate project using il2cpp or does it simply overrides the build settings in unity and always use mono as default ?
     
  47. ZimM

    ZimM

    Joined:
    Dec 24, 2012
    Posts:
    963
    uLiveWallpaper was specifically tested with IL2CPP, and it does work. I assure you, it does not fall back to Mono.
     
    Last edited: Sep 23, 2016
  48. pako

    pako

    Joined:
    Nov 21, 2012
    Posts:
    111
    Hi,

    It works now, thanks!

    Just in case someone else gets the same errors I had in AndroidManifest.xml: The main problem was the first error:

    xmlns:android="http://schemas.android.com/apk/res/android"

    I just had to add it to the "Ignored Schemas and DTDs" in the Settings, close and re-open the manifest and the 30 out of the 31 errors were gone.

    There still is an error that I can't get rid off:

    Cannot resolve symbol "@StyLe/uLiveWallpaper.SettingsDefault"

    However, the project builds and runs OK.
     
  49. ZimM

    ZimM

    Joined:
    Dec 24, 2012
    Posts:
    963
    Hm... I'm not sure if that's a real solution, since I don't have that in "Ignored Schemas and DTDs" on my Android Studio, so maybe it is used for something... Or maybe not, anyway, glad you've found a workaround for your machine!
    As for the error - yes, since updating to Android Studio 2.2, I started getting that one too. It's just a harmless bug of Android Studio, do not worry about it.
     
    pako likes this.
  50. 1skription

    1skription

    Joined:
    May 28, 2014
    Posts:
    7
    Hi everyone,

    I want to hide objects from a list, so i use this script " PreferenceActivityGameObjectTrigger " but it hide also all the objects from another list.

    So, what i have to do to correct this ? Where in android studio( preference.xml, or create something new ) i had to make a boolean ?

    Thank you for your help !