I have written a card playing app.
When I tried it on my new Kindle Fire 8 HD it played a strange card.
Debugging it on the PC it played the correct card. Ditto on the emulator, on an old Kindle Fire, and a small smartphone I have.
By using Toast messages I isolated it to a variable being set to zero.
By using divide by the variable statements I found out where this was happening. But it happens in random places even if I re-install the app.
Thinking it might be a 64 bit problem I tried it on a couple of 64 bit phones but it works fine on them.
I have no native code. My APK doesn't even contain a lib folder.
Obviously not a "if = 0" problem as this would occur an all machines.
Any ideas?
Here are the only statements that reference the variable.
double endWeight;
endWeight = 1;
if ((gameType.equals("N") && (score[1] + threeForKrib + handscore(1,false) > 120))
|| (gameType.equals("Q") && (score[1] + threeForKrib + handscore(1,false) > 60)))
endWeight = 20;
ss -= ls * yourReplyWeight * outBias * endWeight;