wood burning stoves*
The moose likes Java Micro Edition and the fly likes sending sms from pda using jni Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "sending sms from pda using jni" Watch "sending sms from pda using jni" New topic
Author

sending sms from pda using jni

Shreya mathew
Greenhorn

Joined: Aug 03, 2010
Posts: 3
I have got a code in C# to send sms from windows mobile device(pda) from this link: http://phvu.wordpress.com/2009/01/15/sending-sms-message-in-windows-ce/' target='_new' rel='nofollow'>http://phvu.wordpress.com/2009/01/15/sending-sms-message-in-windows-ce/

I have converted the C# code into a dll...
Now I want to access the dll from a java application(which is done using IBM weme j9 ).
I need help on 'how to call a C# smart device dll from java'....
Anyone having done this please help asap..

The C# code is given below:



Thanks in advance..
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15657
    
  15

Welcome to the JavaRanch, Shreya,

There's a button on the message editor that you can use to make code easier to read. I've used it on your sample.

Normally you'd want to use a Java API to send SMS, but if you're running J9, I suspect that the phone is running Windows Mobile, and J9 doesn't include hardware-specific features.

Suspect? no, what other OS would have DLLs.

You need to look at the JNI docs for JME and make some glue code - a JNI class that invokes the functions in the DLL.


Customer surveys are for companies who didn't pay proper attention to begin with.
Shreya mathew
Greenhorn

Joined: Aug 03, 2010
Posts: 3
Yes,the pda is using Windows Mobile OS.
Will somebody help me in writing the jni class for invoking the method 'SendSMS(string recipient, string sContent)' in the above code?
Its very urgent...
Thanks in advance..
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15657
    
  15

We're here to help, but We need you to help too.
Because We are not a Code Mill.
We don't generally respond to private questions for reasons explained here.
Also, Be Patient.

There should be some samples on how to code for JME JNI on the Sun/Oracle JME website. I'm afraid I don't have any at the moment, myself.


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: sending sms from pda using jni
 
Similar Threads
Japan Email Encoding problem
sms.dll & java
Problem with MouseListener
how to append to word doc files
How do I read and write a binary file?