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.

publicstatic isQuit =false;

step2) on click event of an button make this variable to true.

mainactivity.isQuit =true;

step3) And in every activity of your application have onrestart method as below..

@Override    protectedvoid onRestart(){     // TODO Auto-generated method stub     super.onRestart();     if(mainactivity.isQuit)       finish();   }

3. 中文无法导入到SDCard或者导出来

如何向Android模拟器中导入含有中文名称的文件

索性将UltraISO也传到CSDN下载.

更多相关文章

  1. Android 应用程序的结构
  2. Android应用程序的调试方法
  3. android 创建数字签名应用程序
  4. android SDK 环境变量的设置
  5. 如果,编译Android时新添加的应用程序没有被编译进image
  6. Netty实战(三)Unity程序采用netty和其他netty程序通信
  7. 关于在Android设置全局变量随时获取context
  8. Android 程序执行Linux命令的解决方法及注意事项

随机推荐

  1. Android(安卓)- 延迟执行PostDelayed
  2. Android之WindowManager实现悬浮按钮
  3. View的测量
  4. 第一行代码(三)
  5. android日记-
  6. Android无视屏幕解锁保护界面
  7. Android(安卓)中TextView中跑马灯效果的
  8. Android(安卓)display架构分析(三)
  9. 关于Android(安卓)列表多布局的那些事
  10. Android(安卓)纯代码加入点击效果