Start a new topic

HtmlDrawable doesn't display in android app

HtmlDrawable doesn't display in android app


Hi Markus,

Basically, this is the sample project I got from Wikitude example (SimpleARBrowserActivity), and I did some changes to use HtmlDrawable. I tested it with Motorola RAZR XT910 which is runing android OS 4.0.4.

Best Regards,

Chandara

Hi there!

Could you please provide me with more information concerning your project setup. e.g. What OS version of Android are you using? What is the name of your device? 

best regards

Markus

I have gone through the link and I have tried to add the viewport, but it still doesn't work. Please see the attach file for the new update html. And it seems like it works fine with ADE because I can see all the elements were generated.

And I noticed something, everytime I open the app, I saw the following error:

 

02-06 11:49:49.048: E/Web Console(26539): Uncaught ReferenceError: AR is not defined at null:1

02-06 11:49:51.376: E/libEGL(26539): called unimplemented OpenGL ES API


02-06 11:50:12.259: E/Tokenizer(26539): Error opening file '/data/usr/keychars/Generic.kcm', No such file or directory.

02-06 11:50:12.259: E/KeyCharacterMap(26539): Error -2 opening key character map file /data/usr/keychars/Generic.kcm.

02-06 11:50:12.486: E/libEGL(26539): call to OpenGL ES API with no current context (logged once per thread)

 

and when I use the "uri" in HtmlDrawable then it will give me the following warning:

 


02-06 10:24:53.946: W/webcore(22990): skip viewSizeChanged as w is 0

02-06 10:24:55.532: W/webcore(22990): java.lang.Throwable: EventHub.removeMessages(int what = 107) is not supported before the WebViewCore is set up.

02-06 10:24:55.532: W/webcore(22990): at android.webkit.WebViewCore$EventHub.removeMessages(WebViewCore.java:1683)

02-06 10:24:55.532: W/webcore(22990): at android.webkit.WebViewCore$EventHub.access$7900(WebViewCore.java:926)

02-06 10:24:55.532: W/webcore(22990): at android.webkit.WebViewCore.removeMessages(WebViewCore.java:1795)

02-06 10:24:55.532: W/webcore(22990): at android.webkit.WebView.sendOurVisibleRect(WebView.java:2962)

02-06 10:24:55.532: W/webcore(22990): at android.webkit.ZoomManager.setZoomScale(ZoomManager.java:598)

02-06 10:24:55.532: W/webcore(22990): at android.webkit.ZoomManager.access$1700(ZoomManager.java:49)

02-06 10:24:55.532: W/webcore(22990): at android.webkit.ZoomManager$PostScale.run(ZoomManager.java:989)

02-06 10:24:55.532: W/webcore(22990): at android.os.Handler.handleCallback(Handler.java:605)

02-06 10:24:55.532: W/webcore(22990): at android.os.Handler.dispatchMessage(Handler.java:92)

02-06 10:24:55.532: W/webcore(22990): at android.os.Looper.loop(Looper.java:137)

02-06 10:24:55.532: W/webcore(22990): at android.app.ActivityThread.main(ActivityThread.java:4697)

02-06 10:24:55.532: W/webcore(22990): at java.lang.reflect.Method.invokeNative(Native Method)

02-06 10:24:55.532: W/webcore(22990): at java.lang.reflect.Method.invoke(Method.java:511)

02-06 10:24:55.532: W/webcore(22990): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)

02-06 10:24:55.532: W/webcore(22990): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554)

02-06 10:24:55.532: W/webcore(22990): at dalvik.system.NativeStart.main(Native Method)


I took a very quick look and it seems to be okay. However there are a few things to consider which are explained in one of the documentation articles: Tutorial: How to layout your content with HTML drawables Please have a look at it.

Addtionally I would suggest using the ADE to test the file in the browser so you can make sure it's free of any javascript errors.

Is there anyone manage to be able to create the app which can display the HtmlDrawable? Can help to share the code or can help me to check the following html?

I simply try to test with SimpleARBrowser sample code from wikitude by changing the code of showing image and label, I would like to show html content, but I can't make it.

Thanks in advance for the help.


 
Login or Signup to post a comment