السلام عليكم ورحمة الله
وجدت هذة الأكواد
إرسال رسالة نصية إلى جوال SMS
import com.simplewire.sms.*;
public class send_text
{
public static void main(String[] args) throws Exception
{
SMS sms = new SMS();
sms.setSubscriberID("123-456-789-12345");
sms.setSubscriberPassword("Password Goes Here");
sms.setMsgPin("+1 100 510 1234");
sms.setMsgFrom("Demo");
sms.setMsgCallback("+1 100 555 1212");
sms.setMsgText("Hello World !");
System.out.println("Sending message ...");
sms.msgSend();
if(sms.isSuccess())
{
System.out.println("Message was sent!");
}
else
{
System.out.println("Message was not sent!");
System.out.println("Error Code: " + sms.getErrorCode());
System.out.println("Error Description: " + sms.getErrorDesc());
System.out.println("Error Resolution: " + sms.getErrorResolution() + "\n");
}
}
}-------------------------------------
إرسال صورة إلى جوال
import com.simplewire.sms.*;
public class send_picture
{
public static void main(String[] args) throws Exception
{
SMS sms = new SMS();
sms.setSubscriberID("123-456-789-12345");
sms.setSubscriberPassword("Password Goes Here");
sms.setMsgPin("+1 100 510 1234");
sms.setMsgFrom("Demo");
sms.setMsgCallback("+1 100 555 1212");
sms.setMsgText("Hello World !");
sms.setOptPhone("nokia");
sms.setMsgPictureFilename("example.gif");
System.out.println("Sending message ..");
sms.msgSend();
if(sms.isSuccess())
{
System.out.println("Message was sent!");
}
else
{
System.out.println("Message was not sent!");
System.out.println("Error Code: " + sms.getErrorCode());
System.out.println("Error Description: " + sms.getErrorDesc());
System.out.println("Error Resolution: " + sms.getErrorResolution() + "\n");
}
}
}=============
والسؤال الذي يطرح نفسة
كيف أقوم بإضافة هذة الحزمة أو التعريف
import com.simplewire.sms.*;
بمعنى أنها غير قياسية في مترجمات الجافا
أين أجدها
وإذا وجدتها كيف أثبتها في المترجم
وشكرا مقدما
