Nexus 7 Problem

Monkey Targets Forums/Android/Nexus 7 Problem

cageInfamous(Posted 2012) [#1]
My Nexus 7 decided to stop running my apps built as debug. Does anyone know how to go about fixing that?


Xaron(Posted 2012) [#2]
What do you mean with "stop running"? Do you have Android 4.2?


cageInfamous(Posted 2012) [#3]
Yeah, I have Android 4.2, a few days ago it ran them fine but now it starts and just stops. I made a really simple test app too and it won't run it either.


Xaron(Posted 2012) [#4]
I think you use Monkey v66? If so it won't run on Android 4.2. Mark had a patch in the product updates sections but due to reasons beyond my imagination it's not there anymore.


Xaron(Posted 2012) [#5]
Ok, open modules/mojo/native/mojo.android.java

Now look for

GLES11.glTexImage2D


and add

buf.position( 0 ); 


BEFORE that line with GLES11.glTexImage2D

You should find 4 places in the code where you have to add this.


cageInfamous(Posted 2012) [#6]
That completely fixed it! Thanks a lot


Xaron(Posted 2012) [#7]
Great! :)


secondgear(Posted 2013) [#8]
Sorry for hijacking the thread.

Could somebody with an access to a 4.2 device test my app, please? I applied the fix above, but without a device to test on there is no way to be sure it worked. The app is here: Read and Play: Stories for Kids

It's free to download, and it's 21M in size (Wi-Fi recommended).

Thank you.


Supertino(Posted 2013) [#9]
Can confirm it's working great on my nexus 7 Jelly bean 4.2


secondgear(Posted 2013) [#10]
Supertino, thank you! Now I can proceed with applying the fix to my other Monkey apps.