Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÔÚ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£¾


Ïà¹ØÎĵµ£º

WAP 2.0½éÉܺÍʹÓù淶(1)

—— XHTML MP and WCSS
Ò»¡¢WAPµÄ³£Ê¶£¨Ê¡ÂÔ£©
¶þ¡¢XHTML MP
£¨Ò»£©XHTML MP ½éÉÜ
XHTML MP£¨eXtensible HyperText Markup Language Mobile Profile£©
WAP2.0
ÓëWCSS£¨WAP CSS /WAP Cascading Style Sheet£©ÅäÌ×ʹÓÃ
ÊÇXHTMLµÄ×Ó¼¯
XHTML Basic (XHTML×Ó¼¯)+ÁíÍâµÄһЩXHTMLµÄÔªËØºÍÊôÐÔ
WAPä¯ÀÀÆ÷Óë» ......

xhtml mp ºÍ wap cssÓ¦Óý²½âÒ»


ʹÓÃwap css¿ÉÒÔ°ÑÄÚÈݺͱíʾ·ÖÀ룬ºÃ´¦£º
1.ʹÓÃwcssʹÄÚÈݺÍÑùʽ·ÖÀ룬¿ÉÒÔΪ²»Í¬ÊÖ»ú£¬Éè¼Æ¼¸¸ö°æ±¾wap css style sheet ºÍÖ¸¶¨²»Í¬ÆÁ
Ä»´óС¡£ÄÚÈÝÈ´²»ÐèÒªÐ޸ġ£
2.Ϊ²»Í¬É豸£¬ÈçPC,PDA,MOBILE PHONE£¬×¼±¸²»Í¬Ñùʽ±í£¬ÄÚÈݲ»ÐèÒª¸Ä±ä¡£
3.¼õÉÙά»¤Ò»¸öwapÕ¾µã£¬µ±ÓÐеĵ绰£¬Ö»ÐèÒªÔö¼ÓеÄÑùʽ±í£¬ÄÚÈݲ»ÐèÒ ......

WAPÍøÕ¾Á÷Á¿·ÖÎö WAPÁ÷Á¿Í³¼Æ wapÍøÕ¾Á÷Á¿Í³¼Æ

Ëæ×Å3GÔÚÖйúµÄ·¢Õ¹ÒÔ¼°ÊÖ»úÉÏÍøÓû§µÄÔö³¤£¬Ãâ·Ñwap×öΪÊÖ»ú¹ã¸æµÄÔØÌ壬ҵÄÚÈËʿԤ²âÔÚδÀ´µÄÖйúÎÞÏßÍøÂçÓªÏú½«´ó·ÅÒì²Ê¡£ WAPµÄÐËÊ¢±êÖ¾×ÅÊг¡ÒѾ­×ßÏò³ÉÊ죬WAPÕ¾³¤ÆÈÇÐÐèÒªÈçºÎÁ˽âÓû§£¬°ÑÎÕÓû§£¬·¢Õ¹Óû§£¬¶øÒÀÀµ¹ã¸æ·Ö³É£¬µã»÷¼Æ·ÑΪÖ÷ÒªÓ¯ÀûÊֶεÄÕ¾³¤¸üÐèÒªÁ÷Á¿µÄ¹«Ö¤ÐÔÒÔ»»È¡Óë¹ã¸æ¿Í»§Ì¸¼Û¸ñµÄÖ±½Ó³ïÂë¡£
Ëû ......

WAPÕ¾µãµÄMIMEÀàÐÍÓÐÄÄЩ£¿ÈçºÎÌí¼Ó£¿

ǰһÕó²ÎÓ뿪·¢ÁËÒ»¸öwapÍøÕ¾·¢ÏÖÐèÒªÌí¼ÓºÜ¶àMIMEÀàÐÍ
µ½µ×ʲôÊÇMIMEÀàÐÍÄØ£¿
MIMEÀàÐ;ÍÊÇÉ趨ijÖÖÀ©Õ¹ÃûµÄÎļþÓÃÒ»ÖÖÓ¦ÓóÌÐòÀ´´ò¿ªµÄ·½Ê½ÀàÐÍ£¬µ±¸ÃÀ©Õ¹ÃûÎļþ±»·ÃÎʵÄʱºò£¬ä¯ÀÀÆ÷»á×Ô¶¯Ê¹ÓÃÖ¸¶¨Ó¦ÓóÌÐòÀ´´ò¿ª¡£
ÄÃIISÀ´Ëµ°É Èç¹ûÄãÏ£ÍûÓÃIISÀ´×öwapServer ÄǾͱØÐëÌí¼ÓMIMEÀàÐÍ£¬·ñÔòÕâЩδע²áµÄÀ©Õ¹ÃûÊDz»Äܱ ......

¹ØÓÚwapÕ¾µãÁ÷Á¿·ÖÎöͳ¼ÆÆ½Ì¨µÄ·¢Õ¹·½ÏòÖ®ÎÒ¼û

Á÷Á¿Í³¼Æ·ÖÎöƽ̨¶ÔÓÚ¹ã´óÓµÓÐ×Ô¼ºÕ¾µã£¬»òÕ߸ºÔð¹ÜÀíÔËÓªÕ¾µãµÄ¸÷¸öÕ¾³¤À´Ëµ£¬ÄÇÊÇÔÚÊìϤ²»¹ýÁË£¬¾ÍËãÊÇÆÕͨµÄÍøÃñ¶Ô´Ëƽ̨ҲÄÜ˵³ö¸ö´ó¸Å¡£
    
Èç½ñ3Gʱ´úµÄµ½À´£¬Ê¹ÊÖ»úÓµÓиü¸ßµÄ´ø¿í£¬¸ü¿ìµÄCPU£¬·ÃÎÊwapÕ¾µãÒ²±äµÃ¸ü¼ÓÈÝÒ×£¬¼ÓÉÏÓÐucwebÕâÑùÓÅÐãµÄÊÖ»úä¯ÀÀÆ÷Ìá¸ßä¯ÀÀÒ³ÃæµÄËÙ¶È£¬Ê¹
wapÕ¾µ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ