- Home /
Problem is outdated
new AndroidJavaObject hanging only on certain devices.
Hello folks,
We're using Unity's LVL checker that they've included in the Asset Store to check if the app has a valid licence.
In it is the code
var dcl = new AndroidJavaObject("dalvik.system.DexClassLoader",
cachePath + "/classes.jar",
cachePath + "/odex",
null,
m_activity.Call<AndroidJavaObject>("getClassLoader"));
Now this piece of code works fine on most devices. However, we have a Samsung Galaxy Tab 10.1 with O.S version 3.1 and on this device the above code just hangs. It never returns, which obviously causes the app to hang.
I really have no idea why this happens on this device, any ideas or suggestion... anything at all?
$$anonymous$$y test device (ARCHOS 101 G9) is also hanging. Strangely it doesn't hang always I am I not sure what is effecting it.
In the end we had to not use this, I've not tested this code recently though so I don't know if it's still a problem.
Answer by eriQue · Aug 21, 2012 at 08:54 AM
You need to change the cachePath as indicated here :
(basically use a subdir inside the /cache/ dir for odex output)
Unfortunately I'm already doing that, I'm creating a bug report and sending it in as we've now reproduced this on other 3.x tab devices.