--------- beginning of /dev/log/system
--------- beginning of /dev/log/main
~i:*** Service (starter) Create ***
~i:** Service (starter) Start **
~i:** Activity (main) Create, isFirst = true **
~i:** Activity (main) Resume **
~i:*** Service (httputils2service) Create ***
~i:** Service (httputils2service) Start **
~i:** Activity (main) Pause, UserClosed = false **
~i:** Activity (actrealmain) Create, isFirst = true **
~i:** Activity (actrealmain) Resume **
~i:** Activity (actrealmain) Pause, UserClosed = false **
sending message to waiting queue (iad_receivead)
running waiting messages (1)
~i:** Activity (actrealmain) Resume **
~i:** Activity (actrealmain) Pause, UserClosed = false **
~i:** Activity (actrealmain) Resume **
~i:** Activity (actrealmain) Pause, UserClosed = false **
sending message to waiting queue (iad_adopened)
sending message to waiting queue (iad_adclosed)
running waiting messages (2)
~i:** Activity (actrealmain) Resume **
ResponseError. Reason: java.net.SocketTimeoutException, Response:
~eointshandler$ResumableSub_CurrPointsresume (java line: 157)
~e:java.io.FileNotFoundException: /data/data/com.mabotech.lettersandnumbers/cache/9: open failed: ENOENT (No such file or directory)
~e: at libcore.io.IoBridge.open(IoBridge.java:460)
~e: at java.io.FileInputStream.<init>(FileInputStream.java:78)
~e: at anywheresoftware.b4a.objects.streams.File.OpenInput(File.java:209)
~e: at anywheresoftware.b4a.samples.httputils2.httpjob._getstring2(httpjob.java:218)
~e: at anywheresoftware.b4a.samples.httputils2.httpjob._getstring(httpjob.java:207)
~e: at com.mabotech.lettersandnumbers.pointshandler$ResumableSub_CurrPoints.resume(pointshandler.java:157)
~e: at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:240)
~e: at anywheresoftware.b4a.BA.raiseEvent2(BA.java:180)
~e: at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1135)
~e: at android.os.Handler.handleCallback(Handler.java:725)
~e: at android.os.Handler.dispatchMessage(Handler.java:92)
~e: at android.os.Looper.loop(Looper.java:153)
~e: at android.app.ActivityThread.main(ActivityThread.java:5297)
~e: at java.lang.reflect.Method.invokeNative(Native Method)
~e: at java.lang.reflect.Method.invoke(Method.java:511)
~e: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
~e: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
~e: at dalvik.system.NativeStart.main(Native Method)
~e:Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
~e: at libcore.io.Posix.open(Native Method)
~e: at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
~e: at libcore.io.IoBridge.open(IoBridge.java:444)
~e: ... 17 more
java.io.FileNotFoundException: /data/data/com.mabotech.lettersandnumbers/cache/9: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:460)
at java.io.FileInputStream.<init>(FileInputStream.java:78)
at anywheresoftware.b4a.objects.streams.File.OpenInput(File.java:209)
at anywheresoftware.b4a.samples.httputils2.httpjob._getstring2(httpjob.java:218)
at anywheresoftware.b4a.samples.httputils2.httpjob._getstring(httpjob.java:207)
at com.mabotech.lettersandnumbers.pointshandler$ResumableSub_CurrPoints.resume(pointshandler.java:157)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:240)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:180)
at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1135)
at android.os.Handler.handleCallback(Handler.java:725)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:153)
at android.app.ActivityThread.main(ActivityThread.java:5297)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(Native Method)
Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
at libcore.io.IoBridge.open(IoBridge.java:444)
... 17 more
Cm la questione dei punteggi è vergognosa, i punti sono di più quando non centro il numero. io farei un interrogazione parlamentare.
Là l'ho trovato, uno solo; o è il tuo o il tuo arriverà poi, boh.Non è il mio. Hi mandato il report attraverso google. Vai alla consolle di Google alla vice ANR.
Private Sub CalculateNumGamePoints As Int
Dim Points As Int
Dim NumAttemptError As Int
NumAttemptError = Abs(mNumToFind - mNumUserAttempt)
Dim TimeSaved As Int
TimeSaved = mNumbersTimeAvailable
' Error points
Select NumAttemptError
Case 0
Points = 16000
Case 1
Points = 15000
Case 2
Points = 13000
Case 3
Points = 10000
Case Else
If NumAttemptError < = 10 Then
Points = 5000
Else
Points = 0
End If
End Select
#If DEBUG
Log("punti errore: " & Points)
#End If
Dim currpoints As Int = Points 'ignore
' Dim PercTimeSaved As Float
' PercTimeSaved = TimeSaved / FULLTIME_NUMBERS
Points = Points + (TimeSaved/10)
#If DEBUG
Log("time point: " & (Points - currpoints))
#End If
currpoints = Points
' ' Num. to find size points
' If mNumToFind > 600 Then
' Points = Points * 1.1
' Else If mNumToFind > 300 Then
' Points = Points * 1.05
' End If
#If DEBUG
Log("Num Size point: " & (Points - currpoints))
#End If
currpoints = Points
' Num of operations points
Dim NumOfOperations As Int = cvCalculation.GetSize
' punteggio vicino deve pagare di più, soprattutto
' con 5 tentativi
Select NumOfOperations
Case 5
Points = Points * 1.4
Case 4
Points = Points * 1.3
Case 3
Points = Points * 1.2
Case 2
Points = Points * 1.1
Case 1
Points = Points * 1
End Select
#If DEBUG
Log("Num op. point: " & (Points - currpoints))
Log("punteggio: " & Points)
Log(" " )
#End If
Return Points
End Sub
Io ho testato con 3 dispositivi diversi, nessuno dei miei é un Samsung S8, sicuramente era qualcunaltro che é benestante .Quindi i tuoi crash non erano su un Samsung S8?
Va beh, oramai seguo questa prassi del tutto sbagliata: ho apportato modifiche, vado a pubblicare la versione, direttamente in produzione (errore fatto fin dall'inizio; meglio in Alpha o Beta).
Private Sub CalculateNumGamePoints As Int
Dim Points As Int
Dim NumAttemptError As Int
NumAttemptError = Abs(mNumToFind - mNumUserAttempt)
Dim NumOfOperations As Int = cvCalculation.GetSize
Dim TimeSaved As Int
TimeSaved = mNumbersTimeAvailable
' Error points
Select NumAttemptError
Case 0 To 3
Points = 16000 - ((NumAttemptError * 2000) + (NumOfOperations * 500)) * TimeSaved
Case 4 To 10
Points = 6000 - ((NumAttemptError * 200) + (NumOfOperations * 400)) * TimeSaved
Case Else
Points = 0
End Select
Return Points
End Sub
Secondo me dipende dalle modifiche che avevo fatto per quando metti l'app in pausa durante il gioco; volevo che in quel caso annullasse la partita ma l'ho fatto male. Adesso dovrebbe essere corretto.Comunque ogni tanto parte la pubblicità durante il gioco, appena stacco la pubblicità il gioco é finito.
Altre volte crasha senza motivo mentre sto vincendo...
Tanto per prendere i punti non fermano il tempo, Ma per fare punteggio falso ho sentito dire che alcuni mandano una stringa su chrome e automaticamente fa partire gli script in php.Secondo me dipende dalle modifiche che avevo fatto per quando metti l'app in pausa durante il gioco; volevo che in quel caso annullasse la partita ma l'ho fatto male. Adesso dovrebbe essere corretto.
ho sentito dire
Private Sub CalculateNumGamePoints As Int
Dim Points As Int
Dim NumAttemptError As Int
NumAttemptError = Abs(mNumToFind - mNumUserAttempt)
Dim NumOfOperations As Int = cvCalculation.GetSize
Dim TimeSaved As Int
TimeSaved = mNumbersTimeAvailable
' Error points
Select NumAttemptError
Case 0 To 3
Points = 16000 + ((NumOfOperations * 500) - (NumAttemptError * 2000)) * (TimeSaved / 10)
Case 4 To 10
Points = 6000 + ((NumOfOperations * 400) - (NumAttemptError * 200)) * (TimeSaved / 10)
Case Else
Points = 0
End Select
Return Points
End Sub