Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-02-2008, 08:56 PM
Member
 
Join Date: Oct 2008
Posts: 4
Rep Power: 0
hewstone is on a distinguished road
Default Midlet to receive sms message
Hello,
I am trying to develop an application (midlet) in Java which receives an sms message and processes it. Please could someone explain the main steps and links to resources e.g. creating a GUI, code, receiving the text message etc.

Thanks in advence for your help

Rich
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 03-08-2009, 11:52 AM
Member
 
Join Date: Mar 2009
Posts: 10
Rep Power: 0
preetam.guddu is on a distinguished road
Default
I also finding answer of this question
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 03-08-2009, 11:53 AM
Member
 
Join Date: Mar 2009
Posts: 10
Rep Power: 0
preetam.guddu is on a distinguished road
Default
It is agood topic
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 03-08-2009, 11:54 AM
Member
 
Join Date: Mar 2009
Posts: 10
Rep Power: 0
preetam.guddu is on a distinguished road
Default
Actually i hav to send 10 posts to see the links so i am writing so many
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 09-03-2009, 04:20 PM
Member
 
Join Date: Aug 2009
Posts: 2
Rep Power: 0
mrafraid2009 is on a distinguished road
Thumbs up
i can give you what you want but give me a cost!!

hehehe

God Bless!!!
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 10-27-2009, 10:46 AM
Member
 
Join Date: Oct 2009
Posts: 21
Rep Power: 0
jason.3dmagic is on a distinguished road
Arrow
Try and find google you will get codes
I Just googled for it
add database connectivity and its done


import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.wireless.messaging.*;
import javax.microedition.io.*;

public class PushDemo extends MIDlet implements CommandListener
{
private Display display;
private Command cmExit;
private Alert alertIncomingMessage;
int incomingPortNum=6535;
MessageConnection incomingConnection = null;
Message incomingMessage;


public PushDemo ()
{
display = Display.getDisplay(this);
alertIncomingMessage = new Alert("Incoming Message");
alertIncomingMessage.setTimeout(Alert.FOREVER);

cmExit = new Command("Exit", Command.EXIT, 1);
alertIncomingMessage.addCommand(cmExit);
alertIncomingMessage.setCommandListener(this);
}

public void startApp()
{
String connectList[];
connectList = PushRegistry.listConnections(true);
if (connectList == null || connectList.length == 0) {
//Started by the user,exit
destroyApp(false);
notifyDestroyed();
}
else { //started from incoming connection...
try {
incomingConnection = (MessageConnection) Connector.open("sms://:" +
incomingPortNum);
// Recieve the message
incomingMessage = incomingConnection.receive();

//If it's a text message add it to the alert
if (incomingMessage != null && incomingMessage instanceof TextMessage) {
alertIncomingMessage.setTitle("From: " + incomingMessage.getAddress());
alertIncomingMessage.setString( ( (TextMessage) incomingMessage).
getPayloadText());
//Display the message
display.setCurrent(alertIncomingMessage);
}
}
catch (Exception e)
{
System.out.println("IO Exception!");
}
}
}

public void pauseApp()
{
System.out.println("The pauseApp method is invoked");
}

public void destroyApp(boolean cond)
{
System.out.println("The destroyApp method is invoked");
}

/**Handle command events*/
public void commandAction(Command command, Displayable displayable) {
/** @todo Add command handling code */
if (command.getCommandType() == Command.EXIT) {
// stop the MIDlet
destroyApp(true);
}
}
}


Regards...
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sms midlet Poonam CLDC and MIDP 3 11-25-2009 03:47 PM
Writing MIDlet for SMS - VI JavaForums Java Blogs 0 04-11-2008 04:20 PM
how to send and receive data from servlet to applet Continuously ?? jega_ms Java Servlet 1 01-28-2008 11:49 AM
PC receive data via Bluetooth using JAVA toncoolx New To Java 0 11-27-2007 05:50 AM
Servlet that receive n parameters Felissa Java Servlet 1 06-07-2007 08:22 PM


All times are GMT +2. The time now is 10:11 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org