⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mmidlet.java

📁 牛人写的java版的中国移动飞信的源代码
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
            catch(IOException _ex) { }
        }
        if(httpconnection != null)
        {
            try
            {
                httpconnection.close();
            }
            catch(IOException _ex) { }
        }
        break MISSING_BLOCK_LABEL_364;
        Exception exception;
        exception;
        if(datainputstream != null)
        {
            try
            {
                datainputstream.close();
            }
            catch(IOException _ex) { }
        }
        if(dataoutputstream != null)
        {
            try
            {
                dataoutputstream.close();
            }
            catch(IOException _ex) { }
        }
        if(httpconnection != null)
        {
            try
            {
                httpconnection.close();
            }
            catch(IOException _ex) { }
        }
        throw exception;
        if(Z)
        {
            a(!y, s1);
            continue; /* Loop/switch isn't completed */
        }
        if(aa)
        {
            a(!y, s1);
        } else
        {
            X = 3;
            return true;
        }
        i1--;
          goto _L3
_L2:
        return false;
    }

    private static void b(byte abyte0[])
        throws UnsupportedEncodingException
    {
        String s1;
        c = (s1 = new String(abyte0, "UTF-8")).substring(s1.indexOf("<Uri>") + 5, s1.indexOf("</Uri>")).trim();
    }

    private void a(boolean flag, String s1)
    {
        y = flag;
        if(flag)
        {
            int i1;
            if((i1 = s1.indexOf('/', 8)) == -1)
            {
                i1 = s1.length();
            }
            d = s1.substring(7, i1);
            c = "http://10.0.0.172:80" + s1.substring(i1);
        } else
        {
            c = s1;
        }
    }

    private void n()
    {
        if(J == null)
        {
            J = new Form("Fetion");
            c("", "\u9A6C\u4E0A\u767B\u5F55");
            c("", "\u7ACB\u5373\u52A0\u5165");
            c("", "\u6211\u8981\u5B9A\u8D2D");
            J.append(Y);
            J.addCommand(e.f);
            J.addCommand(e.c);
            J.setCommandListener(this);
        }
        B.setCurrent(J);
    }

    protected void destroyApp(boolean flag)
        throws MIDletStateChangeException
    {
        if(ak)
        {
            u();
        }
    }

    protected void pauseApp()
    {
    }

    protected void startApp()
        throws MIDletStateChangeException
    {
    }

    public final void a(String s1, Displayable displayable)
    {
        Form form;
        (form = new Form("\u8BF7\u7B49\u5F85")).setCommandListener(this);
        if(displayable != null)
        {
            form.addCommand(e.d);
        }
        form.append(s1);
        form.append(new Gauge("", false, -1, 2));
        a(displayable);
        B.setCurrent(form);
    }

    public final void a(String s1, Displayable displayable, Command acommand[])
    {
        Form form;
        (form = new Form("\u63D0\u793A")).setCommandListener(this);
        for(int i1 = 0; i1 < acommand.length; i1++)
        {
            form.addCommand(acommand[i1]);
        }

        form.append(new StringItem("", s1));
        a(displayable);
        B.setCurrent(form);
    }

    public final void b(String s1, Displayable displayable)
    {
        Form form;
        (form = new Form("  ")).addCommand(I);
        form.setCommandListener(this);
        form.append(s1);
        if(displayable == null) goto _L2; else goto _L1
_L1:
        this;
        displayable;
          goto _L3
_L2:
        this;
        B.getCurrent();
_L3:
        a();
        B.setCurrent(form);
        return;
    }

    public void commandAction(Command command, Displayable displayable)
    {
        String s2;
        Object obj;
        Object obj2;
        if(command == I)
        {
            b(displayable);
            return;
        }
        if(command == e.f)
        {
            if(ay)
            {
                notifyDestroyed();
                return;
            } else
            {
                f(displayable);
                return;
            }
        }
        String s1 = command.getLabel();
        s2 = "";
        if(command == List.SELECT_COMMAND || (displayable instanceof List) && command == e.a)
        {
            s2 = ((List) (obj = (List)displayable)).getString(((List) (obj)).getSelectedIndex());
        }
        obj = displayable.getTitle();
        if("\u4E1A\u52A1\u9000\u8BA2".equals(s1) || "\u4E1A\u52A1\u9000\u8BA2".equals(s2))
        {
            d(displayable);
            return;
        }
        if(command == e.e || command == e.d)
        {
            if("\u786E\u8BA4\u6DFB\u52A0\u597D\u53CB".equals(obj))
            {
                n.addElement(c(displayable));
                return;
            }
            if("\u5347\u7EA7\u7A0B\u5E8F".equals(obj))
            {
                if(aw)
                {
                    g();
                    return;
                } else
                {
                    notifyDestroyed();
                    return;
                }
            }
            if("\u7F16\u8F91\u5E38\u7528\u8BED".equals(obj) && (displayable instanceof List))
            {
                am = an;
                an = null;
                b(displayable);
                return;
            }
            if("\u8BF7\u7B49\u5F85".equals(obj))
            {
                notifyDestroyed();
                return;
            } else
            {
                b(displayable);
                return;
            }
        }
        if(command == e.h)
        {
            e();
            return;
        }
        if(command == F)
        {
            A();
            return;
        }
        if(command == E)
        {
            o();
            return;
        }
        if(command != G)
        {
            break MISSING_BLOCK_LABEL_851;
        }
        if("\u672C\u4EBA\u8D44\u6599".equals(obj))
        {
            Form form;
            String s4 = ((TextField)(form = (Form)displayable).get(0)).getString().trim();
            String s8 = ((TextField)form.get(1)).getString();
            if(s4 == null || s4.length() == 0)
            {
                b("\u6635\u79F0\u4E0D\u80FD\u4E3A\u7A7A\u3002", displayable);
                return;
            }
            k.n = ((TextField)form.get(4)).getString();
            k.a(P.getString(P.getSelectedIndex()));
            Date date1;
            if((date1 = Q.getDate()) != null)
            {
                if(a(date1) >= 99 || a(date1) < 2)
                {
                    Calendar calendar2;
                    (calendar2 = Calendar.getInstance()).get(5);
                    String s13 = "" + calendar2.get(1) + '\u5E74' + (calendar2.get(2) + 1) + '\u6708' + calendar2.get(5) + '\u65E5';
                    calendar2.setTime(date1);
                    String s14 = "" + calendar2.get(1) + '\u5E74' + (calendar2.get(2) + 1) + '\u6708' + calendar2.get(5) + '\u65E5';
                    b("\u5E74\u9F84\u533A\u95F4\u5E94\u8BE5\u57282-99\u4E4B\u95F4\u3002\n\u4ECA\u5929\uFF1A" + s13 + "\uFF0C\n" + "\u60A8\u8F93\u5165\uFF1A" + s14 + "\u3002", ((Displayable) (null)));
                    return;
                }
                Calendar calendar3;
                (calendar3 = Calendar.getInstance()).setTime(date1);
                k.q = "" + calendar3.get(1) + '-' + (calendar3.get(2) + 1) + '-' + calendar3.get(5);
            }
            k.j = s4;
            k.k = s8;
            a(k);
            b(displayable);
            return;
        }
        if(!"\u67E5\u770B\u8D44\u6599".equals(obj))
        {
            break MISSING_BLOCK_LABEL_851;
        }
        Form form1;
        obj2 = ((TextField)(form1 = (Form)displayable).get(1)).getString().trim();
        if(T.b != 1 || !T.e.equals(obj2)) goto _L2; else goto _L1
_L2:
        a(((String) (obj2)), T);
        T.e = ((String) (obj2));
        if(obj2 != null && ((String) (obj2)).length() != 0) goto _L4; else goto _L3
_L3:
        T;
        0;
          goto _L5
_L4:
        T;
        true;
_L5:
        b;
_L1:
        b(displayable);
        return;
        Object obj1;
        if(displayable == ah)
        {
            if(s2.equals("\u6CE8\u9500"))
            {
                w();
                al = false;
                return;
            }
            if(s2.equals("\u5E2E\u52A9"))
            {
                d();
                return;
            }
            if(s2.equals("\u9009\u9879"))
            {
                t();
                return;
            }
            if(s2.equals("\u6211\u7684\u72B6\u6001"))
            {
                b();
                return;
            }
            if(s2.equals("\u76F4\u63A5\u6DFB\u52A0\u597D\u53CB"))
            {
                p();
                return;
            }
            if(s2.equals("\u672C\u4EBA\u8D44\u6599"))
            {
                a(k, "\u672C\u4EBA\u8D44\u6599");
                return;
            }
            if(s2.equals("\u9000\u51FA"))
            {
                commandAction(e.f, ((Displayable) (ah)));
                return;
            }
            break MISSING_BLOCK_LABEL_3484;
        }
        if(displayable == L)
        {
            if(command.getCommandType() == 4)
            {
                k.s = "400";
                k.r = "300";
                as = 0;
                if(q != null)
                {
                    B();
                    k.c.b(k);
                }
            } else
            {
                k.s = "0";
                k.r = "0";
                as = 6;
            }
            a("\u6B63\u5728\u767B\u5F55\uFF0C\u8BF7\u7A0D\u5019...", L);
            if(q == null)
            {
                c = c.substring(0, c.indexOf("?guid"));
                k.c.e();
                return;
            }
            break MISSING_BLOCK_LABEL_3484;
        }
        if(displayable == J)
        {
            if(command == e.c)
            {
                K = new Form("\u670D\u52A1\u4ECB\u7ECD");
                K.append(ac);
                K.addCommand(e.c);
                K.addCommand(e.f);
                K.setCommandListener(this);
                a(B.getCurrent());
                B.setCurrent(K);
                return;
            }
            break MISSING_BLOCK_LABEL_3484;
        }
        if(displayable == K)
        {
            if(command == e.c)
            {
                a("\u6B63\u5728\u5F00\u901A\u670D\u52A1...", ((Displayable) (null)));
                k.c.b();
                return;
            }
            break MISSING_BLOCK_LABEL_3484;
        }
        if(displayable == aj)
        {
            c c1;
            if(s2.equals("\u67E5\u770B\u65B0\u6D88\u606F"))
            {
                if((c1 = (c)V.get(T.i)) != null)
                {
                    c1.a(B);
                    return;
                } else
                {
                    aj.delete(aj.getSelectedIndex());
                    return;
                }
            }
            if(s2.equals("\u53D1\u9001\u6D88\u606F"))
            {
                commandAction(e.h, displayable);
                return;
            }
            if(s2.equals("\u6253\u5F00"))
            {
                U.a(B);
                return;
            }
            if(s2.equals("\u5173\u95ED"))
            {
                a(U);
                b(displayable);
                return;
            }
            if(s2.equals("\u67E5\u770B\u8D44\u6599"))
            {
                b(displayable);
                a(T.i, true);
                return;
            }
            if(s2.equals("\u5220\u9664"))
            {
                if(g(T.i))
                {
                    b(T);
                    b(displayable);
                    if(o.isEmpty())
                    {
                        return;
                    }
                } else
                {
                    q();

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -