my app is working fine from android 5 to android 14.
after 14+ crash services.
my codes below and waiting help
-------------------------------------------------------
--------------------------------------------------------------------
after 14+ crash services.
my codes below and waiting help
-------------------------------------------------------
LISTENER:
#Region Module Attributes
#StartAtBoot: False
#StartCommandReturnValue: android.app.Service.START_STICKY
#End Region
'Service module
Sub Process_Globals
Dim PE As PhoneEvents
Dim AC As AnswerCall
Dim PhoneId As PhoneId
Dim AStreamsClient As AsyncStreams
Dim Socket2 As Socket
Dim gelen_telefon As String
End Sub
Sub Service_Create
PE.InitializeWithPhoneState("PE",PhoneId)
AC.Initialize("AnswerCall")
ToastMessageShow("SERVICES START",True)
End Sub
Sub Service_Start
ToastMessageShow("SERVİS START",True)
Dim noti As Notification 'shows in the notification window
noti.Initialize
noti.Icon ="icon"
noti.Sound = True
noti.Vibrate = True
noti.Light = False
'this runs the next Activity (smstext)
noti.SetInfo("Tel ,"LISTENING...",Main)
noti.Notify(1)
Service.StartForeground(1, noti)
End Sub
--------------------------------------------------------------------
MANIFEST:
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="35"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
'SetApplicationAttribute(android:requestLegacyExternalStorage, true)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
AddPermission(android.permission.READ_PHONE_STATE)
AddPermission(android.permission.READ_CALL_LOG)
AddReceiverText(Listener,
<intent-filter>
<action android:name="android.intent.action.PHONE_STATE" />
</intent-filter>)