sms

How to receive SMS messages from a specific number?

不想你离开。 提交于 2019-12-11 12:13:41
问题 I want to receive messages from a specific number. When I run the app, I get messages from everyone in my inbox. I got the source code from this site (android authority) package com.nqr.smsapp; import android.Manifest; import android.content.ContentResolver; import android.content.pm.PackageManager; import android.database.Cursor; import android.net.Uri; import android.support.annotation.NonNull; import android.support.v4.content.ContextCompat; import android.support.v7.app.AppCompatActivity;

Android Deleting Sent SMS

流过昼夜 提交于 2019-12-11 11:42:10
问题 int rsRem = cntentRes.delete(Uri.parse("content://sms/"), "address=\"9xxxx9x9xx9x9\"", null); Above line of code is not working In rsRem receiving 0 (zero) after line execution... I am using Samsung core II to testing app having this code I am using following permissions <uses-permission android:name="android.permission.READ_SMS"/> <uses-permission android:name="android.permission.RECEIVE_SMS"/> <uses-permission android:name="android.permission.SEND_SMS"/> <uses-permission android:name=

Send attachments using sms/mms in iOS SDK

天涯浪子 提交于 2019-12-11 11:36:01
问题 In iOS 7, there is support for adding attachments in sms messages via third party applications. I want to know: What kind of files are supported as attachments? e.g. .png, .pdf etc. Can I send NSData through an sms/mms message? e.g. .dat format Would the recipient of these messages be able to open these attachments in third party applications using iOS's "Open In" feature? 回答1: The MFMessageComposeViewController wants the attachment to have the correct extension for the type of image you're

Sending SMS in background automatically in android

送分小仙女□ 提交于 2019-12-11 11:31:45
问题 I have developed an app for local people in my place to use the app in an emergency case. This app sends SMS automatically in the background every 15mins with their current location. This has been very useful for all the people in my place. Now after the new policy in effect for Send_SMS permission, I have been asked to remove send_sms permission. If I do that how do I send SMS automatically? The main idea of this App is that we don't need the internet. Can someone throw some idea on how to

iOS: Sending SMS [duplicate]

▼魔方 西西 提交于 2019-12-11 11:14:24
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How to programmatically send SMS on the iPhone? Does someone have an idea how to send sms in iOS5 without using the default iPhone/iPad app? I mean in my app, I have a textbox and button. When I hit the button whatever string that the textbox contains will be sent to the specified recipient. Is it possible? thanks,, 回答1: It's not possible - you have to use MFMessageComposeViewController . Example of using

window.open(“sms:…”) works for android but not for ios

不打扰是莪最后的温柔 提交于 2019-12-11 10:43:49
问题 I have this function, which pre-fills sms text message on click. This works on Android, but on any version if iOS, it just open new empty window. Any idea, why? var ua = navigator.userAgent.toLowerCase(); var url; if (ua.indexOf("iphone") > -1 || ua.indexOf("ipad") > -1) { var v = (navigator.appVersion).match(/OS (\d+)_(\d+)_?(\d+)?/); var ver = [parseInt(v[1], 10), parseInt(v[2], 10), parseInt(v[3] || 0, 10)]; if (ver[0] >= 8) { url = "sms:&body=" + encodeURIComponent("Hello guys, this is an

How to communicate with GSM modem from c++ code

橙三吉。 提交于 2019-12-11 10:21:46
问题 I have huawei GSM modem and I wish to read and send SMS from my c++ application. Does anybody know how to establish communication from code (what are communication protocols, I know how to connect to serial port and read and write data there). I have read something about AT commands but don't know how to apply it. 回答1: You just sent the AT commands as strings via the serial port 来源: https://stackoverflow.com/questions/22662436/how-to-communicate-with-gsm-modem-from-c-code

BroadcastReceiver onReceive is not fired

帅比萌擦擦* 提交于 2019-12-11 10:11:33
问题 I'm trying to cope with SMS receiving funcions in Android. I read a lot of related topics on Stackoverflow and other sites and I tried with a very simple Class that simply print on the console that a message has been received and the message, but I cannot figure out why it doesn't work. I see that similar questions remained unanswered in the past (see Android - Broadcast Receiver not being fired) Hope someone could find where's the problem with my code. Code: package com.storassa.android

How to send sms with URL_launcher package with flutter?

送分小仙女□ 提交于 2019-12-11 08:57:17
问题 Hello I search a simple example (Android and iOS) to send SMS with this package https://pub.dartlang.org/packages/url_launcher In the plugin page I only see how to open sms native app with phone number, but no extra message sms:<phone number>, e.g. sms:5550101234 Send an SMS message to <phone number> using the default messaging app 回答1: On Android the full sms: URI is supported and you can send a message with a body like that (RFC5724): _textMe() async { // Android const uri = 'sms:+39 348

Android read SMS messages

本秂侑毒 提交于 2019-12-11 08:46:43
问题 I'm trying to build an sms app and the only way I could find to read messages Is content://sms/inbox But I also read that is not recommended to use the specific content provider. 来源: https://stackoverflow.com/questions/22440773/android-read-sms-messages