How to use android in app billing in cocos2d-x

cocos2d-x in android call android.os.Process.killProcess(android.os.Process.myPid()); when we use CCDirector::sharedDirector()->end(); to exit .

But in android in app billing , we need to keep server running to handle the billing RESPONSE .

How can we do ?

This problems was already solved by this open source library - http://project.soom.la
You can either use it as a reference/sample code - it’s well documented
Or you can use it as a library/SDK

Hi,
Please see my thread about correct implementation of finishing activity instead of killing the process:
http://www.cocos2d-x.org/boards/6/topics/15645

I have one problem there I need to fix, but I’ve still didn’t figure out how to fix it.

Hi ,

Only using finish(); seems will cause opengl erro when restart game . I also try not to release opengl when exit , when restart game , it runs well , but will cause about 0.1m memory leak .

Oren Bengigi wrote:

Hi,
Please see my thread about correct implementation of finishing activity instead of killing the process:
http://www.cocos2d-x.org/boards/6/topics/15645
>
I have one problem there I need to fix, but I’ve still didn’t figure out how to fix it.

Thanks, max .
I will have a try

Max Green wrote:

This problems was already solved by this open source library - http://project.soom.la
You can either use it as a reference/sample code - it’s well documented
Or you can use it as a library/SDK