I have this strange problem where the program freezes on a touch event while executing simple setlayoutanimated animations:
however after trying to debug this is what I have observed
1. It happens only on real devices and not on emulator (emulator android version 7.1)
2. Program passes over the same code multiple times but does not freeze first few times.
4. Does not hang in debug mode
3. There is no error or crash. It just causes the running application to go into "App is not responding - close - wait".
I tried putting multiple log statements to check where exactly does the code stop responding, and found that it pauses on the beginning of a "If then" statement which is as simple as if moveright then (moveright is boolean variable)
I would appreciate if experts here can guide me on how else can it be debugged or what else can be done to find out the cause of freezing.
however after trying to debug this is what I have observed
1. It happens only on real devices and not on emulator (emulator android version 7.1)
2. Program passes over the same code multiple times but does not freeze first few times.
4. Does not hang in debug mode
3. There is no error or crash. It just causes the running application to go into "App is not responding - close - wait".
I tried putting multiple log statements to check where exactly does the code stop responding, and found that it pauses on the beginning of a "If then" statement which is as simple as if moveright then (moveright is boolean variable)
I would appreciate if experts here can guide me on how else can it be debugged or what else can be done to find out the cause of freezing.