Get Started         Best Practices         Developer Guide         FAQ        
Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Cloud Image Recognition problem on Huawei P8 Lite

Andrei Jan 16, 2017

Hello,

I am using the CraftAR API for Cloud Image Recognition and encountering no problems, except when testing on a Huawei P8 Lite. On the rest of the devices, pressing the "Scan" button brings back either "Result is ..." or "No results found", but on the Huawei it keeps searching and no answer is brought back. I built the app following the demo. Is there a known problem with Huawei devices?


( Agent )
Luis Martinell

Jan 18, 2017

What version of Android does the device have? Can you check that the Internet permission is granted for this app?

Can you share the logs from logCat when this happens?

0 rated
Andrei Zamfir

Jan 19, 2017

Hello Luis,

Thank you for your answer. The Huawei device is using Android 5.0.1 and the Internet permission is granted.
As I mentioned, the app works properly on other devices (Motorola G 4G, Samsung Galaxy Duos, Samsung Galaxy S7, Vodafone Smart Ultra 7) running Android 5.1, 4.4.4 and 6.0.1.

As for the logs, unfortunately, I don't have access to them, as this problem occurs on the client side. I will try and get a similiar device and post the logs by monday.

Best,
Andrei
0 rated
( Agent )
Luis Martinell

Jan 19, 2017

Hello Andrei,

Unfortunately, we don’t have access to this device right now. Let us know if you are able to get some logs. This can be very helpful for us.

0 rated
Andrei Zamfir

Jan 27, 2017

Hello Luis,

I finally managed to get my hands on a Huawei P8 Lite with Android 5.0. It seems that the classes are not recognized, and not only the classes from CraftAR libary, but all of them. Here are some of the logs:

I/art: Can not find class: Landroid/support/v4/view/ViewPager;
I/art: Can not find class: Landroid/support/v4/view/PagerAdapter;
I/art: Can not find class: Lcom/example/andrei/myapp/utils/Utils;
I/art: Can not find class: Lcom/example/andrei/myapp/activities/HomeActivity$1;
I/art: Can not find class: Lcom/craftar/CraftARActivity;
I/art: Can not find class: Lcom/craftar/ImageRecognition$SetCollectionListener;

There are errors for all the classes in my app, including classes from libraries and classes I created. The problem is everything else works, except the CraftAR scanning activity. Also, I got this error while trying to scan a picture:

E/ScanActivity: Search failed(ERROR_IMAGE_TOO_LARGE):Image file size is too large

Again, the app works on other devices with Android version ranging from 4.4.4 to 6.0.1.

I tried running the app on a Huawei P8 Lite with Android 6.0 and everything worked as expected. Do you think there's a factory problem with the Huawei P8 Lite running Android 5.0?

Thanks,
Andrei
0 rated
( Agent )
Luis Martinell

Feb 10, 2017

Looks like it might be a device + os-version specific issue. I found similar problems reported here: https://github.com/AntennaPod/AntennaPod/issues/959

They suggest upgrading to Android 5.0.1 Can you try this?

Best
Catchoom Team

0 rated
Andrei Zamfir

Feb 13, 2017

The device already runs Android 5.0.1, my bad. Updating to 6.0 works though.
0 rated

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)

Couldn't find what you were looking for?

support@catchoom.com
https://cdn.desk.com/
false
catchoom
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete