Android Honeycomb: NetworkOnMainThreadException even when using AsyncTask and no strict mode?

前端 未结 2 1636
灰色年华
灰色年华 2020-12-09 04:38

I run into a NetworkOnMainThreadException with my Android 3.0 app. Searching for a solution I found this, but if I understand this correctly, default setting would be that t

2条回答
  •  孤街浪徒
    2020-12-09 05:01

    StrictMode is turned on by default in Honeycomb.

    See say link specifically penaltyDeathOnNetwork(). I ran into a similar problem.

提交回复
热议问题