I've been testing the attached app for user abuse ie continually hitting the 'Previous' label before the current results have been retrieved/loaded.
The way this is supposed to work is the current week's lottery results are retrieved and displayed on the Main Activity when the app is loaded. Then by clicking 'Previous' older results will be retrieved and displayed.
This works ok if you wait for each set of results to be displayed and maybe up to a dozen times or so if you hit the 'Previous' label fairly rapidly. But at some point the app fails with the Force Close/Wait display.
I added Enabled = False to the labels that are clickable on the Activity, when there's a request for another set of data, thinking that would stop a new request being created but that didn't seem to make any difference.
This is part of the log (in this case we got to 32 sets of data before it collapsed):
Previous key clicked - Drawsubscript = 31
dispatchTouch::touch event's action is 0
Delivering touch to current input target: action: 0, channel '40e64dc0 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
Starting Job: Job3
** Service (httputilsservice) Create **
** Service (httputilsservice) Start **
dispatchTouch::touch event's action is 1
Delivering touch to current input target: action: 1, channel '40e64dc0 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
26997
dispatchTouch::touch event's action is 0
Delivering touch to current input target: action: 0, channel '40e64dc0 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
Sending finished signal for input channel '40e64dc0 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (client)' since it is being unregistered while an input message is still in progress.
** Service (httputilsservice) Destroy **
Ignoring finish signal on channel that is no longer registered.
GC_CONCURRENT freed 479K, 51% free 3395K/6791K, external 516K/1004K, paused 15ms+3ms
dispatchTouch::touch event's action is 1
dispatchTouch::touch event's action is 0
Delivering touch to current input target: action: 0, channel '4051a788 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
dispatchTouch::touch event's action is 1
Delivering touch to current input target: action: 1, channel '4051a788 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
Previous key clicked - Drawsubscript = 32
Starting Job: Job3
** Service (httputilsservice) Create **
dispatchTouch::touch event's action is 0
Delivering touch to current input target: action: 0, channel '4058bf70 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
dispatchTouch::touch event's action is 1
Delivering touch to current input target: action: 1, channel '4058bf70 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
dispatchTouch::touch event's action is 0
Delivering touch to current input target: action: 0, channel '4058bf70 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
dispatchTouch::touch event's action is 1
Delivering touch to current input target: action: 1, channel '4058bf70 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
dispatchTouch::touch event's action is 0
Delivering touch to current input target: action: 0, channel '4058bf70 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
dispatchTouch::touch event's action is 1
Delivering touch to current input target: action: 1, channel '4058bf70 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
dispatchTouch::touch event's action is 0
Delivering touch to current input target: action: 0, channel '4058bf70 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
dispatchTouch::touch event's action is 1
Delivering touch to current input target: action: 1, channel '4058bf70 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
dispatchTouch::touch event's action is 0
Delivering touch to current input target: action: 0, channel '4058bf70 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
dispatchTouch::touch event's action is 1
Delivering touch to current input target: action: 1, channel '4058bf70 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
It looks like it's looping on dispatchTouch 1 then 0.
Any help would be greatly appreciated.
Thanks,
Chris
The way this is supposed to work is the current week's lottery results are retrieved and displayed on the Main Activity when the app is loaded. Then by clicking 'Previous' older results will be retrieved and displayed.
This works ok if you wait for each set of results to be displayed and maybe up to a dozen times or so if you hit the 'Previous' label fairly rapidly. But at some point the app fails with the Force Close/Wait display.
I added Enabled = False to the labels that are clickable on the Activity, when there's a request for another set of data, thinking that would stop a new request being created but that didn't seem to make any difference.
This is part of the log (in this case we got to 32 sets of data before it collapsed):
Previous key clicked - Drawsubscript = 31
dispatchTouch::touch event's action is 0
Delivering touch to current input target: action: 0, channel '40e64dc0 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
Starting Job: Job3
** Service (httputilsservice) Create **
** Service (httputilsservice) Start **
dispatchTouch::touch event's action is 1
Delivering touch to current input target: action: 1, channel '40e64dc0 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
26997
dispatchTouch::touch event's action is 0
Delivering touch to current input target: action: 0, channel '40e64dc0 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
Sending finished signal for input channel '40e64dc0 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (client)' since it is being unregistered while an input message is still in progress.
** Service (httputilsservice) Destroy **
Ignoring finish signal on channel that is no longer registered.
GC_CONCURRENT freed 479K, 51% free 3395K/6791K, external 516K/1004K, paused 15ms+3ms
dispatchTouch::touch event's action is 1
dispatchTouch::touch event's action is 0
Delivering touch to current input target: action: 0, channel '4051a788 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
dispatchTouch::touch event's action is 1
Delivering touch to current input target: action: 1, channel '4051a788 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
Previous key clicked - Drawsubscript = 32
Starting Job: Job3
** Service (httputilsservice) Create **
dispatchTouch::touch event's action is 0
Delivering touch to current input target: action: 0, channel '4058bf70 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
dispatchTouch::touch event's action is 1
Delivering touch to current input target: action: 1, channel '4058bf70 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
dispatchTouch::touch event's action is 0
Delivering touch to current input target: action: 0, channel '4058bf70 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
dispatchTouch::touch event's action is 1
Delivering touch to current input target: action: 1, channel '4058bf70 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
dispatchTouch::touch event's action is 0
Delivering touch to current input target: action: 0, channel '4058bf70 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
dispatchTouch::touch event's action is 1
Delivering touch to current input target: action: 1, channel '4058bf70 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
dispatchTouch::touch event's action is 0
Delivering touch to current input target: action: 0, channel '4058bf70 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
dispatchTouch::touch event's action is 1
Delivering touch to current input target: action: 1, channel '4058bf70 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
dispatchTouch::touch event's action is 0
Delivering touch to current input target: action: 0, channel '4058bf70 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
dispatchTouch::touch event's action is 1
Delivering touch to current input target: action: 1, channel '4058bf70 bowtieneck.uklottochecker/bowtieneck.uklottochecker.main (server)'
It looks like it's looping on dispatchTouch 1 then 0.
Any help would be greatly appreciated.
Thanks,
Chris