What is the difference between httpconnection on J2ME and HttpUrlConnection on Android (http error 401)

前端 未结 2 822
小鲜肉
小鲜肉 2021-02-09 15:04

I connect to two servers (PROD is https, test server is http) on my applicaitons.

on J2ME: I can connect to this two servers without a problem. on Android I can\'t conn

相关标签:
2条回答
  • 2021-02-09 15:19

    I solved this problem. I use ip adress instead of link. Server was Sharepoint server so, It tries to connect to directly sharepoint server, so server wants Authentication:) Dont use directly ip:)

    0 讨论(0)
  • 2021-02-09 15:26

    If you're using pre-2.3 devices, HTTPUrlConnection has known issues

    http://android-developers.blogspot.com/2011/09/androids-http-clients.html

    0 讨论(0)
提交回复
热议问题