[Solved] HTTP POST call from Android [duplicate]

[ad_1]

The message says: NetworkOnMainThreadException. In Android applications, one may not execute network code on the Main thread. This means you have to create a separate thread for your code. This can by done via an implementation of the AsyncTaskclass. Look at the documentation

[ad_2]

solved HTTP POST call from Android [duplicate]