123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|514|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Off Topic -> Java Assistance

Fri, 11 Apr 2014, 03:37
Erebel55
@therevillsgames any chance you could help me with some java? Linkage

-=-=-
Lava Monkey
https://play.google.com/store/apps/details?id=com.lvm.lavamonkey
Fri, 11 Apr 2014, 03:37
therevillsgames
I havent had a chance, been too busy - but I have seen that message before... years ago.
Fri, 11 Apr 2014, 04:50
Cower
The issue Erebel's having is that Monkey runs game code on a GLSurfaceView's GL thread, which doesn't use a looper. Presumably he's trying to do something UI-related and it's not going according to plan 'cause he didn't realize he was on a separate thread.

Either way, the solution is to figure out how to run the code he needs to on the UI thread or another thread with a looper, depending on the requirements of the code. My guess, though, is that he's doing something UI-related and it needs to be the UI thread. Going through Monkey is probably going to make this something of a nightmare.

(Also, we discussed this previously.)
Fri, 11 Apr 2014, 05:46
Erebel55
I attempted to rewrite the code using a Runnable instead of extending the Activity. I also am using runOnUiThread now to run my code on the UI thread. That got rid of the error I was getting, however I'm still not seeing any ad :/



-=-=-
Lava Monkey
https://play.google.com/store/apps/details?id=com.lvm.lavamonkey