========= 2 fragment小结 ???? ======== 1 fragment:java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState 2.在使用Fragment保存参数的时候,可能是因为需要保存的参数比较大或者比较多,这种情况下页会引起异常.比如代码 Bundle b = new Bundle(); b.putParcelable("bitmap&…
10-16 18:28:39.549: W/System.err(4950): org.json.JSONException: End of input at character 0 of 10-16 18:28:39.559: W/System.err(4950): at org.json.JSONTokener.syntaxError(JSONTokener.java:450)10-16 18:28:39.569: W/System.err(4950): at org.json.JSONTo…
java.lang.SecurityException: Not allowed to bind to service I app中加了百度定位功能,大部分手机测试没问题,但有部分手机会定位失败,提示如下:java.lang.SecurityException: Not allowed to bind to service Intent { act=com.baidu.location.f } 在配置文件中我是这样写的: android:enabled="true"android:pe…
=========== 1 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.zgan.community/com.zgan.community.activity.CommunityPolicitalDetailActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class <unknow…
当你的项目出现以下红色提示的时候,要小心了, 因为很可能因为这个错误而导致解释不通的异常出现. Found 2 versions of android-support-v4.jar in the dependency list,but not all the versions are identical (check is based on SHA-1 only at this time). 这个错误是因为导入的某个jar包版本跟第三方库的jar版本不一致造成的. 最常见的是android-su…
========== 4 如何解决java.lang.IllegalArgumentException: pointerIndex out of range? 今天遇到一个bug:java.lang.IllegalArgumentException: pointerIndex out of range at android.view.MotionEvent.nativeGetAxisValue(Native Method) at android.view.MotionEvent.getX…