Comments (4)
遇到同样的错误
from androidimagepicker.
+1
from androidimagepicker.
Fragment可能会在后台被回收,再回来的时候,试图去冲创建实例,所以,Fragment必须是public的外部类、或者是puclic的静态内部类,而且必须有默认的构造方法,与Activity一样,因为系统再恢复现场的时候是通过反射重新创建Fragment的实例的。
from androidimagepicker.
我这边把ImagePreviewFragment.SinglePreviewFragment改为public static(需要同时修改里面的变量,我都改为内部类的变量了),然后就可以正常运行了。
from androidimagepicker.
Related Issues (10)
- Possibility of Image Compression?
- 拍完照去裁剪,裁剪界面无法加载照片。照片地址是有的。 HOT 1
- 引用错误 HOT 1
- 感谢作者分享!
- notifyImageCropComplete中是否需要清空mImageCropCompleteListeners呢?
- 遇到的两个问题及其解决方法
- Fragment must be a public static class to be properly recreated from instance state. HOT 2
- 提一个Bug,正在查看这个问题并修复 HOT 1
- Option to change camera icon color?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from androidimagepicker.