摘要:代码:import android.app.Activity;import android.os.Bundle;import android.widget.TextView;public class ActivityMain extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layou
阅读全文
摘要:/** To change this template, choose Tools | Templates* and open the template in the editor.*/package hello;import javax.microedition.lcdui.*;import javax.microedition.midlet.*;/*** @author Administrator ItemStateListener 事件处理*/public class ItemStateListenerDemo extends MIDlet implements CommandListe
阅读全文
摘要:/** To change this template, choose Tools | Templates* and open the template in the editor.*/package hello;import javax.microedition.lcdui.*;import javax.microedition.midlet.*;import java.io.*;/*** @author Administrator*/public class ImageItemDemo extends MIDlet implements CommandListener{ private D
阅读全文
摘要:/** To change this template, choose Tools | Templates* and open the template in the editor.*/package hello;import javax.microedition.midlet.MIDlet;import javax.microedition.midlet.MIDletStateChangeException;import javax.microedition.io.*;import javax.microedition.lcdui.*;import javax.microedition.rm
阅读全文
摘要:MIDP 高级用户界面设计1 高级用户界面组件全部定义在javax.microedition.lcduijavax.microedition.lcduijavax.microedition.包中。2 高级屏幕对象(代码在NetBeans下面调试)(1)第一个J2ME程序代码 /** To change this template, choose Tools | Templates* and open the template in the editor.*/package hello;import javax.microedition.midlet.*;import javax.microed
阅读全文
摘要:(1) Web Service 地址:http://www.webxml.com.cn/WebServices/WeatherWebService.asmx(2) 增加WebService引用(3) 天气预报图例说明http://www.webxml.com.cn/zh_cn/weather_icon.aspx(4) PDA界面如下所示:(5) 根据getWeatherbyCityName方法获得天气信息调用方法如下:输入参数:theCityName = 城市中文名称(国外城市可用英文)或城市代码(不输入默认为上海市),如:上海 或 58367,如有城市名称重复请使用城市代码查询(可通过 ge
阅读全文
摘要:1 模拟器中打开SQLCE数据库首先打开设备仿真管理器,打开WM 6.5 Professional 仿真器,插入底座。2 模拟器运行效果如下所示:3设置共享文件件(SD卡位置)4 拷贝的SQL Server Compact安装包From :http://www.cnblogs.com/bobli/archive/2008/10/27/1320457.html摘要:SQL Server Compact的安装包由三部分功能组成,并且区分CPU平台和操作系统平台,初学者往往不知道如何去区分它们。本文将对SQL Server Compact的安装包进行介绍,让你知道如何区分和选择它们。如果你是使用Vi
阅读全文