Android(安卓)各种杀脑细胞的问题集合
1. EditText KeyBoard, 遮挡问题(集中表现为: 发送消息软件如何实现? 保证Title等不被软键盘吃掉)
http://unicorn25.iteye.com/blog/916504
如果ListView出现, 又需要这样解决了:
http://www.oschina.net/question/163910_27133
2. Android 程序如何完美退出(n个Activity出现的时候, 程序无法退出)
N多错误的解决方案:
a. 什么System.exit(),
b. 用static变量保存所有的Acitivity, 然后退出时销毁【按HOME键切换到其它程序时, static变量很容易被销毁】
c. 发送关闭的Intent. 这个是相当脑残的方法. 某些Acitiy还没有创建, 这个时候要去发送一个intent去创建, 简直多此一举.
利用Application 类去做!
0 down vote | Not recommened but still you can use this. Better go with this solution in case you need to quit the app. According to me the best solution is finish every activity in your app like below. step1) maintain a static variable in mainactivity say. step2) on click event of an button make this variable to true. step3) And in every activity of your application have onrestart method as below.. |
3. 中文无法导入到SDCard或者导出来
如何向Android模拟器中导入含有中文名称的文件
索性将UltraISO也传到CSDN下载.
更多相关文章
- android如何完全退出应用程序
- Android(安卓)第一个OpenGL ES程序
- 全局捕获异常,并输出到日志文件
- Android(安卓)NDK Log信息打印
- google Android编译本地C++程序方法
- 【Android】原生安装和卸载应用
- 【Android】结束活动退出程序的方法
- 安卓开发:学生信息管理小程序
- Android(安卓)Handler的使用!!!