sms

Sending text messages programmatically in android

北慕城南 提交于 2019-12-17 02:34:26
问题 OK. I am sending text messages through my app. After a text message is sent, it sends a status update to a server. This portion works okay, but the problem I am running into is twofold. I am not sure if they are related, but I assume that they are. My app has the ability to send a single text to multiple users. Here is a sample of the code... if(phoneNumbers.length > 0 && message.getText().toString().equals("") == false) { for(int i=0;i<phoneNumbers.length;i++) { sms = SmsManager.getDefault()

How to pre-populate the sms body text via an html link

心不动则不痛 提交于 2019-12-17 02:28:16
问题 How to use an html link to open the sms app with a pre-filled body? Everything I have read seems to indicate that sms:18005555555?body=bodyTextHere Should work, but on the iPhone, this doesn't work. If I take out the ?body=bodyTextHere, and just use sms:phonenumber, it works. I have seen several instances where QR codes do this through a safari link. How are they able to pre-populate the body text? 回答1: It turns out this is 100% possible, though a little hacky. If you want it to work on

How to send a SMS using SMSmanager in Dual SIM mobile?

只谈情不闲聊 提交于 2019-12-17 02:10:35
问题 Am using SMS manager to send SMS.For single SIM its works perfectly to send the SMS.but in dual SIM the SMS will not send.Is it possible to send the SMS from dual SIM,if possible means how can i select the Which SIM to send SMS.Can any one know help me to solve this issue. Single SIM working Code SmsManager smsManager = SmsManager.getDefault(); smsManager.sendTextMessage(ph_number, null, body, null,null); 回答1: I use this way to manage which sim to use for sending SMS even long message .. Its

Unable to send SMS through C# code using System.IO.Ports using gsm modem

余生长醉 提交于 2019-12-16 22:17:16
问题 A button, when clicked, sends an sms to the number entered in NumTxt textbox, and sends the text entered in SMSTxt textbox. Port name entered in texbox ComPort Here's the event handler of the button click event. using System.IO.Ports; private void button1_Click(object sender, EventArgs e) { try { int mSpeed = 1; serialport.PortName = ComPort.Text; serialport.BaudRate = 96000; serialport.Parity = Parity.None; serialport.DataBits = 8; serialport.StopBits = StopBits.One; serialport.Handshake =

Can we delete an SMS in Android before it reaches the inbox?

ぐ巨炮叔叔 提交于 2019-12-16 20:02:35
问题 I am deleting an SMS from the inbox but I want to know: How can I delete it before it reaches the inbox? 回答1: Yes. Despite some negative reactions to this question, there are legitimate uses for SMS interception. For example: automating phone number verification, services which are provisioned via SMS (though generally this should be done with data SMS), or for applications which otherwise improve the user experience by processing specially-formatted messages in order to show them in a nice

android - Inserting, Updating, Deleting SMS using ContentResolver

一世执手 提交于 2019-12-16 18:06:08
问题 I've got a little problem, using the ContentResolver for inserting, updating and deleting a SMS on my Nexus 5. I searched a lot and tried everything which was suggested, but my smartphone still does not want to change it's entries in the SMS-database. My Code for deleting all SMS with a specific address looks like this: int i = a.getContentResolver().delete(Telephony.Sms.CONTENT_URI, Telephony.Sms.ADDRESS + "=?", new String[] { "0820800650" }); The return value is 0, for whatever condition I

Send SMS from jailbroken iPhone

僤鯓⒐⒋嵵緔 提交于 2019-12-14 04:25:50
问题 What is the best way to programmatically send an SMS from the iPhone? Talking to the modem on /dev/tty.debug or using private API are options. I want to make a command line SMS utility, and I want it to work on 3.x -> 4.x iOS. Also I couldn't make it work with AT+CMGF=1 & AT+CMGS="[PHONE_NUM]"\r\n[MSG]\x1A (Talking to tty.debug, iPhone 3GS iOS 4.1). 回答1: You can probably have a look at this project which seems to achieve what you want: http://code.google.com/p/iphone-sms/ 来源: https:/

How to read SMS stored in SIM card in Android

青春壹個敷衍的年華 提交于 2019-12-14 04:14:11
问题 I was wondering if anyone knew anything about programmatically getting the SMS messages off of your phone's sim card on an android platform. I would like to write a program that allows you to save either individual messages or entire threads to the SD card, but after looking around for a bit, I have discovered that google decided to take out that api from the current android SDK. I saw in a few places that there are hidden APIs for this, but no one knew what they were or how to use them. 回答1:

Restore Sms : create thread if not exists

泄露秘密 提交于 2019-12-14 03:23:39
问题 I'm creating an Android app able to restore SMS from webservice. I insert SMS in existing conversations and it works fine. But, if the conversation does not exists, the sms are restored but they don't appears in the sms app... I think I have to create a new thread (a new conversation). ContentValues initialValues; initialValues = new ContentValues(); initialValues.put("_id", talk.getId()); initialValues.put("recipient_ids", talk.getContact().getId()); context.getContentResolver().insert(Uri

send SMS for 1 time with arduino GPRS SIM900 if an iput is HIGH

不羁岁月 提交于 2019-12-14 03:19:57
问题 I faced a problem to send 1 SMS if an input is HIGH,and if it is LOW==> no SMS to send,if LOW to HIGH==> send 1 SMS. this code not working,just sent SMS when I turn the GPRS on,and after nothing is happened. mclopez helped me,thank you,but not working :( , this is the new code that I wrote with the delay()s,but the same problem. Thank you for helping in advance. #include <SoftwareSerial.h> #include "TimerOne.h" const int DI = 2; const int DT = 3; const int DGP1 = 4; const int DGP2 = 5; const