---
title: "不得不说的叮咚"
author: "buerkai"
date: "2014-04-13T22:55:16Z"
tags: []
categories: ["移动开发"]
slug: "untitled"
draft: false
lastmod: "2014-04-13T23:07:04Z"
id: 2044576
url: "https://buerkai.iteye.com/blog/2044576"
---

最近在360看到一个排行比较高的软件，叮咚，手贱下来安装了一下，耍了一下，不得不吐槽一下。呵呵

首先介绍一下其功能：

1.就一个设置闹钟的玩意

2.网站提供多种闹铃

3.支持新浪微博账号登陆

 

 

1.首先看看首页，

![](http://dl2.iteye.com/upload/attachment/0096/0621/9caf409a-cc98-31e6-afdd-cd6784bab52f.jpg)

 

 

采用传统的底部导航的设计模式，但中间的一个图标让人费解，一个大大的十字架，人家会以为红十字会的来了呢。界面中的那个声音的图标，以为点击了会播放铃声了，结果一点击进入了这个闹铃的详细界面，如下

 

![](http://dl2.iteye.com/upload/attachment/0096/0623/983bbadc-1e3e-3a70-9ed4-5b547adf540d.jpg)

 

此界面，有一点问题，就是暂停按钮，别人以为是在播放音乐的暂停了，改过名字行不？（启用/停用）

 

点击预览

![](http://dl2.iteye.com/upload/attachment/0096/0625/d79742d9-4c29-344a-a1d2-92cf74ad53ee.jpg)  
   
此界面没有什么可说的，只是那个闹铃，每次都要提示一个叮咚，听多了就感觉烦了。建议去掉叮咚的声音。

 

返回到上一个界面，点击编辑

![](http://dl2.iteye.com/upload/attachment/0096/0628/05727ee3-1abb-36ec-8f76-bb779079d250.jpg)  
 

 此界面中规中矩，请往下看

![](http://dl2.iteye.com/upload/attachment/0096/0630/eccd4323-9b89-3e0b-b8e6-86814920840f.jpg)  
 

![](http://dl2.iteye.com/upload/attachment/0096/0632/3fd892b7-484e-3fe5-a349-0955e306b3ef.jpg)  
 

这个2个界面，都采用了系统自带的弹出框来选择设置。方式是可以，但是和整个软件的基调不一样了。

此处为一到败笔。

下面这个更加的败笔了：

![](http://dl2.iteye.com/upload/attachment/0096/0634/0baaa4e7-11be-38c1-8cea-5decce7a0eca.jpg)  
 

此空控件采用的网上流行的WheelView控件，使用的还比较可以。但是选择是否太多了，在日期这栏，把星期几加上去，感觉中文字太多了，难的阅读。建议选择日期的时候，在上面不是有一排白色日期的那一栏更新日期和星期几。把上午和下午去掉，待用24小时制，大家都懂的。这个用户就少了一次选择了。现在这个设置一个闹铃时间，要操作4次。在设计中应减少用户不必要的操作次数。

 

下面看看铃声列表：

![](http://dl2.iteye.com/upload/attachment/0096/0638/5d436a27-e367-3f64-9774-b1281791c62f.jpg)

又见红十字，呵呵，但这次能看懂

![](http://dl2.iteye.com/upload/attachment/0096/0644/8da48c20-f980-3976-8140-c0b722304788.jpg)  
   
![](http://dl2.iteye.com/upload/attachment/0096/0646/18e0f2c7-dea2-302d-9b6c-be98290fa9dd.jpg)

 

 

 

 

从代码角度讲：

 

1.这个是我看到最糟糕的一段代码，不得不吐槽一下

while (true)  
    {  
      while (true)  
      {  
        while (true)  
        {  
          while (true)  
          {  
            while (true)  
            {  
              while (true)  
              {  
                while (true)  
                {  
                  while (true)  
                  {  
                    while (true)  
                    {  
                      while (true)  
                      {  
                        while (true)  
                        {  
                          while (true)  
                          {  
                            while (true)  
                            {  
                              while (true)  
                              {  
                                while (true)  
                                {  
                                  while (true)  
                                  {  
                                    while (true)  
                                    {  
                                      localCheckBox.setChecked(bool);  
                                      ((RelativeLayout)findViewById(2131427483)).setOnClickListener(new r(this));  
                                      ((RelativeLayout)findViewById(2131427734)).setOnClickListener(new y(this));  
                                      ((RelativeLayout)findViewById(2131427738)).setOnClickListener(new ab(this));  
                                      this.d.setOnClickListener(new ae(this));  
                                      ((Button)findViewById(2131427744)).setOnClickListener(new af(this));  
                                      overridePendingTransition(2130968582, 2130968581);  
                                      return;  
                                      if (arrayOfp\[j].a != i)  
                                        break;  
                                      this.g = arrayOfp\[j];  
                                    }  
                                    ++j;  
                                  }  
                                  label755: localSimpleDateFormat = new SimpleDateFormat("HH:mm");  
                                }  
                                this.b.setText("准时");  
                              }  
                              this.b.setText("5分钟前");  
                            }  
                            this.b.setText("15分钟前");  
                          }  
                          this.b.setText("30分钟前");  
                        }  
                        this.b.setText("1小时前");  
                      }  
                      this.c.setText("每天");  
                    }  
                    this.c.setText("每月");  
                  }  
                  this.c.setText("每周");  
                }  
                this.c.setText("每年");  
              }  
              this.c.setText("不重复");  
            }  
            this.c.setText("休息日");  
          }  
          this.c.setText("工作日");  
        }

，他妈的这样多的while循环，你写的累不？

 

代码中有很多地方采用while循环嵌套，也许开发此程序的程序员喜欢用while多层循环吧

 

 

下面说说此程序的亮点：一句话 麻雀虽小五脏俱全

1.个人中心简单，就一个登录

2.使用第三方登录,没有自己的用户登录注册，修改密码。这个应用也不需要维护用户

3.有后台服务下载功能以及提示功能

4.log日志都没有关，到处都在用原始的Log

5.代码中到处都在操作sqlite，还在那种原始的操作sqlite,对重要数据没有做相关加密处理。

7.手机开机自动启动后台服务 android.intent.action.BOOT\_COMPLETED

8.更换主题，根本就是换了一张图，没有主题的效果

9.妹子图比较多，呵呵大家都懂的

10.用户评论，根本就是灌水的

 11.在代码中很多处还在原始的操作网络，这写代码累不？

 

 

总的来时，做的中规中矩

用了之后，果断卸载了..................