<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    讓變化成為計劃的一部分

    歡迎大家探討本Blog涉及的所有軟件課題。我的Google Talk ID:zhengyun(at)gmail.com。

    我最希望軟件帶給用戶的感受是:美好的體驗、舒適感、簡約、干凈...

    posts - 32, comments - 8, trackbacks - 0, articles - 0
      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理
    Question:
    Can I access native functionality from a MIDlet?


    Answer:
    Not directly since MIDP does not support JNI.

      However, it is possible for a MIDlet to communicate with a C++ application running on the host device using a standard communication protocol such as TCP/IP sockets.

      For instance the native application can provide a (server) socket listening for incoming connections on a specific port (say 1234). The MIDlet can then use the GCF to opens a client socket connection using the local loopback address to communicate with the native application as follows:

      SocketConnection mySocket = (SocketConnection) Connector.open("socket://127.0.0.1:1234");

      Once a two way connection has been established the MIDlet client can make requests for data from the native server using a custom protocol understood by both.

      Of course this approach relinquishes many of the tradition strengths of MIDP (such as cross platform portability) requiring as it does the implementation, installation and launching of a dedicated native application as well as the MIDlet. However it may provide a route for application developers to leverage existing Java code to a Java implementation with different capabilities, rather than undertake a complete re-write in C++.

      For further information see:

      Also see FAQ-1206
    主站蜘蛛池模板: 久久久久亚洲AV成人网人人网站 | 亚洲剧场午夜在线观看| a毛看片免费观看视频| 亚洲性日韩精品国产一区二区| 日韩色日韩视频亚洲网站| 日韩毛片无码永久免费看| 亚洲精品V天堂中文字幕| 四虎影视www四虎免费| 国产亚洲欧美日韩亚洲中文色| 免费观看男人免费桶女人视频 | 亚洲日韩人妻第一页| 又粗又长又爽又长黄免费视频| 亚洲欧洲日本在线| aaa毛片视频免费观看| 亚洲乱码国产一区三区| 人人揉揉香蕉大免费不卡| 91精品国产亚洲爽啪在线观看| h视频在线观看免费网站| 亚洲最大成人网色香蕉| 曰皮全部过程视频免费国产30分钟| 国产成人亚洲精品91专区高清 | 国产精品亚洲va在线观看| 2022中文字字幕久亚洲| AAA日本高清在线播放免费观看| 亚洲美女激情视频| 日韩成全视频观看免费观看高清| 黄页网址大全免费观看12网站| 国产亚洲精久久久久久无码77777| 久久成人a毛片免费观看网站| 亚洲AV无码专区在线亚| 国产一级淫片a免费播放口之| 国产日韩在线视频免费播放| 久久久久亚洲AV无码网站| 成年人性生活免费视频| 国产精品免费看久久久香蕉| 亚洲精品无码久久毛片波多野吉衣 | 亚洲无码在线播放| 久久久久久久免费视频| 成人a毛片免费视频观看| 亚洲欧洲日本精品| 免费jlzzjlzz在线播放视频|