Solution 1 :
This is kinda weird. After weeks of debugging, I found that the issue was in a while loop inside a thread!!
There is a thread started on the launch of the fragment and the thread has a while loop which keeps on checking the value of a variable. Adding sleep(1000) inside the while loop solved this issue.
I still wonder how was this not observed in debug build. If anybody has any knowledge on it, please comment here.
Thanks again.
Problem :
I am facing a weird issue with my Android apk build.
The issue is that, it works silky smooth in the debug build but the moment I try signed release build, it is lagging.
How can exactly the same code on debug and release build make this difference?
I tried to remove proguard also but didn’t help.
Comments
Comment posted by halfer
(Aside: please do not add voting advice to questions. Downvoting is not generally an indicator that the voter does not know the answer. In general it is an indicator that the voter felt that the question was not researched, is not clear, is not useful, or needed edit work that should not have been necessary. There may be other reasons too).