Skip to main content

Posts

Showing posts with the label sms

While sending SMS, application is crashing

I want to send sms using below code in iPhone 4, but the application is crashing due to this code only. if ([MFMessageComposeViewController canSendText]) { MFMessageComposeViewController *smsComposerController = [[[MFMessageComposeViewController alloc] init] autorelease]; [smsComposerController setBody:@"First SMS"]; smsComposerController.recipients = [NSArray arrayWithObjects:@"9886333333",@"9980444444",nil]; smsComposerController.messageComposeDelegate = self; [smsComposerController release]; } I am new for SMS sending , so can any one help me what I am doing wrong?

How do I change the Android SMS tone despite of current SMS tone setting?

I have developed an Android application for changing ringtones. It works quite well, but one thing bothers me. When I set a ringtone as a notification tone, it plays when I receive an SMS message. However, if I have chosen a custom SMS tone earlier (ie. anything else than "Default ringtone" which is active by default) in the SMS settings, the new notification tone will not play when I receive an SMS. This might lead to a situation in which someone installs the ringtone app from the Android market, sets the notification tone and gets disappointed because the chosen notification will not play when (s)he receives an SMS. The solution is quite easy (SMS -> Settings -> Select ringtone -> Default ringtone), but it's truly a nuisance if (s)he doesn't know this. This is what I use to set the notification tone: values.put(MediaStore.Audio.Media.IS_RINGTONE, true); values.put(MediaStore.Audio.Media.IS_NOTIFICATION, true); values.put(MediaStore.Audio.Media.IS_AL

How do I change the Android SMS tone despite of current SMS tone setting?

I have developed an Android application for changing ringtones. It works quite well, but one thing bothers me. When I set a ringtone as a notification tone, it plays when I receive an SMS message. However, if I have chosen a custom SMS tone earlier (ie. anything else than "Default ringtone" which is active by default) in the SMS settings, the new notification tone will not play when I receive an SMS. This might lead to a situation in which someone installs the ringtone app from the Android market, sets the notification tone and gets disappointed because the chosen notification will not play when (s)he receives an SMS. The solution is quite easy (SMS -> Settings -> Select ringtone -> Default ringtone), but it's truly a nuisance if (s)he doesn't know this. This is what I use to set the notification tone: values.put(MediaStore.Audio.Media.IS_RINGTONE, true); values.put(MediaStore.Audio.Media.IS_NOTIFICATION, true); values.put(MediaStore.Audio.Media.IS_AL