Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - app
Search - app - List

1、将jre文件夹复制到你本机所在的JDK下覆盖掉全部jre文件夹

2、将lib文件夹复制到你项目所在的lib,添加对应lib


import org.smslib.IOutboundMessageNotification;
import org.smslib.Library;
import org.smslib.MessageEncodings;
import org.smslib.MessageProtocols;
import org.smslib.OutboundMessage;
import org.smslib.Service;
import org.smslib.modem.SerialModemGateway;
import java.util.List;


public class SendSms {
    public SendSms() {
    }


    public void sendSMS(String[] phoneNumber) throws Exception {
        Service srv;
        OutboundMessage msg;

        OutboundNotification outboundNotification = new OutboundNotification();

        srv = new Service();
        SerialModemGateway gateway = new SerialModemGateway("modem.com1",
                "COM1", 9600, null, null);
        gateway.setInbound(true);
        gateway.setOutbound(true);
        gateway.setSimPin("0000");
        gateway.setOutboundNotification(outboundNotification);
        gateway.setProtocol(MessageProtocols.PDU);
        srv.addGateway(gateway);

        try {
            srv.startService();

            for (int i = 0; i < phoneNumber.length; i++) {
                msg = new OutboundMessage(phoneNumber[i], "您有会议待处理,请登陆查看!");
                msg.setEncoding(MessageEncodings.ENCUCS2);
                srv.sendMessage(msg);

            }

        } finally {
            srv.stopService();
        }
    }

    public class OutboundNotification implements IOutboundMessageNotification {
        public void process(String gatewayId, OutboundMessage msg) {
            System.out.println("Outbound handler called from Gateway: " +
                               gatewayId);
            System.out.println(msg);
        }
    }


    public static void main(String args[]) {
        SendSms app = new SendSms();
        try {
            app.doIt();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
 


Date : 2009-01-03 Size : 1015.8kb User : idhuanghao

DL : 0
游戏名称:九宫阵 运行平台:j2me 规范:midp 说明:一款很经典的游戏源码,入口类App.java-the name of the game : JiuGongTu array platforms : j2me norms : midp Description : A classic source of the game, import category App.java
Date : 2026-01-09 Size : 226kb User : bob.wang

DL : 0
j2me MediaSample do with mobile media app -j2me MediaSample do with mobile media app
Date : 2026-01-09 Size : 92kb User :

一个j2me的小应用程序主要功能实现电话拨的记录和查询删除-A small j2me application realize the main functions of phone call records and delete queries
Date : 2026-01-09 Size : 2kb User : 白贞伟

DL : 0
一款使用J2ME编写的手机应用软件--手机日志。可方便的进行日志记载等-J2ME prepared to use a mobile phone application software- the phone log. Facilitate the conduct of the log records, etc.
Date : 2026-01-09 Size : 67kb User : 郑慧

DL : 0
提供蓝牙所有服务, 和连接蓝牙的所有服务并且连接上,类似于IVT, 但是j2me编的-01-Digital-Signal-Processing-A-Hardware-Based-App 01-Digital-Signal-Processing-A-Hardware-Based-App
Date : 2026-01-09 Size : 85kb User : 杨洪(BU)

手机开发必备插件包,来自第3方,j2me必备开发插件-Prerequisite plug-in handset development package, from the first three sides, j2me development of plug-in necessary
Date : 2026-01-09 Size : 331kb User : lidong

how ceate your first netbeans J2ME a-how ceate your first netbeans J2ME app
Date : 2026-01-09 Size : 900kb User : walid

DL : 0
NFC, a mobile phone app which can alert the patients to take medicine and scan the tab in the bottle of pills.-NFC, a mobile phone app which can alert the patients to take medicine.
Date : 2026-01-09 Size : 483kb User : chancel

j2me example app, nice code
Date : 2026-01-09 Size : 95kb User : kien

An ebook with details on j2me App development
Date : 2026-01-09 Size : 4.15mb User : Daywalker

DL : 0
DRUMKIT SIMPLE J2ME APP
Date : 2026-01-09 Size : 1.11mb User : mazyo

EXPLONOID APP FOR J2ME
Date : 2026-01-09 Size : 435kb User : mazyo

COMPASS APP FOR J2ME
Date : 2026-01-09 Size : 287kb User : mazyo

DL : 0
PAINT APP FOR J2ME MOBILE
Date : 2026-01-09 Size : 469kb User : mazyo

DL : 0
This a J2ME App for you to Listen to music from Web-This is a J2ME App for you to Listen to music from Web
Date : 2026-01-09 Size : 27kb User : tiengsetmaudo

A Demostration of Chat app in j2me.
Date : 2026-01-09 Size : 7kb User : thewolf

DL : 0
Its j2me app about sending request for an url and getting response and display it
Date : 2026-01-09 Size : 36kb User : Vinay Gayakwad

Simple J2ME app using Netbean 7-Simple J2ME app using Netbean 7.1.1
Date : 2026-01-09 Size : 23kb User : kudeto

一个手机股票App的Java源代码,使用Java语言,包含分时图 、5日分时图,K线图,使用Mpchart控件(A mobile phone stock App Java source code, using the Java language, including time - sharing, 5 - day timeshare, K-line, use of Mpchart controls)
Date : 2026-01-09 Size : 1.1mb User : test668
« 12 »
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.