Wikitude black screen with no location [closed]

这一生的挚爱 提交于 2019-12-14 03:23:30

问题


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.

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.

I tried to you the FakeGPS to solve at least one of the issues, but it doesn't work.

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.

Any help is really appreciated!


回答1:


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(); 
}


来源:https://stackoverflow.com/questions/33570510/wikitude-black-screen-with-no-location

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!