Java J2ME跟踪应用程序的SMS服务
我已经构建了一个J2ME应用程序,通过其手机ID跟踪在我的组织下注册的所有卡车司机。该应用程序将每半小时向我们发送一条短信,其中包含相关司机的LAC、MCC、MNC手机ID,以了解他们目前的行踪,并将其作为CSV存储在我们的DB/Excel表中 现在我面临的问题是,在我将应用程序安装到任何支持Java的S40/S60上之后,我如何使接口架构正常工作,即如何让应用程序提取细节并向我们预定义的号码发送短信 这个问题的原因是因为我对这句话有点困惑,我们不能用JavaMe在标准端口上接收SMS。这是否意味着我们真的无法获得SMSE 这是我目前仅为诺基亚设备提供的:Java J2ME跟踪应用程序的SMS服务,java,java-me,sms-gateway,j2mepolish,cellid,Java,Java Me,Sms Gateway,J2mepolish,Cellid,我已经构建了一个J2ME应用程序,通过其手机ID跟踪在我的组织下注册的所有卡车司机。该应用程序将每半小时向我们发送一条短信,其中包含相关司机的LAC、MCC、MNC手机ID,以了解他们目前的行踪,并将其作为CSV存储在我们的DB/Excel表中 现在我面临的问题是,在我将应用程序安装到任何支持Java的S40/S60上之后,我如何使接口架构正常工作,即如何让应用程序提取细节并向我们预定义的号码发送短信 这个问题的原因是因为我对这句话有点困惑,我们不能用JavaMe在标准端口上接收SMS。这是否意
/**
* get the cell id in the phone
*
* @return
*/
public static String getCellId(){
String out = "";
try{
out = System.getProperty("Cell-ID");
if(out== null ||out.equals("null")|| out.equals(""))
out = System.getProperty("com.nokia.mid.cellid");
#endif
}catch(Exception e){
return out==null?"":out;
}
return out==null?"":out;
}
/**
* get the LAC string from phone
*/
public static String getLAC(){
String out = "";
try{
out = System.getProperty("phone.lac");
if(out== null ||out.equals("null")|| out.equals(""))
out = System.getProperty("com.nokia.mid.lac");
#endif
}catch(Exception e){
return out==null?"":out;
}
return out==null?"":out;
}
/**
* get the IMSI string from phone
*/
public static String getIMSI(){
String out = "";
try{
out = System.getProperty("IMSI");
if(out== null ||out.equals("null")|| out.equals(""))
out = System.getProperty("com.nokia.mid.mobinfo.IMSI");
if(out== null ||out.equals("null")|| out.equals(""))
out = System.getProperty("com.nokia.mid.imsi");
#endif
}catch(Exception e){
return out==null?"":out;
}
return out==null?"":out;
}
/**
* get the MCC string from phone
*/
public static String getMCC(){
String out = "";
try{
if(out== null ||out.equals("null")|| out.equals(""))
out = System.getProperty("com.nokia.mid.mobinfo.IMSI");
#endif
}catch(Exception e){
return out==null?"":out;
}
return out==null?"":out;
}
/**
* get the MNC string from phone
*/
public static String getMNC(){
String out = "";
try{
if(out== null ||out.equals("null")|| out.equals(""))
out = getIMSI().equals("")?"": getIMSI().substring(3,5);
#endif
}catch(Exception e){
return out==null?"":out;
}
return out==null?"":out;
}
确实,您不能在标准端口上接收SMS。但是你可以在任何端口发送短信,包括标准端口。也就是说,接收者将在其收件箱中收到短信。非常感谢。这在一定程度上有所帮助。