Hi,
I am having a issue with one of my apps when trying to connect to a product that accepts SSL connections.
I have had a number of issues with the way it connected and thought I had it fixed but keep getting ANR crash reports in my Developer Console for the app.
Erel suggested that I used the treading Library to disconnect the SSL socket connection which I did but kept getting the error coming up in my developer console.
I then thought I would use the thread Library to connect to the product and still keep getting the same error come up in my developer console.
When I run this on my Nexus 5, Nexus 7, Nexus 9 I am not getting this error come up.
The people that are reporting this issue in my developer console seem to be all Samsung devices.
I then used my old Samsung Galaxy S2 to test it out, and it seems to run fine and don't see any errors.
The ANR error I am getting in my developer console is also attached.
I seem to get 2 or 3 ANR reports every few weeks, so it doesn't look everyone is getting these errors, except a few people.
I was in a TeamViewer session (on the PC) with a user that had my app and the app crashed while I was in the session with them, and he said that he opened the app and it tried to connect and said when he tapped on the screen it come up with a message saying if he wanted to wait, or report the error.
When he tapped on 'report' it then submitted a ANR crash which is attached.
Based on the SSL Socket Library I am using (source code to this lib is attached) can anyone see anything wrong in this library that might be causing the error I am getting ?
I am calling a service from the Main Activity, and in that service I am calling a class and in that class I am making the SSL Socket connection.
I can't upload my B4A project since it's a released app and I don't want to publish the source code on the forum.
I am having a issue with one of my apps when trying to connect to a product that accepts SSL connections.
I have had a number of issues with the way it connected and thought I had it fixed but keep getting ANR crash reports in my Developer Console for the app.
Erel suggested that I used the treading Library to disconnect the SSL socket connection which I did but kept getting the error coming up in my developer console.
I then thought I would use the thread Library to connect to the product and still keep getting the same error come up in my developer console.
When I run this on my Nexus 5, Nexus 7, Nexus 9 I am not getting this error come up.
The people that are reporting this issue in my developer console seem to be all Samsung devices.
I then used my old Samsung Galaxy S2 to test it out, and it seems to run fine and don't see any errors.
The ANR error I am getting in my developer console is also attached.
ANR Input dispatching timed out (Waiting to send key event because the focused window has not finished processing all of the input events that were previously delivered to it. Outbound queue length: 0. Wait queue length: 5.)
I seem to get 2 or 3 ANR reports every few weeks, so it doesn't look everyone is getting these errors, except a few people.
I was in a TeamViewer session (on the PC) with a user that had my app and the app crashed while I was in the session with them, and he said that he opened the app and it tried to connect and said when he tapped on the screen it come up with a message saying if he wanted to wait, or report the error.
When he tapped on 'report' it then submitted a ANR crash which is attached.
Based on the SSL Socket Library I am using (source code to this lib is attached) can anyone see anything wrong in this library that might be causing the error I am getting ?
I am calling a service from the Main Activity, and in that service I am calling a class and in that class I am making the SSL Socket connection.
I can't upload my B4A project since it's a released app and I don't want to publish the source code on the forum.