You Are Here:

Community: Developer Discussion Boards

Reply « Previous Thread | Next Thread »

#1 Old Help needed regarding messaging app - 2009-03-14, 11:52

Join Date: Jul 2008
Posts: 148
nagesh.chetana
Offline
Regular Contributor
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,
Reply With Quote

#2 Old Re: Help needed regarding messaging app - 2009-03-14, 22:41

Join Date: Nov 2007
Posts: 2,029
Location: Rome, Italy
Send a message via MSN to jappit Send a message via Skype™ to jappit
jappit's Avatar
jappit
Offline
Forum Nokia Champion
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


www.jappit.com - mobile and web blog
Reply With Quote

#3 Old Re: Help needed regarding messaging app - 2009-03-16, 06:38

Join Date: Jul 2008
Posts: 148
nagesh.chetana
Offline
Regular Contributor
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.
Reply With Quote

#4 Old Re: Help needed regarding messaging app - 2009-03-16, 06:54

Join Date: Jun 2007
Posts: 534
Location: Mumbai
Send a message via Yahoo to prakash.raman
prakash.raman's Avatar
prakash.raman
Offline
Super Contributor
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
Reply With Quote

#5 Old Re: Help needed regarding messaging app - 2009-03-16, 08:12

Join Date: Jul 2008
Posts: 148
nagesh.chetana
Offline
Regular Contributor
Quote:
Originally Posted by prakash.raman View Post
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.
Hi Prakash,

Ya i have read method which reads the name and contact number.
The problem im facing is linking the files which i have
Reply With Quote

#6 Old Re: Help needed regarding messaging app - 2009-03-16, 08:25

Join Date: Jun 2007
Posts: 534
Location: Mumbai
Send a message via Yahoo to prakash.raman
prakash.raman's Avatar
prakash.raman
Offline
Super Contributor
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
Reply With Quote

#7 Old Re: Help needed regarding messaging app - 2009-03-16, 09:06

Join Date: Jul 2008
Posts: 148
nagesh.chetana
Offline
Regular Contributor
Quote:
Originally Posted by prakash.raman View Post
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?
Hi Prakash,

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.
Reply With Quote

#8 Old Re: Help needed regarding messaging app - 2009-03-16, 09:21

Join Date: Jun 2007
Posts: 534
Location: Mumbai
Send a message via Yahoo to prakash.raman
prakash.raman's Avatar
prakash.raman
Offline
Super Contributor
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
Reply With Quote

#9 Old Re: Help needed regarding messaging app - 2009-03-16, 09:25

Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
Send a message via Skype™ to raj_J2ME
raj_J2ME's Avatar
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
Reply With Quote

#10 Old Re: Help needed regarding messaging app - 2009-03-16, 09:25

Join Date: Jul 2008
Posts: 148
nagesh.chetana
Offline
Regular Contributor
Quote:
Originally Posted by prakash.raman View Post
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.
Ya those are the classes.
Can u please provide me ur gmail id.
Reply With Quote

#11 Old Re: Help needed regarding messaging app - 2009-03-16, 09:29

Join Date: Jun 2007
Posts: 534
Location: Mumbai
Send a message via Yahoo to prakash.raman
prakash.raman's Avatar
prakash.raman
Offline
Super Contributor
unable to delete this message.


au revoir
Prakash Raman
Last edited by prakash.raman : 2009-03-16 at 09:34.
Reply With Quote

#12 Old Re: Help needed regarding messaging app - 2009-03-16, 09:30

Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
Send a message via Skype™ to raj_J2ME
raj_J2ME's Avatar
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
Reply With Quote

#13 Old Re: Help needed regarding messaging app - 2009-03-16, 09:31

Join Date: Jul 2008
Posts: 148
nagesh.chetana
Offline
Regular Contributor
Thanks, have sent u the invitation
Reply With Quote

#14 Old Re: Help needed regarding messaging app - 2009-03-16, 10:08

Join Date: Jul 2008
Posts: 148
nagesh.chetana
Offline
Regular Contributor
Quote:
Originally Posted by raj_J2ME View Post
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.
Hey Raj,

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
Reply With Quote

#15 Old Re: Help needed regarding messaging app - 2009-03-16, 10:24

Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
Send a message via Skype™ to raj_J2ME
raj_J2ME's Avatar
raj_J2ME
Offline
Forum Nokia Champion
Quote:
Originally Posted by nagesh.chetana View Post
Hey Raj,

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
See,this quoted line makes me confuse(Forgive me if I am wrong)
Quote:
Midlet files -SMSReceive Midlet file and PIM Midlet file
I guess you have one midlet,One canvas,one form java file...forget about the classes.
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 With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia