I've two problem.
PROBLEM ONE
If run my game, the varible and data have old value...but if I set the Break-Point into set this value, it's work perfectly.
I've insert a DoEvents command and create a sub timer pause... but nothing. The value not change, but eith BreakPoint, change.
Tests are made with Genymotion Android emulator for Pc (I7).
Exist a command when attend the value it's empty or changed, firt to continue?
This imy code:
If I set thebreak point... the strPlay have a true value str value. Log RECORD print a true value
If not set a break point... the Log RECORD print a true value but the Log NEW ARRAY, have a OLD value (view down)
PROBLEM TWO
Another problem is the activity into Task Manager.
When the Player set a Record, I start an activity for publisher the score and immage into Facebook... when the player go to back, and I close Activity with Activity.finish, it's set open into task manager.
I've set to Manifest.XML a:
android:clearTaskOnLaunch="true"
But not work when the App it's alredy lauched.
Ecist a mede to destroy Activity from Rasm Manager?
Thanks for your supports.
PROBLEM ONE
If run my game, the varible and data have old value...but if I set the Break-Point into set this value, it's work perfectly.
I've insert a DoEvents command and create a sub timer pause... but nothing. The value not change, but eith BreakPoint, change.
Tests are made with Genymotion Android emulator for Pc (I7).
Exist a command when attend the value it's empty or changed, firt to continue?
This imy code:
B4X:
Dim strPlay As String
DoEvents:DoEvents
'if I set a break-point strPlay Change ...else NOT Change.
Log("Record:" & str)
strPlay=str
DoEvents:DoEvents
Dim arrayapp(4) As String
If I set thebreak point... the strPlay have a true value str value. Log RECORD print a true value
If not set a break point... the Log RECORD print a true value but the Log NEW ARRAY, have a OLD value (view down)
B4X:
For i=0 To List1.Size-1
Decrypt(List1.Get(i))
DoEvents
Log(str)
'If it's the selected player, rewrite else not change
If i<>Main.fndPlayer Then
arrayapp(i)= str 'str is the Derypted Value
Log("ARRAY:" & arrayapp(i))
Else
arrayapp(i)=strPlay 'Write new value
DoEvents
Log ("New Array:" & arrayapp(i)) 'If no set a Break Point strPlay have a OLD VALUE!!!
xp=i
DoEvents
End If
arrayapp(i)=Crypt(arrayapp(i))
arrayapp(i)=str
Next
PROBLEM TWO
Another problem is the activity into Task Manager.
When the Player set a Record, I start an activity for publisher the score and immage into Facebook... when the player go to back, and I close Activity with Activity.finish, it's set open into task manager.
I've set to Manifest.XML a:
android:clearTaskOnLaunch="true"
But not work when the App it's alredy lauched.
Ecist a mede to destroy Activity from Rasm Manager?
Thanks for your supports.