ÔÚJ2MEºÍWAPÖÐʵÏֵ绰ºô½Ð¹¦ÄÜ
MIDP 1.0ÖÐûÓÐÌṩµç»°ºô½ÐµÄ¹¦ÄÜ¡£ÔÚMIDP 2.0ÖУ¬javax.microedition.midlet.MIDletÀàÌṩÁËplatformRequest()·½·¨À´ÇëÇóÉ豸À´Íê³ÉÌض¨µÄÇëÇó£¬ÇëÇóµÄÄÚÈÝÓÉplatformRequest()·½·¨µÄStringÀàÐ͵IJÎÊýurlÀ´±êʶ¡£¿ÉÄÜÊǵ÷ÓÃä¯ÀÀÆ÷´ò¿ªÄ³¸öÌض¨µÄwapÒ³Ã棬Ҳ¿ÉÒÔÊǺô½Ðµç»°¡£ÔÚÉ豸×ÊÔ´¿ÉÓõÄʱºò£¬ÏµÍ³»á°ÑMIDlet·ÅÔÚºǫִ́ÐУ¬¶ø°ÑÌض¨µÄÓ¦ÓóÌÐò£¬ÀýÈçµç»°³ÌÐò»òÕßä¯ÀÀÆ÷·ÅÔÚǰ̨À´Ö´ÐС£ºô½Ðµç»°µÄʱºò¿ÉÒÔʹÓÃÈçϵÄÐÎʽ£º
try{
¡¡this.platformRequest("tel:13810000000");
}catch(ConnectionNotFoundException ex){
¡¡ex.printStackTrace();
}
ÕâÀïÌṩÁËÒ»¸ö¼òµ¥µÄÀý×Ó£¬ÔÚNokia 7610£¨Ö§³ÖMIDP 2.0£©ÉϲâÊÔͨ¹ý£¬³É¹¦ºô½ÐÁËÖ¸¶¨µÄµç»°¡£
package com.j2medev.call;
import javax.microedition.io.ConnectionNotFoundException;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
/**
*
* @author Administrator
* @version
*/
public class TeleMIDlet extends MIDlet implements CommandListener {
¡¡private Display display = null;
¡¡private List main = null;
¡¡public void startApp() {
if(display == null){
¡¡display = Display.getDisplay(this);
¡¡main = new List("²âÊԵ绰¹¦ÄÜ", List.IMPLICIT);
¡¡main.append("13810000000", null);//ÕâÀïµÄµç»°ºÅÂëÊÇÐéÄâµÄ
¡¡main.append("13810000001", null);//ÕâÀïµÄµç»°ºÅÂëÊÇÐéÄâµÄ
¡¡main.setCommandListener(this);
}
display.setCurrent(main);
¡¡}
¡¡public void pauseApp() {}
¡¡public void destroyApp(boolean unconditional) {}
¡¡public void commandAction(Command cmd,Displayable displayable){
if(cmd == List.SELECT_COMMAND){
¡¡String number = main.getString(main.getSelectedIndex());
¡¡try{¡¡
this.platformRequest("tel:"+number);
¡¡}catch(ConnectionNotFoundException ex){
ex.printStackTrace();
¡¡}
}
}
}
Ïà±ÈJ2ME¼¼Êõ£¬WAP¸üÀàËÆÓÚWeb£¬ÊÇÒ»ÖÖ·þÎñÆ÷¶ËΪÖ÷µÄ¼¼Êõ¡£ÔÚWMLÖпÉÒÔµ÷ÓÃÉ豸µÄWTAIº¯ÊýÀ´ºô½ÐÌض¨µÄµç»°ºÅÂ룬´úÂëÈçÏÂËùʾ£º
£¼input name="phone_no" format="*m" value="13"/£¾
£¼do type="option" label="ºô³öºÅ"£¾
£¼go href="wtai://wp/mc;$(phone_no)"/£¾
£¼/do£¾£¼br/£¾
»òÕßÖ±½ÓдÈëµç»°ºÅÂëµÄ·½Ê½£º
£¼a href="wtai://wp/mc;1331597312*"£¾²¦´òµç»°£¼/a£¾
Ïà¹ØÎĵµ£º
Èý¡¢WCSS/WAP CSS
£¨Ò»£©WCSS ½éÉÜ
WCSS/WAP CSS/Wireless CSS/Wireless Profile CSS£¨WAP Cascading Style Sheet £©
ÊÇCSS2µÄ×Ó¼¯+һЩWAPÌØÓеÄÀ©Õ¹
Ä¿µÄ£º¶¨ÒåÎĵµµÄ·ç¸ñºÍ²¼¾Ö£¬´ÓÎĵµÄÚÈÝÖзÖÀë¡£
ÖØÒªÐÔ£º²»Í¬µÄÊÖ»úÉ豸ÓжàÑùµÄÌØÕ÷£¬±ÈÈçÆÁÄ»´óС¡£
WML²»Ö§³ÖWCSS
W3C CSS Mobile ProfileºÍWAP CSS ²»Í¬¡£
......
ÊÖ»úÉÏÍøÔ½À´Ô½ÆÕ¼°£¬ÊÖ»úÖÖÀàÔ½À´Ô½¶à£¬Òª¿ª·¢Ò»¸ö¹©ÊÖ»ú·ÃÎÊÍøÕ¾²¢¼æÈÝËùÓв»Í¬ÀàÐ͵ÄÊÖ»úºÍä¯ÀÀÆ÷ÊǺܲ»ÈÝÒ׵ģ¬±±¾©Ê¦·¶´óѧ×ÔÏ°ÊÒ²éѯƽ̨µÄÊÖ»ú°æ×î³õÊÇÖ±½ÓÓÃASP.NETʵÏֵģ¬Ö»ÊÇÓÃCSS¶¨Òå³ÉÁËÊʺÏÊÖ»úÆÁÄ»µÄÒ³Ã棬ËäȻͬѧÃÇ·ÃÎÊ»ù±¾Ã»ÓÐÎÊÌ⣬µ«ÊÇҲż¶û»áÓГ²»ÄÜÑ¡ÔñÏÂÀ²Ëµ¥”¡¢“°´Å¥button²»Ä ......
Ç°Ò»Õó²ÎÓ뿪·¢ÁËÒ»¸öwapÍøÕ¾·¢ÏÖÐèÒªÌí¼ÓºÜ¶àMIMEÀàÐÍ
µ½µ×ʲôÊÇMIMEÀàÐÍÄØ£¿
MIMEÀàÐ;ÍÊÇÉ趨ijÖÖÀ©Õ¹ÃûµÄÎļþÓÃÒ»ÖÖÓ¦ÓóÌÐòÀ´´ò¿ªµÄ·½Ê½ÀàÐÍ£¬µ±¸ÃÀ©Õ¹ÃûÎļþ±»·ÃÎʵÄʱºò£¬ä¯ÀÀÆ÷»á×Ô¶¯Ê¹ÓÃÖ¸¶¨Ó¦ÓóÌÐòÀ´´ò¿ª¡£
ÄÃIISÀ´Ëµ°É Èç¹ûÄãÏ£ÍûÓÃIISÀ´×öwapServer ÄǾͱØÐëÌí¼ÓMIMEÀàÐÍ£¬·ñÔòÕâЩδע²áµÄÀ©Õ¹ÃûÊDz»Äܱ ......
Á÷Á¿Í³¼Æ·ÖÎöƽ̨¶ÔÓÚ¹ã´óÓµÓÐ×Ô¼ºÕ¾µã£¬»òÕ߸ºÔð¹ÜÀíÔËÓªÕ¾µãµÄ¸÷¸öÕ¾³¤À´Ëµ£¬ÄÇÊÇÔÚÊìϤ²»¹ýÁË£¬¾ÍËãÊÇÆÕͨµÄÍøÃñ¶Ô´Ëƽ̨ҲÄÜ˵³ö¸ö´ó¸Å¡£
Èç½ñ3Gʱ´úµÄµ½À´£¬Ê¹ÊÖ»úÓµÓиü¸ßµÄ´ø¿í£¬¸ü¿ìµÄCPU£¬·ÃÎÊwapÕ¾µãÒ²±äµÃ¸ü¼ÓÈÝÒ×£¬¼ÓÉÏÓÐucwebÕâÑùÓÅÐãµÄÊÖ»úä¯ÀÀÆ÷Ìá¸ßä¯ÀÀÒ³ÃæµÄËٶȣ¬Ê¹
wapÕ¾µ ......
Ëæ×Å3GÔÚÖйúµÄ·¢Õ¹ÒÔ¼°ÊÖ»úÉÏÍøÓû§µÄÔö³¤£¬Ãâ·Ñwap×÷ΪÊÖ»ú¹ã¸æµÄÔØÌå¡£WAPÕ¾³¤ÆÈÇÐÐèÒªÈçºÎÁ˽âÓû§£¬°ÑÎÕÓû§£¬·¢Õ¹Óû§£¬¶øÒÀÀµ¹ã¸æ·Ö³É£¬µã»÷¼Æ·ÑΪÖ÷ÒªÓ¯ÀûÊֶεÄÕ¾³¤¸üÐèÒªÁ÷Á¿µÄ¹«Ö¤ÐÔÒÔ»»È¡Óë¹ã¸æ¿Í»§Ì¸¼Û¸ñµÄÖ±½Ó³ïÂë¡£ËùÒÔ¾ÍÓÐÁ˹ØÓÚWAPÁ÷Á¿Í³¼ÆµÄ¸÷¸öÕ¾µã£¡
²» ......