📄 l.java
字号:
// pica客户端J2ME源码,100%可运行可修改,J2ME逆向工程经典作品
// 作者:fangji999
// QQ:57979471 Email:fangji999@163.com
// 博客:http://hi.baidu.com/ccall_net
// QQ群:51719370
// 如用此源码重新改写的软件或转载,请保留本人联系方式,作品原创作者
package pica;
import java.util.Timer;
import javax.microedition.io.Connection;
import javax.microedition.io.Connector;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDlet;
import javax.wireless.messaging.MessageConnection;
import javax.wireless.messaging.TextMessage;
// Referenced classes of package pica:
// Pica, d, u, v,
// w
public final class l
implements Runnable
{
String a;
String b;
String c;
String ds;//String d;
int e;
int f;
static int g;
int h;
int i;
int j;
boolean k;
u l;
private static Font n;
public int m;
private v o;
public l(v v1, String s, String s1, String s2, String s3, String s4, String s5,
String s6, String s7)
{
a = "";
b = null;
c = null;
ds = null;
l = null;
m = n.getHeight();
o = v1;
a = s2;
if (s2.equals("wap") || s2.equals("zwp"))
{
if (s3.indexOf("%USERID%") != -1)
{
int i1 = s3.indexOf("%USERID%");
s3 = s3.substring(0, i1) + w.ls + s3.substring(i1 + 8);
}
if (s3.indexOf("%USERPWD%") != -1)
{
int j1 = s3.indexOf("%USERPWD%");
s3 = s3.substring(0, j1) + w.m + s3.substring(j1 + 9);
}
}
b = s3;
c = s4;
ds = s5;
e = d.b;
f = v.l + 2;
h = v.l + (22 - m >> 1);
j = n.stringWidth(ds);
if (j > d.c - (18 + d.b))
i = d.c - (18 + d.b);
else
i = j;
if (n.stringWidth(ds) > d.c - (18 + d.b))
{
k = true;
return;
} else
{
k = false;
return;
}
}
public final void a()
{
Pica.aW = new Timer();
l = new u(j);
Pica.aW.schedule(l, 1000L, 200L);
}
public final void a(Graphics g1)
{
byte byte0 = 0;
g1.setClip(e, f, 18, 18);
if (a.equals("wap"))
byte0 = 36;
else
if (a.equals("zwp"))
byte0 = 36;
else
if (a.equals("tel"))
byte0 = 54;
else
if (a.equals("sms"))
byte0 = 18;
g1.drawImage(Pica.x, e - byte0, f, 20);
g1.setClip(g, h, i, m);
g1.setFont(n);
g1.setColor(0, 0, 255);
if (o.A)
{
g1.fillRect(g, h, i, m);
g1.setColor(255, 255, 255);
}
g1.drawString(ds, Pica.aV, h, 20);
g1.setClip(0, 0, v.a, v.b);
}
public final void b()
{
try
{
if (a.equals("wap"))
{
Pica.I.platformRequest(b);
Pica.l.a();
Pica.j.setCurrent(Pica.l);
} else
if (a.equals("zwp"))
{
Pica.a().a(b, (byte)-1);
Pica.l.a();
Pica.j.setCurrent(Pica.l);
} else
if (a.equals("tel"))
{
Pica.I.c(b);
Pica.l.a();
Pica.j.setCurrent(Pica.l);
} else
if (a.equals("sms"))
(new Thread(this)).start();
else
return;
}
catch (Exception e)
{
return;
}
}
public final void run()
{
String s = "自动发送短信失败,请您退出程序后发送短信" + c + "到" + b;
String s1 = "sms://" + b;
MessageConnection messageconnection = null;
boolean flag = false;
try
{
TextMessage textmessage;
(textmessage = (TextMessage)(messageconnection = (MessageConnection)Connector.open(s1)).newMessage("text")).setPayloadText(c);
messageconnection.send(textmessage);
}
catch (Exception exception)
{
flag = true;
w.al("提示", s, null, 3);
exception.printStackTrace();
}
if (messageconnection != null)
try
{
messageconnection.close();
}
catch (Exception e)
{
flag = true;
w.al("提示", s, null, 3);
}
if (!flag)
{
Pica.l.a();
Pica.j.setCurrent(Pica.l);
}
}
static
{
g = d.b + (18 + d.b);
n = Font.getFont(Pica.q.getFace(), 4, Pica.q.getSize());
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -