Wikitude
play_for_work
Forum
FAQ
Documentation
Download
wikitude.com
How can we help you today?
Enter your search term here...
Search
Start a new topic
Discussions
Wikitude SDK (Android, iOS, UWP)
Wikitude SDK Questions or Problems
Marshmallow Exception while getting Camera Parameters
T
Thibaud RENAUX
started a topic
over 7 years ago
Marshmallow Exception while getting Camera Parameters
5 Comments
Oldest First
Popular
Newest First
Sorted by
Oldest First
T
Thibaud RENAUX
said
over 7 years ago
Hello,
I'm trying to develop an app using Wikitude for Marshmallow and lower, for lower versions it works good but for marshmallow it doesn't.
The error is "Exception while getting Camera Parameters" on the ArchitectView.onCreate() function.
I read a lot about this error to avoid some reccursive question:
- no there isn't any other app using camera
- the test is processed just after boot
-i've set :
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" android:required="true" />
and for the activity :
<activity
android:name=".custom.CustomActivity"
android:label="@string/title_activity_main"
android:configChanges="screenSize|orientation"
>
</activity>
and in the Java's application code :
onCreate(....){
......
try{
this.architectView.onCreate(configuration);
creationPassed = true;
}catch (Exception e){
e.printStackTrace();
creationPassed = false;
}
}
@Override
protected void onPostCreate(Bundle savedInstanceState) {
super.onPostCreate(savedInstanceState);
if(creationPassed){
this.architectView.onPostCreate();
try {
this.architectView.load("wikitude/sample/index.html");
} catch (IOException e) {
e.printStackTrace();
}
}
}
@Override
protected void onPause() {
super.onPause();
this.architectView.onPause();
}
@Override
protected void onResume() {
super.onResume();
this.architectView.onResume();
}
@Override
protected void onDestroy() {
super.onDestroy();
this.architectView.onDestroy();
}
R
Randhir Mehra
said
about 7 years ago
Hi,
I am also getting the same error for Marshmallow.
Any solution for this?
A
Andreas Schacherbauer
said
about 7 years ago
Hi,
When using Marshmallow (Android 6), the hosting application needs to query for the camera runtime permission before creating the ArchitectView.
You can have a look at our example application (SDK version 5.1.2) on how to do this.
Best regards
Andreas
D
DINESH KARPE
said
almost 7 years ago
http://dineshkarpe.me/android-with-wikitude-sdk/
https://github.com/DINESHKARPE/HelloWikitude
A
Andreas Schacherbauer
said
almost 7 years ago
Hi Dinesh,
Thx for writing the blog post and sharing the link here!
Best regards
Andreas
Login
or
Signup
to post a comment
More topics in
Wikitude SDK Questions or Problems
Instatiation of WTArchitectView compile errors
Point of interest - native iOS
Slider
Camera lagging / slow in native Swift application
Create a web service
N-th ImageDrawable not displayed
Radar Example
stop defaultlocationmanager and use architectview.injectlocation ios 10
WTC Size Limit
AngularJS and wikitude
See all 3861 topics
© 2021 Wikitude, a Qualcomm company
Thibaud RENAUX