Link to home
Start Free TrialLog in
Avatar of darkapple
darkappleFlag for Nepal

asked on

Create Interactive mobile application

I want to create an application for mobile devices using J2ME. I've created an application that can send data to server but i'm quite unable to get the response data directly through this application. The server is sending data through sms and i'm unable to access data arrived in inbox.

Is there a way so that my server application can send data directly to my client application or should i listen to some port.

Or is there is way so that my client application can check the data sent through sms in inbox.

please help me with sample code and description.
SOLUTION
Avatar of MicheleMarcon
MicheleMarcon
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of darkapple

ASKER

i want some advice on how to access inbox through a J2ME base application?
What do you mean by "inbox?" If you build an sms application like the one MicheleMarcon suggests then it is a stand alone application. Are you referring to  the inbox of the OS on a specific phone? What server are you using? Can you post the code that you have? Thanks
Its inbox of the OS on a specific phone. I'm implement SMS through SMPP protocol. My application in mobile sends message through SMS and the server responce through another SMS to the mobile not to the mobile application.

Now i want to know how to access that sms in inbox.
Can you identify the OS of the phone? This is important. For example, If you are looking at Nokia, then it is not possible on S40 series, it might be possible on S60 series, but you would need to program in C++ for Symbian.  Android would be a better platform to try this on because it is open source.
we need to do it for general phone, so that our costumers can interact with our system.

If Symbian C++ is the choice, where should i start, what should i learn.

please help.
Hi darkapple, sorry for the delay.

The following link should be helpful. I have not tested the code, but I have little reason to doubt Nokia:
http://www.forum.nokia.com/info/sw.nokia.com/id/5f17ccde-249e-4c7d-ace9-980095ea5db1/S60_Platform_SMS_Example_v2_0_en.zip.html 
"Messages can be sent from the application and they can be received directly into the application (i.e., catching incoming messages before the user gets any notification). In addition, messages can be deleted, copied, or moved to other folders of the message store (inbox, outbox, drafts)."

You may want to post a message/search on the nokia forums for yourself. Here is a link that may be useful:
http://discussion.forum.nokia.com/forum/showthread.php?t=55343

You could try posting in the Symbian TA here at EE:
https://www.experts-exchange.com/Programming/Handhelds_-_PDAs/EPOC_-_Symbian_OS_Programming/

Here is a related question from that TA (for pocketpc):
https://www.experts-exchange.com/questions/20543290/Reading-SMS-messages-inbox-in-pocketpc-2002.html?sfQueryTermInfo=1+inbox+sm

Hope it's helpful.
thanks codefish, it did help me but i doubt will these symbian based application will work fine with other handheld devices since our application may make equal conversation with both symbian non-symbian handhelds.

Please suggest me any other idea if not.

Can we listen to the mail incoming port through java based application??

darkapple
>>Can we listen to the mail incoming port through java based application??

Yes. You can listen, but you cannot send messages from the inbox with J2ME.

I believe this is what you are looking for:

http://wiki.forum.nokia.com/index.php/CS000981-_Listening_for_incoming_SMS_messages:_Asynchronous_version

The code on that page is listed as for  Nokia S60 devices. I have not had a chance to test it fully on Nokia S40, but I think it will work.

The example listens on port 5000, I believe you want it to listen on port 0 in order to intercept the inbox. I'm not sure if this is possible. I will need at least the weekend to test it out. Work is very busy now.

Please feel free to post a request for additional assistance. Either way I will get back to you by Monday.
Sorry codefish, i was bit busy this week.

and have you tested the application using port 0, i'm not getting time for testing. Also i'm confused whether this application will run smoothly on other mobile sets like Sony Ericsson, Motorola etc. etc. coz our application is to be distributed and to different customer?

Thanx a lot codefish.
Appriciated.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
codefish, thanks a lot. I'll try this code soon.

 I was initially thinking of receiving messages through port 0 and failed. thanks for your guidance.

There is no way around this in J2ME. If you want to catch sms messages sent to the inbox you will need to do it in another language.

Do i have to opt Symbian C++?

thanx once again?
Thanx codefish & MicheleMarcon:.. I appreciate your patience and help and Happy New Year.