search 登录 注册
arrow_back返回列表
ID:8368
light_mode
Lv.1 韶华一笑间
edit_note帖子 15
stars积分 683
event加入 2011-02-04
美化修改

《开发》j2me手机属性V0.1

schedule发表于 2012-05-29 23:20:00 visibility查看 2,588 chat_bubble回复 29
#1 楼主
手机属性v0.1 绝客首发 作者;60℃ 平台:java 测试:e50 无聊写的一个小软件,可以看一些手机系统信息…代码精简…超小体积。
以下是源代码,开源了
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import java.lang.system;

public class midlet extends midlet implements *listener
{
* *;
form form;
* view,exit;

public midlet()
{
*=*.get*(this);
form=new form(“查看信息“);
view=new *(“查看“,*.ok,2);
exit=new *(“退出“,*.exit,2);
form.add*(view);
form.add*(exit);
form.set*listener(this);
}

public void startapp()
{
*.setcurrent(form);
}

public void *action(* c,*able d)
{
if(c==view) view();
if(c==exit) notifydestroyed();
}

public void view()
{
//系统当前时间(从1970年初到现在的毫秒数)
form.append(“当前时间:“+system.currenttimemillis());
//手机平台型号
form.append(“\nplatform:“+system.getproperty(“microedition.platform“));
//手机串号
form.append(“\nimei:“+system.getproperty(“imei“));
//sms服务中心号码
form.append(“\nsmsc:“+system.getproperty(“wireless.messaging.sms.smsc“));
//cldc版本属性
form.append(“\ncldc:“+system.getproperty(“microedition.configuration“));
//midp版本属性
form.append(“\nmidp:“+system.getproperty(“microedition.profiles“));
//软件作者
form.append(“\nvendor:“+system.getproperty(“midlet-vendor“));
//软件版本
form.append(“\nversion:“+system.getproperty(“midlet-version“));
//软件大小
form.append(“\ndata-size:“+system.getproperty(“midlet-data-size“));
//安装包名称
form.append(“\nmidlet-name:“+system.getproperty(“midlet-name“));
//安装包大小
form.append(“\njar-size:“+system.getproperty(“midlet-jar-size“));
//安装包下载地址
form.append(“\njar-url:“+system.getproperty(“midlet-jar-url“));
//系统编码
form.append(“\nencoding:“+system.getproperty(“microedition.encoding“));
//区域设置
form.append(“\nlocale:“+system.getproperty(“microedition.locale“));
//判断是否支持mmapi
form.append(“\nmmapi:“+system.getproperty(“microedition.media.version“));
//判断是否支持蓝牙
form.append(“\nbluetooth:“+system.getproperty(“bluetooth.version“));
//判断是否支持个人信息管理
form.append(“\npim:“+system.getproperty(“microedition.pim.version“));
//判断是否支持文件系统
form.append(“\nfile:“+system.getproperty(“microedition.io.file.fileconnection.version“));
//判断是否支持sip
form.append(“\nsip:“+system.getproperty(“microedition.sip.version“));
//判断是否支持m3g
form.append(“\nm3g:“+system.getproperty(“microedition.m3g.version“));
}

public void pauseapp() {}

public void destroyapp(boolean arg0) {}
}

全部回复 (29)

ID:8368
light_mode
Lv.1 韶华一笑间
2012-05-29 23:23:00 沙发
表情我的金钱不够500,不能上传……悲催
ID:51823
light_modedark_modestar
Lv.4 莫问四书意
2012-05-29 23:25:00 板凳
看帖回帖是美德!
ID:71029
light_modedark_modestarstar
Lv.4 莫问四书意
2012-05-30 12:39:00 地板
大哥,你写软件,你也不看下写好才1.6kb
ID:8368
light_mode
Lv.1 韶华一笑间
2012-05-31 23:32:00 #5
代码极限精简
ID:83880
light_modedark_modestarstar
Lv.1 韶华一笑间
2012-06-01 23:49:00 #6
看帖回帖是美德!
ID:83880
light_modedark_modestarstar
Lv.1 韶华一笑间
2012-06-02 00:28:00 #7
看帖回帖是美德!
ID:28167
light_modedark_modestarstarstar
Lv.1 韶华一笑间
2012-06-02 03:33:00 #8
支持你!
ID:82189
light_modestarstar
Lv.1 韶华一笑间
2012-06-02 06:20:00 #9
你牛,我顶!
ID:2710
light_modedark_mode
Lv.2 独赏二月雪
2012-06-02 06:48:00 #10
表情基本没用
ID:11026
light_modestar
Lv.2 独赏二月雪
2012-06-02 07:18:00 #11
好帖,要顶!
ID:23190
light_modestarstarstar
Lv.1 韶华一笑间
2012-06-02 07:46:00 #12
这帖不错,该顶!
ID:62580
light_modedark_modedark_modestar
Lv.6 胸怀六国志
2012-06-02 08:30:00 #13
这帖不错,该顶!
ID:2180
dark_modedark_modedark_modestarstarstar
Lv.1 韶华一笑间
2012-06-02 09:03:00 #14
你改uc不???能帮我改个么?
ID:108791
dark_modedark_modedark_mode
Lv.1 韶华一笑间
2012-06-02 10:21:00 #15
看帖回帖是美德!
ID:29403
light_modestarstarstar
Lv.2 独赏二月雪
2012-06-02 13:42:00 #16
假的、骗人
ID:29403
light_modestarstarstar
Lv.2 独赏二月雪
2012-06-02 13:43:00 #17
假的 骗人
ID:95211
light_modedark_modestarstar
Lv.3 畅意三江水
2012-06-02 18:27:00 #18
好帖,要顶!
ID:30088
light_modedark_modedark_modestar
Lv.10 拔剑十里寒
2012-06-02 20:08:00 #19
不好意思,这软件早有了
ID:14860
dark_modedark_modedark_mode
Lv.1 韶华一笑间
2012-06-02 21:47:00 #20
你牛,我顶!
ID:74324
light_modestar
Lv.1 韶华一笑间
2012-06-02 22:10:00 #21
支持你!
登录 后才能回复