How to use Telephony Manager library on Android mode

edited September 2014 in Android Mode

Hi everybody! I'm a (very new) Processing programmer. I'm developing an application for Android and i have this issue: i have to manage the audio player of my game, to stop when someone is calling the phone. Now, i found a library (TelephonyManager: http://www.compiletimeerror.com/2013/08/android-call-state-listener-example.html#.U-AGSnJ_uSp ) but i don't know how to get it work on a Processing sketch. I mean from the beginning: what i have to do exactly to make the library comunicate with the main sketch? i just tried to put it in a secondary thread and launch the program.. nothing. then i tried to call the class in the primary sketch but i get a bunch of different errors (means that i'm missing something in general on this topic...). I home someone can help me.. i really need to solve this problem to put my game on the market. Please help me with specific instructions step by step.. thanks!

Sign In or Register to comment.