It works for me now. I think because my project still reference to the sdk 1.2 that's why it doesn't work.
Thanks for your help.
/chandara
M
Markus Eder
said
almost 11 years ago
Hi again!
I ran your sample and it seemed that the mere problem with it was that the reference to the wikitude sdk was still an absolute path reference to a folder on your filesystem. When i changed it to the wikitudesdk.jar in the libs folder everything worked fine.
Let me know if that fixes the problem for you as well.
best regards,
Markus
d
dara chan
said
almost 11 years ago
Hi Markus,
With your sample, it works pretty fine for me, but when I want to change it the way I want to implement by setting the geolocation that the htmlDrawable should be drawn, it doesn't work for me, and in here, I just attach my sample code. Can you help to take a look what is the problem that cause this.
Thanks in advance.
Best regards,
Chandara
M
Markus Eder
said
almost 11 years ago
Hi there!
Are you still using your sample that you uploaded in the forum?
Anyways I provided you with a basic html drawable sample to start of with. please let me know if everything's working.
best regards
Markus
d
dara chan
said
almost 11 years ago
I have downloaded and tried with the new sdk(1.2.1) but I still cannot see the htmlDrawable drawn, anyway when I used uri in the htmlDrawable I got the following error:
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)
anyway, really appreciate your assistant.
Best Regards,
Chandara
P
Philipp Nagele
said
almost 11 years ago
Based on your input we discovered a bug in the Wikitude SDK 1.2 for Android, which prevented a sucessful rendering of HTMLDrawables. We addressed this issue with a maintenance update (version 1.2.1) of the Wikitude SDK, which was release today. You can download the update in the download section.
We appreciate your help!
d
dara chan
said
almost 11 years ago
Can anyone help to post the android sample code about how to use HtmlDrawable with wikitude sdk 1.2? because I have tried with that and go through a lot of documents, but I still cannot manange to create a working sample app with HtmlDrawable with Wikitude sdk 1.2.
dara chan