问题描述
我即将运行由Wikitude Android上的POI示例应用程序之一。我做了一个Android项目,应对样品wikitude项目,以我的资产文件夹。
我复制了一个免费的,试用许可证密钥,当我发起的活动。
I'm about to run the one of the POI example app on Android by Wikitude. I made an Android project and coped the sample wikitude project to my assets folder.I've copied a free, trial licence key, when I'm launching the Activity.
不过,我有一个黑色的屏幕和试图找出你在哪里的消息出现过,当我启动应用程序。没有POI显示,没有发生,只是黑屏和无GPS消息。
However, I have a black screen and the "Trying to find out where you are" message appeared too, when I start the app. No POI appear, nothing happen, just the black screen and the no-gps message.
我试图你解决的问题中的至少一个FakeGPS,但它不工作
I tried to you the FakeGPS to solve at least one of the issues, but it doesn't work.
基于JavaScript的Wikitude的例子,我进口项目进入Android的工作室,资产文件夹下。据我看到的,也不例外来了,当我开始这个项目,所以我觉得我能够打开index.html触发AugmentedRealitiy,但没有任何反应。
The Wikitude example based on JavaScript, I imported the project into Android Studio, under the assets folder. As far as I see, no exception coming, when I starting the project, so I think I'm able to open the index.html to trigger AugmentedRealitiy , but nothing happens.
任何帮助真的AP preciated!
Any help is really appreciated!
推荐答案
好吧,我发现了黑屏问题的首选解决方案。请确保您添加以下codeS:
Okay, I found the first solution for the black screen problem. make sure you add the following codes:
@Override
protected void onResume() {
super.onResume();
this.architectView.onResume();
}
@Override
protected void onPause() {
super.onPause();
this.architectView.onPause();
}
@Override
protected void onDestroy() {
super.onDestroy();
this.architectView.onDestroy();
}
这篇关于Wikitude黑屏没有位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!