Start a new topic

Errors load example in my MainActivity

Errors load example in my MainActivity


Hi Simon,

Could you provide the link with the sample code, where I can find AbstractArchitectCamActivity and SampleCamActivity classes?

I'm using XAMARIN.

Best regards,

Nenad

Hi Brus,

please have another look at the sample code, you are missing some code to make it work.

Take a closer look at those two classes:
AbstractArchitectCamActivity
SampleCamActivity

E.g. you aren't using a locationProvider (AbstractArchitectCamActivity.onCreate), which you need for the Geo samples.

Best regards,
Simon
 

Hi, i imported the SDK folder in my Android Studio and i was able to test all the examples in my GNexus nicely. The problems i have are when i configured an android studio project in order to use one of the example in the SDK for Android.

1- Copied the wikitude.jar in my lib and added as a library;

2- Added all the requirements as you described in the documentation in the AndroidManifest;

3- Created  a ArchitectView in my main.xml file;

4- Copied one folder including the example in my /src/main/assets folder;

5- This is my MainAcivity.java

 

import android.os.Bundle;

import android.support.v7.app.ActionBarActivity;



import com.wikitude.architect.ArchitectView;

import com.wikitude.architect.StartupConfiguration;



import java.io.IOException;





public class ActivityWikitude extends ActionBarActivity {



ArchitectView architectView;

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_wikitude);





this.architectView = (ArchitectView)this.findViewById( R.id.architectView );

final StartupConfiguration config = new StartupConfiguration("MY_TRIAL_KEY");

this.architectView.onCreate( config );

this.architectView.onPostCreate();

try {

this.architectView.load("assets/6_Browsing$Pois_3_Limiting$Range/index.html");

} catch (IOException e) {

e.printStackTrace();

}



}



@Override

public void onResume() {

super.onResume();

this.architectView.onResume();

}

}

 

 

The project starst (Browsing poi number 6) , i see the TRIAL watermark, but the radar, the POIs and the limit range doesn't appear.

In my logcat i read this errors:

Activity com.xx.xx.ActivityWikitude has leaked IntentReceiver com.wikitude.architect.ArchitectView$a@41b17778 that was originally registered here. Are you missing a call to unregisterReceiver()?

android.app.IntentReceiverLeaked: Activity com.xx.xx.ActivityWikitude has leaked IntentReceiver com.wikitude.architect.ArchitectView$a@41b17778 that was originally registered here. Are you missing a call to unregisterReceiver()?

.
.
.
     at com.xx.xx.ActivityWikitude.onCreate(ActivityWikitude.java:24)

 

The other two are

10331-10627/com.xx.xx E/libEGL? called unimplemented OpenGL ES API

10331-10331/com.xx.xx E/AudioManagerAndroid? BLUETOOTH permission is missing!

 

Does anyone please help me?
Login or Signup to post a comment