Android Socket Connection fail

前端 未结 2 567
深忆病人
深忆病人 2021-01-17 01:08

I am trying to establish a connection between Android Client and C# Server .. My server is working fine except the android client is not working even after adding internet c

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-17 01:40

    Check this link here, it is because since latest version of API, it is forbidden to perform networking operation called by the main thread, so you need to create another (background) thread to perform it instead.

提交回复
热议问题