| Reply | « Previous Thread | Next Thread » |
|
Hi,
I'm doing a sms application. My doubt is :When a message is received from a mobile number,and if that mobile number is saved in my phone book i should replace that number with the name which is stored in my phone book. I'm using PIM api to read the contacts from the phone memory. Can you please tell me how i can replace the number with the name? Thanks, |
| nagesh.chetana |
| View Public Profile |
| Find all posts by nagesh.chetana |
|
Hi nagesh.chetana,
if you're handling the incoming SMS in your MIDlet then, once retrieved the contact name, you can simply show it instead of the SMS sender number. Or am I missing something? Pit |
|
Hi Jappit,
Thanks for ur reply. As im a newbie to this J2ME, i'm not able to get it. The thing is, i have to receive the message, read the contents of the message, when i click on the message which is received it should display the "From field" with the contact name, if that number is present in the phone book memory. i have these files:- SMSReceiveMidlet file to receive the message Personal information files - Midlet file and ReadPim file. How can i link these two files, so wen a msg is received the name is displayed. Please reply ASAP
Last edited by nagesh.chetana : 2009-03-16 at 06:48.
|
| nagesh.chetana |
| View Public Profile |
| Find all posts by nagesh.chetana |
|
Hi Chetana,
After receiving SMS, and retrieving the phone number it came from, You need to have a method in your ReadPim which returns you name of contact for that number. Then while showing the SMS to user in ur application just replace the field for the number with the name. au revoir Prakash Raman |
| prakash.raman |
| View Public Profile |
| Find all posts by prakash.raman |
|
Quote:
Ya i have read method which reads the name and contact number. The problem im facing is linking the files which i have |
| nagesh.chetana |
| View Public Profile |
| Find all posts by nagesh.chetana |
|
Chetana, i am not able to get what files u are talking about. can u put up a sample of ur code here so that i can give u right solution?
au revoir Prakash Raman |
| prakash.raman |
| View Public Profile |
| Find all posts by prakash.raman |
|
Quote:
There are 3 files - SMSReceive Midlet file PIM Midlet file and ReadPim file. i'm unable to establish the connection between these three files. Can i chat with u through the MSN messenger. |
| nagesh.chetana |
| View Public Profile |
| Find all posts by nagesh.chetana |
|
Chetana, I am not using MSN, if u want we can chat on gtalk. Is these files u are talking about are classes i guess.
au revoir Prakash Raman |
| prakash.raman |
| View Public Profile |
| Find all posts by prakash.raman |
|
Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
raj_J2ME
Offline
Forum Nokia Champion
|
|
Hi,
I guess that the PIM midlet is the first midlet that start the application...and then you are receiving the sms and then finding the name of the Contact..correct..You have to to just draw the total information on the canvas or form.... the flow can be like this- MainMidlet->SMSRecieve->then Draw the information(Canvas/form)class check whether this makes sense. Thanks R a j - The K e r n e l |
|
Quote:
Can u please provide me ur gmail id. |
| nagesh.chetana |
| View Public Profile |
| Find all posts by nagesh.chetana |
|
unable to delete this message.
au revoir Prakash Raman
Last edited by prakash.raman : 2009-03-16 at 09:34.
|
| prakash.raman |
| View Public Profile |
| Find all posts by prakash.raman |
|
Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
raj_J2ME
Offline
Forum Nokia Champion
|
|
Hey,
Please list the number of canvases,midlet,with name..will be simpler to make this perfect in flow..for you. Thanks R a j - The K e r n e l |
|
Thanks, have sent u the invitation
|
| nagesh.chetana |
| View Public Profile |
| Find all posts by nagesh.chetana |
|
Quote:
Ya u r rite. PIM midlet is the first midlet that starts the application...and then im receiving the sms and then finding the name of the Contact through another class called ReadPim. i hve to draw it on the form, but not sure how to do it. Can u please tell me. Midlet files -SMSReceive Midlet file and PIM Midlet file class files -Readpim, smssend, smssender |
| nagesh.chetana |
| View Public Profile |
| Find all posts by nagesh.chetana |
|
Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
raj_J2ME
Offline
Forum Nokia Champion
|
||
|
Quote:
Quote:
MyMidlet - RecieveSMS..then Form or Canvas 1.Make the RecieveSMS object in the midlet and set is displayable.. 2.as soon as you receive the sms,fetch the name .. 3.Then in RecieveSMS class make the object of the form and append the same on form..and then append the form.. simple,Is this make sense, Thanks R a j - The K e r n e l |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Simulate key event in Messaging app | Gardhul | Symbian User Interface | 1 | 2006-11-30 15:45 |
| OpenGL ES app is not trusted | mribble | Installation, Certification and Security | 7 | 2006-11-03 23:48 |
| Help Needed. how to install symbian app in N60??? | CallCenterAgent | General Symbian C++ | 2 | 2005-11-02 09:51 |
| 3510i not support messaging app. : could i upgrade to support it | plauret2 | General Messaging | 0 | 2005-05-24 00:45 |
| 9210 - CCoeFep::WriteAttributeData AndBroadcastL crashes Messaging app | mgroeber9110 | General Symbian C++ | 0 | 2002-06-03 15:40 |