Hello Mikko Sir,
The app crashes or freezes when user taps on the screen while data is being fetched from the meter.
I've set a loading overlay screen which prevents any click event on the screen.
The loading overlay appears when reading data from the meter, still, the app crashes and "App isn't responding" popup appears when I accidently touch the screen during data reading.
Although the data fetching process is of some seconds only, yet it is a major blocker in the development of the app.
How do I prevent this thing from happening? Please guide, sir.
Thanks,
Kshitiz
Hello Mikko Sir, I am…
Hello Mikko Sir,
I am expecting a response on the above issue.
Also, why there's this type of error in the logcat everytime interacting with the meter :-
Does the gurux serial library code blocks the UI thread in android while execution?
If so, how can I deal with it?
Please note: I am already executing the gurux code functions using :-
Please guide.
Thanks,
Kshitiz
Hi Kshitiz, You need to…
Hi Kshitiz,
You need to check that you are not pausing the application when you read data from the meter.
The problem with meter reading it that you need to read all data before closing the connection to the meter when the application is closed or paused and this might take time.
Some meters stop responding if the connection is not properly closed and you need to wait until inactivity time has elapsed before reconnecting.
BR,
Mikko
Hello Sir, I'll keep that…
Hello Sir,
I'll keep that in mind.
Thanks,
Kshitiz