C#如何调用JAVA的API?
谢谢!下面是JAVA的页面。。
如果 C#该怎么该写或帮改下。。谢谢!
import com.sinago.SinaGoMIDlet;
import javax.
import javax.wireless.messaging.*;
public final class de extends Thread
{
public static String a;
public static String b;
public de()
{
}
public static void a(String s, String s1)
{
a = s;
b = s1;
(new Thread(new de())).start();
}
public final void run()
{
MessageConnection messageconnection;
TextMessage textmessage;
(textmessage = (TextMessage)(messageconnection = (MessageConnection)Connector.open("sms://" + b)).newMessage("text")).setAddress("sms://" + b);
textmessage.setPayloadText(a);
messageconnection.send(textmessage);
SinaGoMIDlet.b.c.b("短信发送成功!");
return;
JVM INSTR dup ;
Exception exception;
exception;
printStackTrace();
SinaGoMIDlet.b.c.b("短信发送失败!");
return;
}
}