sms

send sms programmatically on iPhone

吃可爱长大的小学妹 提交于 2019-12-31 07:31:19
问题 in my application I want to send predefine smstext to one single number on certain event , how to send sms like that? 回答1: You cannot send an SMS without user intervention. However, with the user's "approval" there are two ways to send an SMS from an iPhone application. Apple's MessageComposer sample project has code that shows you how to send an SMS using the MFMessageComposeViewController class. Alternatively, you can use: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@

SMS body in iphone SDK

不羁的心 提交于 2019-12-31 04:20:13
问题 I need to send an SMS from my iphone app. the body of the SMS is created programatically. so when i tap on a button the SMS application should get opened with my message pre-typed in it. anybody knows how to do it? need help Thanks in advance. Shibin 回答1: You can't set the SMS body. The only things you can do from your code, as per the official SDK, is 1) to open the SMS application: NSString *stringURL = @"sms:"; NSURL *url = [NSURL URLWithString:stringURL]; [[UIApplication sharedApplication

Google Voice SMS intent

北城以北 提交于 2019-12-31 04:07:08
问题 Right now I'm trying to create an SMS intent with a populated number. Intent sendIntent = new Intent(Intent.ACTION_VIEW); sendIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); sendIntent.setData(Uri.parse("smsto:"+phoneNumber)); context.startActivity(sendIntent); setResultData(null); this works fine with the phone's SMS app, however the problem is that if Google Voice is installed and the user selects this option rather than the normal SMS app, google voice won't populate the number. Is there a

How to send SMS message reply to email address?

蓝咒 提交于 2019-12-31 04:05:05
问题 I have a simple SMS Activity that replies to a SMS message that was sent to the phone. Some SMS messages have the originating address as an email address. How do you compose a reply SMS message that can successfully be sent back? 回答1: So the solution to this seemed to be this: Each cell carrier has a specific SMS number that you can send a text message to in a certain format. This is called a "SMS Gateway". (Similarly, there are gateways to send SMS messages from Email addresses.) Example: AT

Twilio webhook sms response format

只谈情不闲聊 提交于 2019-12-30 22:55:45
问题 I'm using Twilio with my app and I have sms webhooks with my SMS numbers configured with URL. Everything is working except that Twilio send me an error in logs for each requests. I suppose that the response from my app is not well formated but I can't find on documentation how to format using JSON. Can someone help me ? :) Thanks, Gabriel 回答1: Twilio developer evangelist here. When you return a webhook message to Twilio, you need to make sure it's valid TwiML, which in essence is just a set

Difficulty in sending location of user 1 to user 2 and user 2's location to user 1?

流过昼夜 提交于 2019-12-30 16:17:14
问题 I have a code which sends location of user 1 to user 2 and user 2's location to user 1 . The location of user 1 is send perfectly to user 2 and user 2 is even sending a message back to user 1 but the location which it is sending is the location of user 1 not his (user 2) location. Here is my code: package com.example.gui; import android.app.Activity; import android.app.PendingIntent; import android.content.BroadcastReceiver; import android.content.ContentResolver; import android.content

Send sms using sim selection option

扶醉桌前 提交于 2019-12-30 14:17:30
问题 I have tried Android SDK above 5.1 OS. I want to send sms using SIM selection option. I tried this Program. It's taking sim1 only. It does not take second sim. My Program public class MainActivity extends AppCompatActivity { Context mContext = MainActivity.this ; String SENT = "SMS_SENT"; String DELIVERED = "SMS_DELIVERED"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); sendSMS("XXXXXXXX77","Sent by

Send sms using sim selection option

纵然是瞬间 提交于 2019-12-30 14:17:14
问题 I have tried Android SDK above 5.1 OS. I want to send sms using SIM selection option. I tried this Program. It's taking sim1 only. It does not take second sim. My Program public class MainActivity extends AppCompatActivity { Context mContext = MainActivity.this ; String SENT = "SMS_SENT"; String DELIVERED = "SMS_DELIVERED"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); sendSMS("XXXXXXXX77","Sent by

Sending SMS using Java ME application

流过昼夜 提交于 2019-12-30 13:59:23
问题 I want to a Java ME application that transfers any SMS received to a PC using bluetooth. The PC can then direct the Java ME application via bluetooth to send a response SMS. Is there library available for this architecture or I have to design it myself? Is this approach correct or a better one exists? I want to use bluetooth as then I will not have dependency on the cable. 回答1: You'll need to create this yourself, however you'll find that you can't do what you want with J2ME. J2ME can't

Sending SMS using Java ME application

心不动则不痛 提交于 2019-12-30 13:58:07
问题 I want to a Java ME application that transfers any SMS received to a PC using bluetooth. The PC can then direct the Java ME application via bluetooth to send a response SMS. Is there library available for this architecture or I have to design it myself? Is this approach correct or a better one exists? I want to use bluetooth as then I will not have dependency on the cable. 回答1: You'll need to create this yourself, however you'll find that you can't do what you want with J2ME. J2ME can't