Search code examples
androidwikitude

Wikitude black screen with no location


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!


Solution

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