sms

Create PDU for Android

谁说我不能喝 提交于 2019-12-21 20:50:04
问题 I am currently writing and application, that is sending/receiving SMS messages. For unit-testing purposes I need to create PDU programmatically. Decoding is quite easy: Bundle bundle = intent.getExtras(); if (bundle != null) { /* Get all messages contained in the Intent*/ Object[] pdusObj = (Object[]) bundle.get("pdus"); for (int i = 0; i < pdusObj.length; i++) { SmsMessage msg = SmsMessage.createFromPdu((byte[])pdusObj[i]); } } Is there any appropriate way to create PDU programamtically? 回答1

How to get contact name when receiving SMS

冷暖自知 提交于 2019-12-21 20:25:27
问题 I have the following code to receive an SMS and I am trying to get the contact name. package com.example.smsTest; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.provider.ContactsContract; import android.provider.ContactsContract.PhoneLookup; import android.telephony.SmsMessage; import android.widget.Toast; public class SmsReceiver extends

How to Know which Sms is sent/delivered from Android BroadcastReceiver?

流过昼夜 提交于 2019-12-21 19:52:49
问题 Hi Guys I have made simple app to send multiple SMS on android, and I cannot find known which sms is Sent/Delivered, because the delivery notification does not tell for which it is. here is my code : this.destination = data[0]; this.body = data[1]; PendingIntent piSend = PendingIntent.getBroadcast(aCtx, 0, new Intent(Cons.SMS_SENT),0); PendingIntent piDelivered = PendingIntent.getBroadcast(aCtx, 0, new Intent(Cons.SMS_DELIVERED), 0); SmsManager smsManager = SmsManager.getDefault(); smsManager

basic concept for sending receiving sms from C# application using gsm modem

冷暖自知 提交于 2019-12-21 18:12:49
问题 Can anyone explain me the basic concept or provide me any documentation on sending receiving the sms using the gsm modem connected to pc via a C# application. I did find lot of source codes but not able to get what is the procedure or algorithm behind it. One such link is here http://www.freestudentprojects.com/c-net-projects/send-and-receive-sms-in-net-using-gprs-modem/ I downloaded the source code but the things are not quite clear. thanks, s 回答1: You need ATCommands to communicate with GSM

Generate VCard and Send Via Twilio

三世轮回 提交于 2019-12-21 17:55:10
问题 I am writing a Twilio + Parse app which lets users share their contact info via SMS. I have a sample Vcard as a string in javascript: message = ''; message += 'BEGIN:VCARD'; message += 'BDAY;VALUE=DATE:1963-09-21'; message += 'VERSION:3.0'; message += 'N:Stenerson;Derik'; message += 'FN:Derik Stenerson'; message += 'ORG:Microsoft Corporation'; message += 'ADR;TYPE=WORK,POSTAL,PARCEL:;;One Microsoft Way;Redmond;WA;98052-6399;USA'; message += 'TEL;TYPE=WORK,MSG:+1-425-936-5522'; message += 'TEL

how can i send sms programmatically in react-native? [closed]

会有一股神秘感。 提交于 2019-12-21 16:56:50
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 3 years ago . I'm new in react native. I want to add a component for sending SMS in my android application and i have tried several different components but every time i got some errors. Is anyone here done this successfully? please help me. This is the last error I've got. 回答1: I recommend this for sending SMS:

Android - determining why SMS sending failed

泄露秘密 提交于 2019-12-21 12:37:44
问题 I have an reminder app which will send an SMS to notifiy the user that their reminder time has passed. This works well. However, I've been testing what happens when the phone has been asleep and missed an reminder. I'm using AlarmManager to set up alarms to correspond to reminder times. My logging shows that the alarm went off when the phone reboots and an attempt to send an SMS happens, but the SMS is never received. So the question is, is there a way to debug why an SMS is not sent? My

send a text message via .net

青春壹個敷衍的年華 提交于 2019-12-21 08:15:09
问题 All: Are there any free solutions out there for sending text messages (SMS) via .net? (maybe a web service or something?). EDIT What I'm really looking for is a reference for a reputable online service that I can use for sending SMS messages. Has anyone out there used such a service, and if so, can you give me a recommendation/warning? EDIT (first the disclaimer: I'm not in any way associated with this company, I'm just posting back what I found, in case anyone else out there is looking) An

how to send HTTP request by GET method in PHP to another website

陌路散爱 提交于 2019-12-21 07:35:05
问题 I'm developing a web application for sending SMS to mobile from website like 160by2. I can prepare the URL required for the HTTP GET request as mentioned in the API provided by the SMS Gateway provider smslane.com, here is the link for the API. how to send the HTTP request from PHP? I used cURL for that purpose but the response is not displayed. here is the code i used, <?php $url="http://smslane.com/vendorsms/pushsms.aspx?user=abc&password=xyz&msisdn=919898123456&sid=WebSMS&msg=Test message

Android: Opening SMS activity with multiple recipients specified

大憨熊 提交于 2019-12-21 07:01:41
问题 I am trying to start the phone set sms provider by starting an intent. The code I am using below is what I am using to start the intent. Intent sendIntent = new Intent(Intent.ACTION_VIEW); StringBuilder uri = new StringBuilder("sms:"); for (int i = 0; i < contacts.size(); i++) { uri.append(contacts.get(i).getNumber()); uri.append(", "); } sendIntent.putExtra("sms_body", ""); sendIntent.setType("vnd.android-dir/mms-sms"); sendIntent.setData(Uri.parse(uri.toString())); startActivity(sendIntent)