📄 w.java
字号:
// pica客户端J2ME源码,100%可运行可修改,J2ME逆向工程经典作品
// 作者:fangji999
// QQ:57979471 Email:fangji999@163.com
// 博客:http://hi.baidu.com/ccall_net
// QQ群:51719370
// 如用此源码重新改写的软件或转载,请保留本人联系方式,作品原创作者
package pica;
import java.io.*;
import java.util.*;
import javax.microedition.lcdui.*;
import javax.microedition.rms.RecordStore;
import utils.b;
// Referenced classes of package pica:
// Pica, a, aa, ac,
// ae, ah, c, d,
// e, f, h, i,
// j, k, l, m,
// n, o, p, q,
// r, s, t, v,
// y, z, ab
//主要发送消息处理类
public final class w extends Thread
{
private static f o;
private static f p;
private static f q;
public static f a;
private static f r;
private static f s;
private static k t = new k(null, null, (byte)5);
private static String u;
private static String vs;//private static String v;
private static String ws = "";//private static String w = "";
private static String x;
public static p b;
private static boolean y;
private static long z;
private static boolean A;
private static List B;
public static String c;
public static String d;
public static String e;
private static int C;
private static m D;
private static int E;
public static String fs = "disp1.mypica.com:2246";
//public static String f = "disp1.mypica.com:2246";
private static boolean F = true;
public static String g = null;
private static String G = null;
private static String H = null;
private static String I = "";
private static String J = "";
public static int h = 0;
public static int i = 1;
public static int j = 0;
public static boolean kbb = true;//public static boolean k = true;
public static String ls = "34039588";//public static String l = "";
public static String m = "111111";//public static String m = "";
public static String n = "adv.pica.com:8082";
public w()
{
}
public static void a(String s1)
{
x = s1;
d d1;
(d1 = new d("修改", (byte)1)).a(new k("原分组名: " + s1, null, (byte)1));
o = new f("新分组名: ", null, "", 10, 0, v.a - 15, (byte)0, Pica.l);
d1.a(o);
d1.a();
Pica.l.b(d1);
}
public static void a()
{
d d1 = new d("系统设置", (byte)2);
o = new f(" 信息提示音", kbb, Pica.l);
d1.a(o);
d1.a(t);
String as[] = {
"每次询问", "全部通过", "全部拒绝"
};
p = new f("验证请求:", null, null, as, null, null, (Pica.r + 3) * 5, Pica.r + 5, (byte)0, Pica.l);
p.a(j, true);
d1.a(p);
d1.a(t);
String as1[] = {
"快速模式", "普通模式", "省电模式", "智能模式"
};
q = new f("连接模式:", null, null, as1, null, null, (Pica.r + 3) * 5, Pica.r + 5, (byte)0, Pica.l);
q.a(Pica.aH - 1, true);
d1.a(q);
String as2[] = {
"玫瑰红", "玄铁黑", "桃花粉", "钻石蓝"
};
a = new f("界面颜色:", null, null, as2, null, null, (Pica.r + 3) * 5, Pica.r + 5, (byte)0, Pica.l);
a.a(Pica.l.o, true);
d1.a(a);
d1.a();
Pica.l.b(d1);
}
public static void b()
{
Pica.af = false;
String s1;
int i1 = (s1 = (String)Pica.ag.elementAt(0)).indexOf("#");
u = s1.substring(0, i1);
d d1 = new d("验证请求", (byte)3);
String as[] = {
"同意并加为好友", "同意", "拒绝"
};
d1.a(new k("是否同意用户" + a(u, '@') + "将你加为好友?", null, (byte)1));
o = new f("", null, null, as, null, null, (Pica.r + 3) * 8, Pica.r + 5, (byte)0, Pica.l);
o.a(0, true);
d1.a(o);
d1.a(t);
d1.a(new k("验证信息:" + s1.substring(i1 + 1), null, (byte)1));
d1.a();
Pica.l.b(d1);
}
public static void c()
{
d d1;
(d1 = new d("我的状态", (byte)4)).a(new k(utils.b.a(new Date()), null, (byte)1));
d1.a(t);
d1.a(new k("昵称:" + Pica.N + " (" + ls + ")", null, (byte)1));
d1.a(t);
if (Pica.an > 0)
{
z z1;
(z1 = new z(Pica.s.getHeight(), Pica.s.getHeight(), 1, "")).a = a(Pica.an);
d1.a(z1);
d1.a(t);
}
d1.a(new k(Pica.ao, null, (byte)1));
d1.a(t);
String as[] = {
"上线", "忙碌", "隐身", "离开", "下线"
};
o = new f("我的状态: ", null, null, as, null, null, (Pica.r + 3) * 3, Pica.r + 5, (byte)0, Pica.l);
byte byte0 = 0;
switch (Pica.H)
{
case 0: // '\0'
byte0 = 0;
break;
case 1: // '\001'
byte0 = 3;
break;
case 2: // '\002'
byte0 = 1;
break;
case 100: // 'd'
byte0 = 2;
break;
}
o.a(byte0, true);
d1.a(o);
d1.a(t);
d1.a(new k("性别: " + Pica.aj + "\n", null, (byte)1));
d1.a(t);
d1.a(new k("地区: " + Pica.ak + "\n", null, (byte)1));
d1.a(t);
d1.a(new k("年龄: " + Pica.ai + "\n", null, (byte)1));
d1.a(t);
d1.a(new k("个人说明: " + Pica.al + "\n", null, (byte)1));
d1.a();
Pica.l.b(d1);
}
public static void d()
{
d d1 = new d("连接QQ", (byte)5);
o = new f("QQ号码: ", null, Pica.az, 16, 2, v.a - 15, (byte)0, Pica.l);
d1.a(o);
p = new f("QQ密码: ", null, Pica.aA, 32, 0x10004, v.a - 15, (byte)0, Pica.l);
d1.a(p);
q = new f(" 隐身登录", Pica.aE, Pica.l);
d1.a(q);
d1.a(t);
a = new f(" 接收群消息", Pica.aD, Pica.l);
d1.a(a);
d1.a();
Pica.l.b(d1);
}
public static void e()
{
if (F)
{
F = false;
System.out.println("Pica.aM:"+Pica.aM);
h = Pica.aM.equals("YES") ? 0 : -1;
}
ac();
Pica.aQ = true;
d d1 = new d("登录", (byte)6);
z z1;
(z1 = new z(Pica.y.getWidth(), Pica.y.getHeight(), 1, "")).a = Pica.y;
z1.u = Pica.l.getWidth() / 2 - 48;
d1.a(z1);
d1.a(t);
o = new f("PICA号码: ", null, ls, 16, 2, 80, (byte)0, Pica.l);
d1.a(o);
d1.a(t);
p = new f("PICA密码: ", null, m, 32, 0x10004, 80, (byte)0, Pica.l);
d1.a(p);
d1.a(t);
q = new f(" 隐身登录", i == 0, Pica.l);
d1.a(q);
d1.a(t);
a = new f(" 使用代理服务器", h == 1, Pica.l);//a = new f(" 使用代理服务器", h == 0, Pica.l);
d1.a(a);
d1.a();
Pica.l.b(d1);
}
public static void f()
{
d d1 = new d("连接MSN", (byte)7);
o = new f("MSN帐号: ", null, Pica.aC, 64, 1, v.a - 15, (byte)0, Pica.l);
d1.a(o);
p = new f("MSN密码: ", null, Pica.aB, 64, 0x10004, v.a - 15, (byte)0, Pica.l);
d1.a(p);
d1.a();
Pica.l.b(d1);
}
public static void g()
{
d d1;
(d1 = new d("手机号验证", (byte)8)).a(new k("PICA号码: " + ls, null, (byte)1));
a = new f("PICA密码:", null, "", 32, 0x10004, 80, (byte)0, Pica.l);
d1.a(a);
if (Pica.aN)
{
o = new f("当前手机号: ", null, "", 14, 3, v.a - 15, (byte)0, Pica.l);
d1.a(o);
}
p = new f("新手机号: ", null, "", 14, 3, v.a - 15, (byte)0, Pica.l);
d1.a(p);
q = new f("确认新手机号: ", null, "", 14, 3, v.a - 15, (byte)0, Pica.l);
d1.a(q);
d1.a();
Pica.l.b(d1);
}
public static void a(String s1, String s2)
{
d d1 = new d("添加好友", (byte)9);
o = new f("对方PICA号:", null, s1 == null ? "" : s1, 64, 2, 50, (byte)0, Pica.l);
d1.a(o);
p = new f("添加至分组: ", null, s2, 32, 0, v.a - 15, (byte)0, Pica.l);
d1.a(p);
q = new f("验 证 信 息: ", null, "你好", 64, 0, v.a - 15, (byte)0, Pica.l);
d1.a(q);
d1.a();
Pica.l.b(d1);
}
public static boolean a(m m1, boolean flag)
{
d d1 = new d(m1.a, (byte)10);
u = ((o) (m1)).j;
x = m1.a;
if (!((o) (m1)).j.endsWith("@pica") || flag && m1.vss != null)
{
return false;
} else
{
c(d1);
d1.a();
Pica.l.b(d1);
return true;
}
}
public static void a(String s1, p p1, boolean flag)
{
z = System.currentTimeMillis();
u = p1.b;
b = p1;
y = flag;
x = s1;
d d1 = new d("信息详情", (byte)11);
if (Pica.aY.size() > 0)
{
d1.l = (l)Pica.aY.elementAt(0);
Pica.aV = l.g;
if (d1.l.k)
d1.l.a();
Pica.aY.removeElementAt(0);
Pica.aY.addElement(d1.l);
}
b(d1);
d1.a();
Pica.l.b(d1);
}
public static void a(boolean flag)
{
A = flag;
d d1 = new d(A ? "高级查找" : "修改个人资料", (byte)12);
String as[] = {
"女", "男"
};
String as1[] = {
"广东", "北京", "上海", "天津", "重庆", "河北", "山西", "内蒙古", "辽宁", "吉林",
"黑龙江", "山东", "河南", "湖北", "湖南", "广西", "海南", "江苏", "浙江", "安徽",
"福建", "江西", "四川", "贵州", "云南", "西藏", "陕西", "甘肃", "宁夏", "青海",
"新疆", "香港", "澳门", "台湾"
};
o = new f("*年龄(10-99)" + (A ? "正负5岁: " : ": "), null, Pica.ai, 2, 2, Pica.r * 2, (byte)0, Pica.l);
p = new f(" 性别: ", null, null, as, null, null, (Pica.r + 3) * 3, Pica.r + 5, (byte)0, Pica.l);
q = new f(" 地区: ", null, null, as1, null, null, (Pica.r + 3) * 4, Pica.r + 5, (byte)0, Pica.l);
if (Pica.ak != null)
{
int i1 = 0;
do
{
if (i1 >= as1.length)
break;
if (Pica.ak.equals(as1[i1]))
{
q.a(i1, true);
break;
}
i1++;
} while (true);
}
if (A)
{
p.a(Pica.aj.equals("女") ? 1 : 0, true);
String as2[] = {
"当前在线", "不限"
};
a = new f(" 状态: ", null, null, as2, null, null, (Pica.r + 3) * 5, Pica.r + 5, (byte)0, Pica.l);
a.a(0, true);
d1.a(a);
d1.a(t);
d1.a(p);
d1.a(t);
d1.a(o);
d1.a(t);
d1.a(q);
} else
{
a = new f("*昵称:", null, Pica.N, 10, 0, 80, (byte)0, Pica.l);
r = new f(" 个人说明: ", null, Pica.al, 60, 0, v.a - 15, (byte)0, Pica.l);
p.a(Pica.aj.equals("男") ? 1 : 0, true);
Image aimage[] = new Image[9];
String as3[] = new String[9];
for (int j1 = 0; j1 < 9; j1++)
{
aimage[j1] = Image.createImage(18, 18);
Graphics g1;
(g1 = aimage[j1].getGraphics()).drawImage(Pica.t, -(j1 % 5) * 18, -(j1 / 5) * 18, 20);
}
as3[0] = " ";
for (int k1 = 1; k1 < 9; k1++)
as3[k1] = as3[k1 - 1] + " ";
s = new f(" 头像: ", null, null, as3, aimage, null, 42, 21, (byte)0, Pica.l);
s.a(Pica.am >= 9 ? 5 : Pica.am, true);
d1.a(a);
d1.a(t);
d1.a(p);
d1.a(t);
d1.a(o);
d1.a(t);
d1.a(s);
d1.a(t);
d1.a(q);
d1.a(t);
d1.a(r);
}
d1.a();
Pica.l.b(d1);
}
public static void a(m m1)
{
u = ((o) (m1)).j;
d d1 = new d("修改好友昵称", (byte)13);
o = new f("昵称:", null, m1.a == null ? "" : m1.a, 10, 0, v.a - 15, (byte)0, Pica.l);
d1.a(o);
d1.a();
Pica.l.b(d1);
}
public static void b(m m1)
{
u = a(((o) (m1)).j, '@');
d d1;
(d1 = new d("移至分组", (byte)14)).a(new k(m1.a + " (" + u + ")", null, (byte)1));
d1.a(t);
p = new f("移至分组: ", null, m1.r.b, 32, 0, v.a - 15, (byte)0, Pica.l);
d1.a(p);
d1.a();
Pica.l.b(d1);
}
public static void h()
{
d d1 = new d("修改密码", (byte)16);
o = new f("请输入新密码:", null, "", 12, 4, v.a - 15, (byte)0, Pica.l);
d1.a(o);
d1.a();
Pica.l.b(d1);
}
public static void b(String s1)
{
u = s1;
d d1 = new d("写短信", (byte)17);
o = new f("标题: ", null, "", 50, 0, v.a - 15, (byte)0, Pica.l);
d1.a(o);
d1.a(t);
d1.a(new k("日志的主题,不能为空!", null, (byte)1));
d1.a(t);
p = new f("正文: ", null, "", 120, 0, v.a - 15, (byte)0, Pica.l);
d1.a(p);
d1.a(t);
d1.a(new k("日志的内容,不能为空!", null, (byte)1));
d1.a(t);
q = new f("标签: ", null, "", 50, 0, 100, (byte)0, Pica.l);
d1.a(q);
d1.a(t);
d1.a(new k("索引关键字!", null, (byte)1));
d1.a();
Pica.l.b(d1);
}
public static void i()
{
d d1 = new d("写短信", (byte)18);
o = new f("对方手机号: ", null, "", 14, 3, v.a - 15, (byte)0, Pica.l);
d1.a(o);
d1.a(t);
p = new f("短 信 内 容: ", null, "", 50, 0, v.a - 15, (byte)0, Pica.l);
d1.a(p);
d1.a();
Pica.l.b(d1);
}
public static void j()
{
d d1 = new d("邀请好友", (byte)19);
o = new f("好友手机号: ", null, "", 14, 3, v.a - 15, (byte)0, Pica.l);
d1.a(o);
d1.a(t);
p = new f("你 的 姓 名: ", null, "", 20, 0, v.a - 15, (byte)0, Pica.l);
d1.a(p);
d1.a();
Pica.l.b(d1);
}
public static void k()
{
Pica.af = false;
String s1;
u = (s1 = (String)Pica.ah.elementAt(0)).substring(0, s1.indexOf('#'));
String s2 = s1.substring(0, s1.indexOf('%'));
String s3 = s1.substring(s1.indexOf('*') + 1);
String s4 = s1.substring(s1.indexOf('%') + 1, s1.indexOf('@'));
String s5 = s1.substring(s1.indexOf('#') + 1, s1.indexOf('*'));
d d1 = new d("验证请求", (byte)32);
String s6 = "是否同意用户[" + s2 + "]加入群[" + s3 + "](群号:" + s4 + ")?";
String as[] = {
"同意", "拒绝"
};
d1.a(new k(s6, null, (byte)1));
o = new f("", null, null, as, null, null, (Pica.r + 3) * 3, Pica.r + 5, (byte)0, Pica.l);
o.a(0, true);
d1.a(o);
d1.a(t);
d1.a(new k("验证信息: " + s5, null, (byte)1));
d1.a();
Pica.l.b(d1);
}
public static void c(String s1)
{
u = s1;
d d1 = new d("我的群名片", (byte)33);
o = new f("真实姓名:", null, Pica.ap.length() <= 20 ? Pica.ap : Pica.ap.substring(0, 20), 12, 0, 100, (byte)0, Pica.l);
d1.a(o);
d1.a(t);
String as[] = {
"男", "女"
};
p = new f("性别: ", null, null, as, null, null, (Pica.r + 3) * 3, Pica.r + 5, (byte)0, Pica.l);
p.a(Pica.aq.equals("男") ? 0 : 1, true);
d1.a(p);
d1.a(t);
q = new f("电话号码:", null, Pica.ar.length() <= 20 ? Pica.ar : Pica.ar.substring(0, 20), 20, 2, v.a - 15, (byte)0, Pica.l);
d1.a(q);
d1.a(t);
a = new f("电子邮件地址: ", null, Pica.as.length() <= 80 ? Pica.as : Pica.as.substring(0, 80), 80, 1, v.a - 15, (byte)0, Pica.l);
d1.a(a);
d1.a(t);
r = new f("个人说明: ", null, Pica.at.length() <= 80 ? Pica.at : Pica.at.substring(0, 80), 80, 0, v.a - 15, (byte)0, Pica.l);
d1.a(r);
d1.a();
Pica.l.b(d1);
}
public static void l()
{
d d1 = new d("设置群公告", (byte)34);
o = new f("群公告内容: ", null, "", 80, 0, v.a - 15, (byte)0, Pica.l);
d1.a(o);
d1.a();
Pica.l.b(d1);
}
private static void d(String s1)
{
u = s1;
d d1 = new d("踢出", (byte)35);
o = new f("踢出原因: ", null, "", 128, 0, v.a - 15, (byte)0, Pica.l);
d1.a(o);
d1.a();
Pica.l.b(d1);
}
private static void e(String s1)
{
u = s1;
d d1 = new d("放入聊天室黑名单", (byte)36);
o = new f("列入黑名单原因: ", null, "", 128, 0, v.a - 15, (byte)0, Pica.l);
d1.a(o);
d1.a();
Pica.l.b(d1);
}
private static void f(String s1)
{
u = s1;
d d1 = new d("开除", (byte)37);
o = new f("开除原因: ", null, "", 128, 0, v.a - 15, (byte)0, Pica.l);
d1.a(o);
d1.a();
Pica.l.b(d1);
}
public static void m()
{
d d1 = new d("查找群", (byte)38);
o = new f("群号: ", null, "", 6, 2, 80, (byte)0, Pica.l);
d1.a(o);
d1.a(t);
int i1;
String as[] = new String[(i1 = Pica.V.length) + 1];
System.arraycopy(Pica.V, 0, as, 0, i1);
as[i1] = "任意";
p = new f("群分类: ", null, null, as, null, null, (Pica.r + 3) * 5, Pica.r + 5, (byte)0, Pica.l);
p.a(i1, true);
d1.a(p);
d1.a(t);
q = new f("群关键字: ", null, "", 20, 0, 60, (byte)0, Pica.l);
d1.a(q);
d1.a();
Pica.l.b(d1);
}
public static void n()
{
d d1;
a(d1 = new d("创建新群", (byte)39));
d1.a();
Pica.l.b(d1);
}
public static void o()
{
d d1;
a(d1 = new d("修改群资料", (byte)40));
o.a(Pica.au == null ? "" : Pica.au.length() <= 20 ? Pica.au : Pica.au.substring(0, 20));
int i1 = 0;
for (i1 = 0; i1 < Pica.V.length && !Pica.V[i1].equals(Pica.av); i1++);
p.a(i1, true);
i1 = 0;
if (Pica.aw.equals("open"))
i1 = 0;
else
if (Pica.aw.equals("auth"))
i1 = 1;
else
if (Pica.aw.equals("close"))
i1 = 2;
q.a(i1, true);
a.a(Pica.ay.equals("yes") ? 0 : 1, true);
r.a(Pica.ax == null ? "" : Pica.ax.length() <= 80 ? Pica.ax : Pica.ax.substring(0, 80));
d1.a();
Pica.l.b(d1);
}
public static void a(r r1)
{
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -