Will Perone

You can use WMA (JSR120) to send text messages or binary data directly from phone to phone without needing a server inbetween. You can even send it to certain ports on a phone. Here is a simple example that sends SMS messages.
import javax.microedition.io.Connector;
import javax.wireless.messaging.*;


MessageConnection conn = null;
try {    
    conn = (MessageConnection)Connector.open("sms://" + phonenumber);
    TextMessage textMessage = (TextMessage)conn.newMessage(MessageConnection.TEXT_MESSAGE);
    textMessage.setPayloadText(message);	
    conn.send(textMessage);	
} catch (Exception e) {
    // messaging exception
} finally {
    try {
        if (conn != null) conn.close();
    } catch (Exception ee) {
        // exception while closing connection
    }    
}
Remember to pause any other networking you have running when you do this as they will conflict. Take into consideration also that making multiple network requests from a phone will probably be slower than making one big network request to a server and having the server arbitrate the requests. For more info go here

1 Comment
DexterKen 2016/09/07 Contact Me0 0
http://writtenessaysforcollege.xyz/wimpy-kid-2-summary-best-birthday-party-themes-for-adults-the-theme-of-the.html themes for adults the theme of the http://writtenessaysforcollege.xyz/tips-on-writing-a-college-application-essay-what-is-the-theme-to-kill-a.html tips on writing a college http://writtenessaysinenglish.xyz/write-a-good-resume-how-to-start-a-research-paper-the-theme-of-dreams-in-of.html research paper the theme of dreams in of http://writtenessaysforcollege.xyz/letter-paradise-lost-summary-by-john-milton-write-a-letter-online-for-free.html letter paradise lost summary by john http://writtenessaysforcollege.xyz/usher-how-to-write-a-review-for-a-movie-summary-of-act-3-of-macbeth-how-to.html usher how to write a review for a movie http://writtenessaysforcollege.xyz/steps-to-write-a-thesis-statement-interesting-college-related-persuasive.html steps to write a thesis http://writtenessaysforcollege.xyz/walter-mitty-by-james-thurber-summary-i-have-a-dream-speech-written-summary.html summary http://writtenessaysforcollege.xyz/steps-for-writing-a-research-paper-what-is-a-thesis-in-a-speech-how-to-make.html steps for writing a http://writtenessaysforcollege.xyz/rules-summary-what-is-an-example-of-narrative-writing-steps-on-how-to-write.html rules summary what is an example of http://writtenessaysinenglish.xyz/to-rewrite-a-paragraph-in-your-own-words-how-to-write-a-good-introduction.html write a good introduction http://writtenessaysforcollege.xyz/the-ambitious-guest-by-nathaniel-hawthorne-writing-a-informal-letter-to.html the ambitious guest by nathaniel http://writtenessaysforcollege.xyz/own-how-to-write-a-short-short-story-how-to-write-a-personal-bio-on.html a personal bio on http://writtenessaysforcollege.xyz/free-cover-letter-templates-for-resumes-summary-on-the-fall-of-the-house-of.html the house of http://writtenessaysinenglish.xyz/scientific-journal-articles-the-summary-of-pride-and-prejudice-themes-in.html scientific journal http://writtenessaysforcollege.xyz/sample-paper-with-footnotes-theme-of-the-gift-of-the-magi-by-o-henry-when.html gift of the magi by o

<- for private contact