Start a new topic

AVD set-up for SimpleArBrowser

AVD set-up for SimpleArBrowser

How can i set up the AVD for support the minimum requirements of the Exampe(SimpleArBrowser)?
Hi Matteo!

Thanks for your interest in our new SDK.

Currently you can reuse the SimpleArBrowser Sample but manually "inject" the placemark information via archtectView.callJavascript()...

final JSONArray array = new JSONArray();

for ( final POI poi : pois ) {
array.put( poi.toJSONObject() );
}

this.architectView.callJavascript( "newData('" + array.toString() + "');" );

...
Anyway: We will provide a "best practice" Sample for deprecated API users by end of April and provide as sample-apps - stay tuned!

Kind regards,
Andi
Hi Andreas,
I thank you for the quick answer.Anyway i didn't find the solution right now.
The problem that occours is this check:

if(!ArchitectView.isDeviceSupported(this))
        {
            Toast.makeText(this, "minimum requirements not fulfilled", Toast.LENGTH_LONG).show();

i have tried with every AVD from Android 2.2 to 3.2 and also with my personal device with 2.3 inside, but i cannot cross this check.
Everytime it shows "minimum requirements not fulfilled".
What did i do wrong?

and anyway if i skip this step just putting it in a comment, it raises errors:



04-13 16:28:00.523: D/dalvikvm(535): Trying to load lib /data/data/com.wikitude.example/libarchitect.so 0x40513ae0
04-13 16:28:00.553: D/dalvikvm(535): Added shared lib /data/data/com.wikitude.example/libarchitect.so 0x40513ae0
04-13 16:28:01.083: D/dalvikvm(535): GC_EXTERNAL_ALLOC freed 199K, 51% free 2732K/5575K, external 2002K/2137K, paused 46ms
04-13 16:28:01.203: D/ArchitectWebView(535): ARchitect Build: 495M
04-13 16:28:01.213: D/ArchitectWebView(535): JS to load: AR.logger.debug("ARchitect Build: 495M")
04-13 16:28:01.743: D/dalvikvm(535): GC_CONCURRENT freed 743K, 51% free 3334K/6727K, external 2335K/2891K, paused 5ms+3ms
04-13 16:28:01.793: D/dalvikvm(535): GC_FOR_MALLOC freed 589K, 55% free 3192K/6983K, external 2335K/2891K, paused 36ms
04-13 16:28:02.003: D/dalvikvm(535): GC_FOR_MALLOC freed 515K, 52% free 3397K/6983K, external 2335K/2891K, paused 34ms
04-13 16:28:02.243: E/Web Console(535): ReferenceError: Can't find variable: AR at undefined:1
04-13 16:28:02.273: D/ArchitectWebViewClient(535): Started loading page: file:///android_asset/
04-13 16:28:02.773: D/libEGL(535): egl.cfg not found, using default config
04-13 16:28:02.773: D/libEGL(535): loaded /system/lib/egl/libGLES_android.so
04-13 16:28:02.793: W/dalvikvm(535): threadid=9: thread exiting with uncaught exception (group=0x40015560)
04-13 16:28:02.873: E/AndroidRuntime(535): FATAL EXCEPTION: GLThread 10
04-13 16:28:02.873: E/AndroidRuntime(535): java.lang.IllegalArgumentException: No configs match configSpec
04-13 16:28:02.873: E/AndroidRuntime(535):     at android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:763)
04-13 16:28:02.873: E/AndroidRuntime(535):     at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:919)
04-13 16:28:02.873: E/AndroidRuntime(535):     at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1264)
04-13 16:28:02.873: E/AndroidRuntime(535):     at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)
04-13 16:28:05.893: W/dalvikvm(535): JNI WARNING: jarray 0x40540f30 points to non-array object (Ljava/lang/String;)
04-13 16:28:05.893: I/dalvikvm(535): "WebViewCoreThread" prio=5 tid=10 NATIVE
04-13 16:28:05.893: I/dalvikvm(535):   | group="main" sCount=0 dsCount=0 obj=0x40551e38 self=0x2ae9a0
04-13 16:28:05.893: I/dalvikvm(535):   | sysTid=545 nice=0 sched=0/0 cgrp=bg_non_interactive handle=2812632
04-13 16:28:05.893: I/dalvikvm(535):   | schedstat=( 690133065 3490727345 69 )
04-13 16:28:05.893: I/dalvikvm(535):   at android.webkit.JWebCoreJavaBridge.sharedTimerFired(Native Method)
04-13 16:28:05.893: I/dalvikvm(535):   at android.webkit.JWebCoreJavaBridge.sharedTimerFired(Native Method)
04-13 16:28:05.923: I/dalvikvm(535):   at android.webkit.JWebCoreJavaBridge.fireSharedTimer(JWebCoreJavaBridge.java:91)
04-13 16:28:05.923: I/dalvikvm(535):   at android.webkit.JWebCoreJavaBridge.handleMessage(JWebCoreJavaBridge.java:108)
04-13 16:28:05.923: I/dalvikvm(535):   at android.os.Handler.dispatchMessage(Handler.java:99)
04-13 16:28:05.923: I/dalvikvm(535):   at android.os.Looper.loop(Looper.java:123)
04-13 16:28:05.923: I/dalvikvm(535):   at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:629)
04-13 16:28:05.933: I/dalvikvm(535):   at java.lang.Thread.run(Thread.java:1019)
04-13 16:28:05.933: E/dalvikvm(535): VM aborting



What can i do??
Thank you for the answer.
Hi Andreas,
I thank you for the quick answer.Anyway i didn't find the solution right now.
The problem that occours is this check:

if(!ArchitectView.isDeviceSupported(this))
        {
            Toast.makeText(this, "minimum requirements not fulfilled", Toast.LENGTH_LONG).show();

i
have tried with every AVD from Android 2.2 to 3.2 and also with my
personal device with 2.3 inside, but i cannot cross this check.
Everytime it shows "minimum requirements not fulfilled".
What did i do wrong?

and anyway if i skip this step just putting it in a comment, it raises errors:



04-13 16:28:00.523: D/dalvikvm(535): Trying to load lib /data/data/com.wikitude.example/libarchitect.so 0x40513ae0
04-13 16:28:00.553: D/dalvikvm(535): Added shared lib /data/data/com.wikitude.example/libarchitect.so 0x40513ae0
04-13 16:28:01.083: D/dalvikvm(535): GC_EXTERNAL_ALLOC freed 199K, 51% free 2732K/5575K, external 2002K/2137K, paused 46ms
04-13 16:28:01.203: D/ArchitectWebView(535): ARchitect Build: 495M
04-13 16:28:01.213: D/ArchitectWebView(535): JS to load: AR.logger.debug("ARchitect Build: 495M")
04-13 16:28:01.743: D/dalvikvm(535): GC_CONCURRENT freed 743K, 51% free 3334K/6727K, external 2335K/2891K, paused 5ms+3ms
04-13 16:28:01.793: D/dalvikvm(535): GC_FOR_MALLOC freed 589K, 55% free 3192K/6983K, external 2335K/2891K, paused 36ms
04-13 16:28:02.003: D/dalvikvm(535): GC_FOR_MALLOC freed 515K, 52% free 3397K/6983K, external 2335K/2891K, paused 34ms
04-13 16:28:02.243: E/Web Console(535): ReferenceError: Can't find variable: AR at undefined:1
04-13 16:28:02.273: D/ArchitectWebViewClient(535): Started loading page: file:///android_asset/
04-13 16:28:02.773: D/libEGL(535): egl.cfg not found, using default config
04-13 16:28:02.773: D/libEGL(535): loaded /system/lib/egl/libGLES_android.so
04-13 16:28:02.793: W/dalvikvm(535): threadid=9: thread exiting with uncaught exception (group=0x40015560)
04-13 16:28:02.873: E/AndroidRuntime(535): FATAL EXCEPTION: GLThread 10
04-13 16:28:02.873: E/AndroidRuntime(535): java.lang.IllegalArgumentException: No configs match configSpec
04-13
16:28:02.873: E/AndroidRuntime(535):     at
android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:763)
04-13 16:28:02.873: E/AndroidRuntime(535):     at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:919)
04-13 16:28:02.873: E/AndroidRuntime(535):     at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1264)
04-13 16:28:02.873: E/AndroidRuntime(535):     at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)
04-13 16:28:05.893: W/dalvikvm(535): JNI WARNING: jarray 0x40540f30 points to non-array object (Ljava/lang/String;)
04-13 16:28:05.893: I/dalvikvm(535): "WebViewCoreThread" prio=5 tid=10 NATIVE
04-13 16:28:05.893: I/dalvikvm(535):   | group="main" sCount=0 dsCount=0 obj=0x40551e38 self=0x2ae9a0
04-13 16:28:05.893: I/dalvikvm(535):   | sysTid=545 nice=0 sched=0/0 cgrp=bg_non_interactive handle=2812632
04-13 16:28:05.893: I/dalvikvm(535):   | schedstat=( 690133065 3490727345 69 )
04-13 16:28:05.893: I/dalvikvm(535):   at android.webkit.JWebCoreJavaBridge.sharedTimerFired(Native Method)
04-13 16:28:05.893: I/dalvikvm(535):   at android.webkit.JWebCoreJavaBridge.sharedTimerFired(Native Method)
04-13 16:28:05.923: I/dalvikvm(535):   at android.webkit.JWebCoreJavaBridge.fireSharedTimer(JWebCoreJavaBridge.java:91)
04-13 16:28:05.923: I/dalvikvm(535):   at android.webkit.JWebCoreJavaBridge.handleMessage(JWebCoreJavaBridge.java:108)
04-13 16:28:05.923: I/dalvikvm(535):   at android.os.Handler.dispatchMessage(Handler.java:99)
04-13 16:28:05.923: I/dalvikvm(535):   at android.os.Looper.loop(Looper.java:123)
04-13 16:28:05.923: I/dalvikvm(535):   at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:629)
04-13 16:28:05.933: I/dalvikvm(535):   at java.lang.Thread.run(Thread.java:1019)
04-13 16:28:05.933: E/dalvikvm(535): VM aborting



What can i do??
Thank you for the answer.
Hi Matteo,

This sounds very strange. ARchitect required Android 2.2+ and openGL 2.0, these are the only checks made in this method (for now).
We will apply some very minor adjustments in next minor SDK update.
Could you please double check that this method always returns "false" but also post the devices here.

Thanks in advance.
Login or Signup to post a comment