四月工作总结

来源:互联网 发布:十亿韩元知乎 编辑:程序博客网 时间:2024/04/28 16:39

一、            总结

1.  获取驱动相关Log2012-04-20

         驱动需要kmsg log进行查看log。如下命令取得。

adb shell cat /proc/kmsg > kernel.log

2.  内存泄露分析 2012-04-09

 

GLOptionItem.java的成员变量

privatestatic ResourceTexturesCheckOn;

private static ResourceTexturesCheckOff;

被定义为静态,且这两个成员变量在创建时保存了context上下文,在GLOptionItem销毁时,sCheckOn、sCheckOff并没有销毁,而此时的context却已经销毁,出现内存泄露。见如下代码

sCheckOn = new ResourceTexture(context,R.drawable.ic_menuselect_on);

       sCheckOff = new ResourceTexture(context, R.drawable.ic_menuselect_off);

3.  ARGONSPIN-730  [Cellon][File Manager]The picture displayabnormally Level 3 when SDcard memory full. 2012-04-09

[initial condition]
insert one full sdcard with lots of pictures.

[Steps]
1.Enter File Manager
2.Select a picture->tap it to view

[Defect]
view the picture, the number of pictures not right. slide it, the number bemore and show the pictures of other folders.

[Expectation]
the number should show right and only show the pictures of current folder

 

总结:

         1)MediaScannerReceiver中接收不到filemanager发送的intent消息,因此需要filemanager发送对应intent消息(ACTION_MEDIA_SCANNER_SCAN_FILE)即可调用到scanfile扫描更新的文件进行数据库更新等操作。

 

 

4.   当后置从MMS进入videocamera,需要加上toast提示用户需要使用前置摄像头 2012-04-17

         但是在未修改代码情况下,出现fc,之前解决该问题时一切正常。

 

         分析:

         1)对比之前代码,未发现影响到此问题的代码。

         2)其实之前就存在该问题,是死循环。

                   readVideoPreferences中,因为quality设置为“mms”,同时调用readVideoPreferences,出现不断调用该函数。

         Hint text就在oncreate中显示。

 

         解决方案:

1) 针对死循环问题,增加设置quality的条件判断。

2) 在oncreate中显示hint text。

 

5.  用户体验相关

         多些从用户角度考虑,例如第四项。

 

6.  关于老代的提醒

能做到100%,就不要只做到9