sms

Android - Send SMS and make the text not editable

你离开我真会死。 提交于 2019-12-11 08:36:06
问题 String number = "0707775544"; Uri uri = Uri.parse(number); Intent smsIntent = new Intent(Intent.ACTION_SENDTO, uri); smsIntent.putExtra("sms_body", "Hello world!"); startActivity(smsIntent); When I run this code, Android's default SMS opens up and I can of course send this. My question is: is there anyway I can make the the text "Hello world!" NOT editable, and if you want to write a personal message, it gets below this "Hello world!". Thanks in advance! 回答1: If i got the question right,

How to remove <string> in SMS

六月ゝ 毕业季﹏ 提交于 2019-12-11 08:03:27
问题 I have a BizTalk solution that would send an SMS to our client once their phone has been registered in our system. Unfortunately the SMS would contain XML tags in it like this. < string>Your PIN is 1234.< /string> How can i remove the < string> tag in the SMS? I have made sure the Message Type in my Orchestration is correct and that I have the below code in my Construct Message shape. strCellNos = classHelper.getElement(SendSMStoCustomerRequest, "cell_number"); strSMS = classHelper.getElement

Adding the user's contact's photo from phone to ListView? :D

核能气质少年 提交于 2019-12-11 07:55:04
问题 I have created a list of contact's in user phone, now i want to add the user's photo (not from fb) how to create that? :D This is a piece of my code : public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); ContentResolver cr = getContentResolver(); Cursor cursor = cr.query(Uri.parse("content://sms/inbox"), null, null, null, null); int indexBody = cursor.getColumnIndex("body"); int indexAddr = cursor.getColumnIndex("address"); if

Is there a list of all stock messaging apps package names for all Android phone constructors?

半世苍凉 提交于 2019-12-11 07:42:10
问题 Alternatvely, is there an easy way to know the package name of a system app ? 回答1: I just was Developing an App locker that have a category for important app to offer user to lock them. and obviously default SMS app is important app to lock. so i create my own list of default sms apps package name. I hope this will be helpful for you and others help me to improve this list: "com.google.android.apps.messaging" "com.jb.gosms" "com.concentriclivers.mms.com.android.mms" "fr.slvn.mms" "com.android

Search the Inbox content by given string

不打扰是莪最后的温柔 提交于 2019-12-11 07:26:34
问题 I want to develop an application, the small part of which will search the string of message from an EditText in the Inbox of my device.... I have referred some links like Search sms Inbox https://stackoverflow.com/questions/8941228/how-to-read-all-sms-from-inbox-in-android-2-2-and-above http://androidforums.com/android-applications/1773-how-read-sms-android.html Read all SMS from a particular sender but could not make it possible... can anyone plz help me with a useful piece of code...Thanks

How to query ContactsContract.CommonDataKinds.Phone on Android?

好久不见. 提交于 2019-12-11 07:25:25
问题 I'm trying to build a conversation list for SMS messages. Therefore I'm reading "content://sms/conversations" and read the first few messages of each conversation to find the communication partners' phone numbers. With these numbers I try to retrieve the contact_id from ContactsContract.CommonDataKinds.Phone to fetch the rest of the person's information from the contacts database. String[] returnVals = new String[] {ContactsContract.CommonDataKinds.Phone.CONTACT_ID}; Cursor pCur = thisContent

Detecting SMS incoming and outgoing

纵饮孤独 提交于 2019-12-11 07:13:44
问题 I'd like to detect sms incoming and outgoing automatically from my application at background whenever this app is opening or not. how to code? 回答1: This is a good tutorial on both sending and receiving sms messages: http://mobiforge.com/developing/story/sms-messaging-android . For the incoming messages you can indeed configure a broadcastlistener for detection. * Detecting outgoing messages is also possible (just altered this post since I dind't know this). from: http://www.mail-archive.com

Android Multi-Part sms content becomes unreadable on reception

我们两清 提交于 2019-12-11 07:13:38
问题 I am working on an android project, that deals with device authentication via sms. The problem I am facing is, when the authentication key is being sent, the receiving device gets a garbled text and not the original sent content. I am using two instances of the emulator to test the code. Here is the relevant code : String MyPublic = "__key("+N.toString()+")yek__"; ArrayList<String> parts = smsmgr.divideMessage(MyPublic); smsmgr.sendMultipartTextMessage(senderNumber, null, parts, null, null);

BULK SMS, Long Codes (VMN MSIDN), T-mobile?

℡╲_俬逩灬. 提交于 2019-12-11 07:06:37
问题 Does any US wireless carrier offer individuals or companies with a direct connection to the SMSC? The number is 747-772-3101 (repalce 7's with 6's) This number is registered to t-mobile, also verified by t-mobile to be a valid subscriber sending 160,000+ text messages monthly and that all they have is an unlimited text messaging plan on top of the cheapest voice plan. This company of the number verified to me that they don't use gsm modems as they are too slow. So I know it's possible but who

Twilio: SMS sent using <Sms> limited to 160 characters and without Delivery Steps info

旧城冷巷雨未停 提交于 2019-12-11 07:06:25
问题 I am sending an SMS with Twilio using the following TwiML code (from a bin). It is called at the end of a call, using the action parameter of the <Dial> verb. <?xml version="1.0" encoding="UTF-8"?> <Response> <Sms from="+44XXXXXXXXXX" to="{{From}}">Recording of your call with {{To}}: {{RecordingUrl}}</Sms> </Response> It works, but if the message gets too long I get the error: 21605 Maximum body length is 160 characters And I do not get Delivery Steps information in the SMS logs: Delivery