You Are Here:

Community: Developer Discussion Boards

#1 Old sms tone problem - 2008-08-18, 14:12

Join Date: Aug 2008
Posts: 148
cool_eagle
Offline
Regular Contributor
i m trying to write new app...
i wantto play another sms ound for each contact
my code is:
Code:
import inbox, e32, appuifw,contacts, audio

db = contacts.open()
names = [db[r].title for r in db]
r = appuifw.selection_list(names)
k= names [r]

def cb(id):
    id=i.sms_messages()[0]
    a=i.address(id)
    if k == a :
        p=audio.Sound.open("C:\\music.mp3")
        p.play()

i=inbox.Inbox()

i.bind(cb)
BUT JUST PLAY NOKIA SMS TONE
MY TONE DOESN'T PLAY
Last edited by cool_eagle : 2008-08-18 at 14:17.
Reply With Quote

#2 Old Re: sms tone problem - 2008-08-18, 14:15

Join Date: Dec 2004
Posts: 37
n6630
Offline
Registered User
U forgot to import audio module
Reply With Quote

#3 Old Re: sms tone problem - 2008-08-18, 14:18

Join Date: Aug 2008
Posts: 148
cool_eagle
Offline
Regular Contributor
Quote:
Originally Posted by n6630 View Post
U forgot to import audio module
but now dont play my tone
just playing nokia sms tone
Reply With Quote

#4 Old Re: sms tone problem - 2008-08-18, 14:30

Join Date: Aug 2008
Posts: 148
cool_eagle
Offline
Regular Contributor
HELP MEEE
Reply With Quote

#5 Old Re: sms tone problem - 2008-08-18, 14:33

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Quote:
Originally Posted by cool_eagle View Post
HELP MEEE
Is music.mp3 a Nokia tone ?

Best Regards,
Croozeus
Reply With Quote

#6 Old Re: sms tone problem - 2008-08-18, 14:38

Join Date: Aug 2008
Posts: 148
cool_eagle
Offline
Regular Contributor
Quote:
Originally Posted by croozeus View Post
Is music.mp3 a Nokia tone ?

Best Regards,
Croozeus
nooo
i wanna play music.mp3 whit new sms
but my phone is play nokia sms tone
Reply With Quote

#7 Old Re: sms tone problem - 2008-08-18, 14:41

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Quote:
Originally Posted by cool_eagle View Post
nooo
i wanna play music.mp3 whit new sms
but my phone is play nokia sms tone
Definitely its going to play the Nokia SMS tone - because your profile has it personalized.

Personalize your profile-> SMS Alert Tone -> Off

And activate the profile.

Hope that helps,

Best Regards,
Croozeus
Reply With Quote

#8 Old Re: sms tone problem - 2008-08-18, 14:43

Join Date: Aug 2008
Posts: 148
cool_eagle
Offline
Regular Contributor
Quote:
Originally Posted by croozeus View Post
Definitely its going to play the Nokia SMS tone - because your profile has it personalized.

Personalize your profile-> SMS Alert Tone -> Off

And activate the profile.

Hope that helps,

Best Regards,
Croozeus
but i wanna 1 contact's tone
this is changing all of sms tone
Reply With Quote

#9 Old Re: sms tone problem - 2008-08-18, 14:46

Join Date: Aug 2008
Posts: 148
cool_eagle
Offline
Regular Contributor
Quote:
Originally Posted by cool_eagle View Post
but i wanna change 1 contact's tone
this is changing all of sms tone
can u help me
Reply With Quote

#10 Old Re: sms tone problem - 2008-08-18, 14:50

Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
Offline
Forum Nokia Champion
cool_eagle, please be patient and avoid making unnecessary posts. You will get an answer when someone who knows the solution (if there is one) posts.
Reply With Quote

#11 Old Re: sms tone problem - 2008-08-18, 14:53

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Quote:
Originally Posted by cool_eagle View Post
but i wanna 1 contact's tone
this is changing all of sms tone
Hmph,

Is what I said greek ?

You want a SMS tone personalizer, I understand that.
Now if you want to have a personalized tone for each contact, how could you do it with only one music file ?

So just think what might work. May be more music files is what you need

Best Regards,
Croozeus
Reply With Quote

#12 Old Re: sms tone problem - 2008-08-19, 04:07

Join Date: Dec 2007
Posts: 409
Location: Tempe, AZ
Send a message via Yahoo to shubhendra Send a message via Skype™ to shubhendra
shubhendra's Avatar
shubhendra
Offline
Forum Nokia Champion
Croozeus is perfectly right, you can't do customization with the code you have written.

regards,
seer busy in Technical Fest.


IDEAS is all they need but still they think only Genius can give them that.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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 On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Sending an SMS one after the other in my J2ME appliaction deepu28 Mobile Java Networking & Messaging & Security 1 2008-02-21 10:28
6310i 4.80 bugs + few words about Nokia politics + other feedback mwiacek General Messaging 2 2007-11-10 14:19
recieve SMS problem ahsamah General Messaging 5 2004-03-09 15:12
Problem sending SMS using Nokia 6210 and SDK 2.1 standi PC Suite API and PC Connectivity SDK 2 2002-07-25 04:14

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