Start a new topic

Exception while getting Camera Parameters

Exception while getting Camera Parameters
1 Comment


Hi to all, 

I'm newbie on Wikitude SDK and I'm trying to develop an android app for AR.
I've tried to modify the Wikitude SDK Examples to obtain the POI with Radar on my application. I've done a button that, in my intention, have to open the 6_Browsing$Pois_2_Adding$Radar index.html of the sample.

But I have this error that I don't understand:

"E/ArchitectView: Exception while getting Camera Parameters java.lang.RuntimeException: Fail to connect to camera service"

 

That refers to "this.architectView.onCreate(config);" in the following:

 

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_cam);
this.architectView = (ArchitectView)this.findViewById( R.id.architectView );
final StartupConfiguration config = new StartupConfiguration(Constants.WIKITUDE_SDK_KEY, this.getFeatures(), this.getCameraPosition() );
this.architectView.onCreate(config);
}

 

In the manifest there are the following permission:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_GPS" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<uses-feature
android:name="android.hardware.camera"
android:required="true" />
<uses-feature
android:name="android.hardware.location"
android:required="true" />
<uses-feature
android:name="android.hardware.sensor.accelerometer"
android:required="true" />
<uses-feature
android:name="android.hardware.sensor.compass"
android:required="true" />
<uses-feature
android:glEsVersion="0x00020000"
android:required="true" />

 

Anyone can help me? Thanks for your patience
Login or Signup to post a comment