Hello,
I have a very strange problem. So far I have created several apps that use network httpclient in services and activities. This has worked fine in all projects without any problems.
Just now I started a new app. I created an activity with a button that starts a service. This service should get some website from the internet. Now I get a "NetworkOnMainThreadExepption" error (when I want to log a string containing the response string).
I tried a different app that has the exact same mechanisms and it worked fine. Just suddenly this one new app does not work.
How is this possible?!?!?
I use the exact same setup for everything, its just a new app. Anyone got any ideas of why this is occurring suddenly? One thing I noticed is that when I installed the app the first time I got a strange notice from google saying it would test apps for harmful content. What does that mean?
Thanks
Regards
PS: I know about the httputils and as mentioned using the httpclient directly as worked fantastically so far, so I will not switch.
I have a very strange problem. So far I have created several apps that use network httpclient in services and activities. This has worked fine in all projects without any problems.
Just now I started a new app. I created an activity with a button that starts a service. This service should get some website from the internet. Now I get a "NetworkOnMainThreadExepption" error (when I want to log a string containing the response string).
I tried a different app that has the exact same mechanisms and it worked fine. Just suddenly this one new app does not work.
How is this possible?!?!?
I use the exact same setup for everything, its just a new app. Anyone got any ideas of why this is occurring suddenly? One thing I noticed is that when I installed the app the first time I got a strange notice from google saying it would test apps for harmful content. What does that mean?
Thanks
Regards
PS: I know about the httputils and as mentioned using the httpclient directly as worked fantastically so far, so I will not switch.