sms

How can I mute incoming iPhone text messages programmatically?

∥☆過路亽.° 提交于 2019-12-23 08:55:10
问题 I'm currently trying to use the AVSystemController private framework to mute system noises based on the user's selection. I'm currently muting phone calls by calling: [(AVSystemController object) setVolumeTo:0.0 forCategory:@"Ringtone"]; Is there a command to do that for incoming text messages? I imagine it would be based on a change in the category identified in that call. However, I can't find a list of categories to reference. Of the 10 I've been able to find (Alert, Audio/Video, Ringtone,

Casting a java Object to Object[] in Scala

。_饼干妹妹 提交于 2019-12-23 07:47:10
问题 Hi working on an Android SMS application in scala alls going fine expect I just cant find the way to write the following java code in scala. Any help appreciated //---retrieve the SMS message received--- Object[] pdus = (Object[]) bundle.get("pdus"); msgs = new SmsMessage[pdus.length]; for (int i=0; i<msgs.length; i++){ msgs[i] = SmsMessage.createFromPdu((byte[])pdus[i]); I must admit I dont know how to write Object[] in scala its not java.util.ArrayList[java.lang.Object] I have tried using

How to extract data from a received sms and use it in another activity?

妖精的绣舞 提交于 2019-12-23 06:00:26
问题 I have an application which requires data to be fetched from a received message and then pass this data to another activity for other uses.I have extracted the data from a received sms but how can I pass this from current java file to use it in other java file ? public class ReceivelocationActivity extends BroadcastReceiver { private LocationManager hdLocMgr; private String hdLocProvider; @Override public void onReceive(Context context, Intent intent) { // TODO Auto-generated method stub

How to extract data from a received sms and use it in another activity?

ぃ、小莉子 提交于 2019-12-23 05:59:09
问题 I have an application which requires data to be fetched from a received message and then pass this data to another activity for other uses.I have extracted the data from a received sms but how can I pass this from current java file to use it in other java file ? public class ReceivelocationActivity extends BroadcastReceiver { private LocationManager hdLocMgr; private String hdLocProvider; @Override public void onReceive(Context context, Intent intent) { // TODO Auto-generated method stub

Is there any way to block SMS programmatically in Android KitKat?

寵の児 提交于 2019-12-23 04:43:52
问题 Is this completely and utterly impossible in android Kitkat since Google has made so many changes to the way messaging works? I have tried using broadcast receivers and abortBroadcast, but to no avail. 回答1: Is there any way to block SMS programmatically in Android KitKat? No. Starting with KitKat, the SMS_RECEIVED broadcast cannot be aborted, so any app with the RECEIVE_SMS permission can still listen for it and retrieve the incoming message. If your app is the default app, it can choose not

Using 2 nested Class to get notification from new SMS :D

笑着哭i 提交于 2019-12-23 04:23:08
问题 I already asked a question here : combining-2-extended-activity-for-sms-notification And now i get a new problem :D So i already make a nested Class like this : public class SMSNotif extends Activity{ static final int HELLO_ID = 1; BroadcastReceiver myReceiver = null; public class SMSReceiver extends BroadcastReceiver { @Override public void onReceive(Context arg0, Intent arg1) { // TODO Auto-generated method stub Bundle bundle = arg1.getExtras(); SmsMessage[] msgs = null; String str = ""; if

How to handle delivery report in GSM Modem?

倖福魔咒の 提交于 2019-12-23 04:12:27
问题 i want to use GSM Modem in an application for some purpose. what i want is handling SMS delivery report for list of sent sms. GSM Modem inbox & outbox are limited to 15 items. every time i read the inbox the gsm modem return a list an clear the list. how to check delivery status of sms that had been deleted from GSM Modem inbox ? i need something unique that enables me to identify each message. 回答1: every time i read the inbox the gsm modem return a list an clear the list. Messages that are

How to handle delivery report in GSM Modem?

浪尽此生 提交于 2019-12-23 04:12:12
问题 i want to use GSM Modem in an application for some purpose. what i want is handling SMS delivery report for list of sent sms. GSM Modem inbox & outbox are limited to 15 items. every time i read the inbox the gsm modem return a list an clear the list. how to check delivery status of sms that had been deleted from GSM Modem inbox ? i need something unique that enables me to identify each message. 回答1: every time i read the inbox the gsm modem return a list an clear the list. Messages that are

Send and Receive google text message SMS VB.NET

£可爱£侵袭症+ 提交于 2019-12-23 03:38:09
问题 I am trying to send and receive SMS messages. Sending is not a problem and that part works well, but I also need to get the responses back. For example on the TV you often see things that say something like "Text sales to 884921" Something on the other end must be reading those text messages and handling them. Another example is AT&T sends out a text message that says something like "You bill is ready, text YES to pay the bill now". This is exactly what I need to do. If I were writing the app

Android sms getting the response error/notification if the message has been delivered or sent successfully

戏子无情 提交于 2019-12-23 03:16:13
问题 How can i get the error when sending message and the response when the message has been successfully sent? Here is my code: try { String message = "Hello World! Now we are going to demonstrate " + "how to send a \n message with more than \n 160 characters from your Android application."; SmsManager smsManager = SmsManager.getDefault(); ArrayList<String> parts = smsManager.divideMessage(message ); smsManager.sendMultipartTextMessage(phoneNumber, null, parts, null, null); } catch (Exception e)