Sending and Receivng SMS with Java COMM API - java

I stumbled upon this guide on how to use it, but being the beginner that I am, it confused me on how to use it until I saw the answer in this guide.
However, I noticed that one of the five files is already named SMSClient and the step two in the second guide duplicates that file so I skipped it and headed for step three which was confusing since I got an error in this line:
SMSClient smsc = SMSClient(0);
I placed all the five java files plus the SendSMS.java file in the (default package) package of the src package, however Eclipse could not seem to find the SMSClient.java file.
Sorry if this is a very basic question, I've yet to have any lessons with Java at all and I'm feeling my way through these. Any help will be very much appreciated, may it be clarifications regarding the codes above or a better alternative to sending/receiving text messages. Thank you.

I advice you to use one of these alternative because they are supported and used by many developers:
A better alternative for SMS Send/Receive is Logica Open SMPP from HERE.. It's an open source API based on JAVA providing you with all you need in SMS technology. The website also has an SMC Simulator for testing which is very helpful..
Another alternative is Kannel: Open Source WAP and SMS Gateway from Here it's an open source API based on Linux which you can easily configure and you can use web services to send and receive SMS or SQLBox to send and receive through DB Transactions.. I personally use Kannel
Check the Documentation of Kannel from Here

Related

Futronic fingerprint reader FS80H, 2 readers in the same PC, how can i differentiate them

I have Java application using Futronic FS80H.
Working successfully with one device.
But now i have 2 of them plugged in the same PC.
I want one to enroll, and the other must only read.
But i can't find a way to diferentiate them.
I'm using the SDK Worked Example for Windows, available at https://www.futronic-tech.com/download.php, and building my software upon that.
Can someone help me?
I got in touch with tech support via the email inquiry#futronic-tech.com.
Team futronic were very kind and supportive and helped me to accomplish the taks.
There's everything available in their dll api, and they sent me access to their ftp with Java code example to handle multiple FS80 readers plugged in the same PC.
I would like to thank team Futronic.

WebRTC native java/ android

I am able to build the libjingle library and also build the AppRTCDemo App on Android. I am able to connect to peers and share audio and video successfully. Now I want to extend it to send data (say Text "HelloWorld"). I want to integrate DataChannel into it so that I can also send data through it.
I have few questions:
Is it possible to use DataChannel with native webrtc? I mean what I am trying to do is it supported ?
Is there any sample application or example that could solve this problem for me ?
Looking forwards for you support!
Yes it is supported. For more info about the exact interfaces take a look at
<libjingle-src>/talk/app/webrtc/java/src/org/webrtc/PeerConnection.java
<libjingle-src>/talk/app/webrtc/java/src/org/webrtc/DataChannel.java
As far as I know there isn't any examples

Sending messages to websocket server with flash

Basically i am trying to create a websocket based live chat for a few websites i work on.
the server i have up and working no bother running on the javax.websocket package on a glassfish server.
the standard HTML5 websocket interface i also have working no bother.
the problem is that about 10-20% or our users dont use an HTML5 compatible browser so i need a fallback. Do far the best option i can find seems to be running a swf as a middle man between the websocket server and HTML. The problem there being that action script doesnt support websockets as standard so im having to write my own wrapper.
So far i can connect to the server and perform a successful handshake, i can also receive messages from the server with no issues, the problem is sending messages.
I have had a look through https://www.rfc-editor.org/rfc/rfc6455#section-5.2 at the theory of the data frame for a websocket package and written an attempt at this, i have also looked through various other open source library's without any luck. What happens is whenever i send a message to the server i get a response of
RSV bit(s) incorrectly set.
and then the connection closes (as it should with the websocket protocol).
A large part of the problem i suspect is that this is the first time i have ever even looked at action script never mind attempted using it.
i was just wondering if anyone else had been having this problem/response and preferably has found a solution
in an idea world im looking for a tutorial that i could use to actually understand the creation of the frame better but i cant seem to find one :P
thanks
Matt
As it turns out it was just one of those bizarre bugs that happened for basically no reaseon, i ended up re-writing the section of code that manages the creation of websocket frames and frame fragmentation and it just worked.
ive had a few programmers look the the two examples of code including an action script developer and none of them can work out why the one snippet works and the other doesnt.
On the upside going back over the process has given me a better understanding of the protocol. If there is anyone else that has been having a similar problem feel free to get in touch and i will see if i can help you out.

How to access information in Windows Device Manager from Java?

I have a serial to USB device and more than one of those can be connected to the computer. I need to query and retrieve a list of COM ports that the devices are connected to. In Windows Device Manager you can get the COM port + friendly name of devices that are connected at the present time. This list is dynamic.
Reading from the registry did not work because the information stored is stale and static, not dynamic.
Devcon (from Microsoft) does list the ports that devices are connected to, but it cannot be used in my app because it is not re-distributable.
Any ideas or preferably, a solution?
I had to solve a similar issue just some weeks ago. I came accross the Jawin-Project that provided everything you need to use WMI-Queries. It is already quite old but works like a charm if you follow the documentation. A nice German walkthrough can be found codegods blog.
For me, it did not solve all problems (I had some very specific things to find out about the target device), I finally created an own JNI (Java Native Interface) Class and DLL in C incorporating the windows API.
I hope this is what you searched for.
Did you try this jUSB API or This example ?
I hope this will help you.
Use JNA (https://github.com/twall/jna) and take a look at the following page. It might be a useful point to start from.
http://www.digitalinferno.com/wiki/Wiki.jsp?page=JNAPrintDevices
I am looking at Java Native Access as it provides access to the windows API from pure Java code - no JNI to deal with. I was concerned about the LGPL license; whether it can be included in a commercial product but from what a few posts in the newsgroup say, it can be.
After I try it out in the next few weeks, I shall post back here.

How to use the default email client to send an email with an attachment from Java?

I have a Java program which generates a PDF file. I want the user to click a button to open the default email client ready to send the PDF as an attachment. The two standard ways of opening the default email client have problems:
Java 6 doesn't seem to allow for attachments in the generated message
JDIC has a bug which prevents Outlook 2007 from sending the message correctly: http://jdic.dev.java.net/issues/show_bug.cgi?id=160
Can anyone suggest a way to do this?
Thanks
JDIC provides some functionality to do this. Although much of JDIC was absorbed into java.awt.Desktop in Java 6, it didn't include the email composition bits. Unfortunately the JDIC binaries disappeared with the transition of java.net to the Kenai platform; I uploaded the most recent versions I could find to the project JIRA.
JDIC doesn't play well in OSGi, so I recently extracted the relevant MAPI bits into a bundle called jmapi.
(I posted this answer to another question too.)
Did javax.mail.internet.MimeMultipart go away? That's sort of the canonical way to set up an attachment.
Update
Okay, so if I've got this straight, you want to know how to let your application use an unspecified email client on an unspecified operating system to send a multipart MIME email containing an undefined attachment but not by constructing the MIME message yourself?
... well, okay, I guess you mentioned Outlook so it must be Windows. But still.
Is there a specific reason you'd like to use the default e-mail client, rather than sent it from Java using the e-mail client (JavaMail)?
Can you provide more details as to the kind of application you're trying to write? I take it this is a client GUI application (Swing/SWT/AWT), but beyond that, I think we're going to need more details.

Categories