Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在使用 SAXParser 时遇到了一些连接问题。有人说解决方案是设置用户权限,但它不起作用。
但是,我使用严格模式代码,问题就解决了。
我想知道为什么它可以修复它们。
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build(); StrictMode.setThreadPolicy(policy);
http://mobile.tutsplus.com/tutorials/android/android-sdk-build-a-simple-sax-parser/ http://www.technotalkative.com/android-sax-parsing-example/
http://mobile.tutsplus.com/tutorials/android/android-sdk-build-a-simple-sax-parser/
http://www.technotalkative.com/android-sax-parsing-example/