I have this error comming on and on after ading okhttp for my own advertising module !
Do this tempfile from dir.internal.cache have to add permision ? What is the problem
I rekon that I have made few changes to http
'1. first modify
'this is my second modify because sometimes I had problem with app navigation because of callsubdelay that started diferent activity when I do no longer needed
Do this tempfile from dir.internal.cache have to add permision ? What is the problem
I rekon that I have made few changes to http
B4X:
Acum 7 minute în versiunea 104 a aplicației
Huawei 荣耀8青春版 (HWPRA-H), 3072MB RAM, Android 7.0
Raportul 1
java.lang.RuntimeException:
at anywheresoftware.b4a.BA.raiseEvent2 (BA.java:223)
at anywheresoftware.b4a.BA$2.run (BA.java:360)
at android.os.Handler.handleCallback (Handler.java:761)
at android.os.Handler.dispatchMessage (Handler.java:98)
at android.os.Looper.loop (Looper.java:156)
at android.app.ActivityThread.main (ActivityThread.java:6523)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:942)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:832)
Caused by: java.io.FileNotFoundException:
at java.io.FileOutputStream.open (Native Method)
at java.io.FileOutputStream.<init> (FileOutputStream.java:221)
at anywheresoftware.b4a.objects.streams.File.OpenOutput (File.java:370)
at com.cote.montaj.httputils2service._hc_responsesuccess (httputils2service.java:175)
at java.lang.reflect.Method.invoke (Native Method)
at anywheresoftware.b4a.BA.raiseEvent2 (BA.java:186)
java.lang.RuntimeException:
at anywheresoftware.b4a.BA.raiseEvent2 (BA.java:223)
at anywheresoftware.b4a.BA$2.run (BA.java:360)
at android.os.Handler.handleCallback (Handler.java:761)
at android.os.Handler.dispatchMessage (Handler.java:98)
at android.os.Looper.loop (Looper.java:156)
at android.app.ActivityThread.main (ActivityThread.java:6523)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:942)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:832)
Caused by: java.io.FileNotFoundException:
at java.io.FileOutputStream.open (Native Method)
at java.io.FileOutputStream.<init> (FileOutputStream.java:221)
at anywheresoftware.b4a.objects.streams.File.OpenOutput (File.java:370)
at com.cote.montaj.httputils2service._hc_responsesuccess (httputils2service.java:175)
at java.lang.reflect.Method.invoke (Native Method)
at anywheresoftware.b4a.BA.raiseEvent2 (BA.java:186)
'1. first modify
B4X:
'TempFolder = File.DirInternalCache
If TempFolder = "" Then TempFolder = File.DirInternalCache
'this is my second modify because sometimes I had problem with app navigation because of callsubdelay that started diferent activity when I do no longer needed
B4X:
Public Sub Complete (id As Int)
'activity enhanced module
If IsPaused(target) Then
'ToastMessageShow("There is nobody to read http requests",True)
If File.Exists(HttpUtils2Service.TempFolder,id) Then
File.Delete(HttpUtils2Service.TempFolder, id)
End If
Else
taskId = id
CallSubDelayed2(target, "JobDone", Me)
End If
End Sub