Perhaps it is time for me to read the tutorial and write a lib
'returns the current device call state
'0 = Device call state: No activity.
'1 = Device call state: Ringing. A new call arrived and is ringing or waiting. In the latter case, another call is already active.
'2 = Device call state: Off-hook. At least one call exists that is dialing, active, or on hold, and no calls are ringing or waiting.
Sub GetCallState() As Int
Dim r As Reflector
Dim TelephonyManager As Object
r.Target = r.GetContext
TelephonyManager = r.RunMethod2("getSystemService", "phone", "java.lang.String")
r.Target = TelephonyManager
Return r.RunMethod( "getCallState")
End Sub
Well, this is where my newbeeness comes in to play. When I click on the referenced libraries tab there is no Reflections library.
I am aware that there seem to be other libs available but am leary as I don't know if they are tested/reliable, nor have I run across any info on exactly how to find/download/install them. I also wonder how much they will increase the size of my app.
In case anyone else trys this excelent code you have 1 and 2 reversed:
Djembefola,
I would like to keep the add-ons seperate, where do I put the "additional libraries folder and exactly what is its name?
Thanks again