libgdx / gdx-pay

A libGDX cross-platform API for InApp purchasing.
Apache License 2.0
225 stars 83 forks source link

OUYA Mgr: do we need Looper / Looper.prepare() ? #5

Closed just4phil closed 9 years ago

just4phil commented 9 years ago

hi friends! in PurchaseManagerAndroidOUYA.java -> row 194 i use the Handler to send messages to the ui-thread. i dont call Looper.prepare and Looper.loop() but evrything works fine! so i am a bit confused if that is needed and why it works without!? if we need it there then how? (i tried to implement it but got some errors .... maybe because the manager is not a thread) bye phil

noblemaster commented 9 years ago

You use getMainLooper() which is already initialized as far as I understand it. It's the looper for the main thread of an application which has prepare() etc. already properly setup. In that sense you don't need/shouldn't call prepare() etc. yourself.