Hi there,
I have encountered a problem when I use “network.request”. When I get the HTTP contents using “POST” method, the error occurred. I tried to comment all the code and just run the “network.request”, but the problem still here. I tested with three android devices (4.0, 4.3, 2.3.6). None of them works. But the function works on simulator and iPhone. What should I do to get rid of this problem? Thanks.
The corona version that I am using is 2014.2189a.
Here is the log from the android device:
07-03 04:56:59.800: E/Corona(19149): ERROR: null
07-03 04:56:59.800: W/System.err(19149): java.lang.NullPointerException
07-03 04:56:59.800: W/System.err(19149): at java.util.regex.Matcher.reset(Matcher.java:181)
07-03 04:56:59.810: W/System.err(19149): at java.util.regex.Matcher.<init>(Matcher.java:94)
07-03 04:56:59.810: W/System.err(19149): at java.util.regex.Pattern.matcher(Pattern.java:290)
07-03 04:56:59.810: W/System.err(19149): at network.NetworkRequest.isContentTypeXML(NetworkRequest.java:130)
07-03 04:56:59.810: W/System.err(19149): at network.NetworkRequest.isContentTypeText(NetworkRequest.java:152)
07-03 04:56:59.810: W/System.err(19149): at network.NetworkRequest.access$400(NetworkRequest.java:33)
07-03 04:56:59.810: W/System.err(19149): at network.NetworkRequest$AsyncNetworkRequestRunnable.run(NetworkRequest.java:1567)
07-03 04:56:59.810: W/System.err(19149): at java.lang.Thread.run(Thread.java:856)