Hello everyone,
SoyEli wanted to answer a call automatically in this topic, so I created this library.
It works together with Erel's PhoneEvents PhoneStateChanged.
Note that you should respect the order of events of the sample in phonestateChanged and that it will only work in a service.
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
It may not work on all devices (if you can test it out?)
It worked for my Xperia PLAY.
Attachements include the library files and a sample
Tomas
			
			SoyEli wanted to answer a call automatically in this topic, so I created this library.
It works together with Erel's PhoneEvents PhoneStateChanged.
Note that you should respect the order of events of the sample in phonestateChanged and that it will only work in a service.
			
				B4X:
			
		
		
		Sub PE_PhoneStateChanged (State As String, IncomingNumber As String, Intent As Intent)
    Log("PhoneStateChanged, State = " & State & ", IncomingNumber = " & IncomingNumber)
    Log(Intent.ExtrasToString)
   AC.LetPhoneRing(3000)
   If AC.isRinging == True Then
      AC.AnswerPhone
   End If
   AC.enableSpeakerphone
End Sub
	It may not work on all devices (if you can test it out?)
It worked for my Xperia PLAY.
Attachements include the library files and a sample
Tomas
Attachments
			
				Last edited: