sms

Can i automatically send SMS (Without the user need to approve)

…衆ロ難τιáo~ 提交于 2019-12-17 08:16:07
问题 I'm rather new to Android. Im trying to send SMS from Android application. When using the SMS Intent the SMS window opens and the user needs to approve the SMS and send it. Is there a way to automatically send the SMS without the user confirming it? Thanks, Lior 回答1: You can use this method to send an sms. If the sms is greater than 160 character then sendMultipartTextMessage is used. private void sendSms(String phonenumber,String message, boolean isBinary) { SmsManager manager = SmsManager

How to use SMS content provider? Where are the docs?

帅比萌擦擦* 提交于 2019-12-17 07:08:03
问题 I'd like to be able to read the system's SMS content provider. Basically I wanted to make an SMS messaging app, but it would only be useful if I could see past threads etc. It seems like there's a content provider for this, but I can't find documentation for it - anyone know where that is? Thanks -------- edit ----------- Ok I found a way to get the sms inbox provider, and I just dumped all the column names in that provider, looks like this: Uri uriSms = Uri.parse("content://sms/inbox");

Send programmatically SMS on jailbreak device

ⅰ亾dé卋堺 提交于 2019-12-17 06:08:06
问题 I am using a iOS 6 iphone 4S and I want to be able to send the unnoticed sms messages. So using the standard view controller won't work in this case. I tried using - (BOOL)sendSMSWithText:(id)arg1 serviceCenter:(id)arg2 toAddress:(id)arg3; but it doesn't send anything and returns NO. I used nil for arg2. Can someone suggest a way to do it on iOS 6?(for jailbroken devices) 回答1: Found out why - (BOOL)sendSMSWithText:(id)arg1 serviceCenter:(id)arg2 toAddress:(id)arg3; is not working since iOS 6.

Get all messages from Whatsapp

谁说我不能喝 提交于 2019-12-17 04:46:48
问题 I'm trying to implement an app that will show in a textview all the messages received from Whatsapp. Is there any way to do it? Is it possible to extract all the messages from Whatsapp? 回答1: Whatsapp store all messages in an encrypted database (pyCrypt) which is very easy to decipher using Python. You can fetch this database easily on Android, iPhone, Blackberry and dump it into html file. Here are complete instructions: Read, Extract WhatsApp Messages backup on Android, iPhone, Blackberry

Get all messages from Whatsapp

青春壹個敷衍的年華 提交于 2019-12-17 04:46:22
问题 I'm trying to implement an app that will show in a textview all the messages received from Whatsapp. Is there any way to do it? Is it possible to extract all the messages from Whatsapp? 回答1: Whatsapp store all messages in an encrypted database (pyCrypt) which is very easy to decipher using Python. You can fetch this database easily on Android, iPhone, Blackberry and dump it into html file. Here are complete instructions: Read, Extract WhatsApp Messages backup on Android, iPhone, Blackberry

Send a SMS via intent

安稳与你 提交于 2019-12-17 04:28:24
问题 I want to send an SMS via intent, but when I use this code, it redirects me to a wrong contact: Intent intentt = new Intent(Intent.ACTION_VIEW); intentt.setData(Uri.parse("sms:")); intentt.setType("vnd.android-dir/mms-sms"); intentt.putExtra(Intent.EXTRA_TEXT, ""); intentt.putExtra("address", phone number); context.startActivity(intentt); Why? Also, I know a way to follow SMS sending, but I do not know how code this: Starting activity: Intent { act=android.intent.action.SENDTO dat=smsto:%2B*

Android: Share plain text using intent (to all messaging apps)

懵懂的女人 提交于 2019-12-17 03:50:34
问题 I'm trying to share some text using an intent: Intent i = new Intent(android.content.Intent.ACTION_SEND); i.setType("text/plain"); i.putExtra(android.content.Intent.EXTRA_TEXT, "TEXT"); and warping with chooser: startActivity(Intent.createChooser(sms, getResources().getString(R.string.share_using))); it works! but only for email app. what I need is a general intent for all messaging app: emails, sms, IM (Whatsapp, Viber, Gmail, SMS...) tried using android.content.Intent.ACTION_VIEW and tried

Android: Share plain text using intent (to all messaging apps)

对着背影说爱祢 提交于 2019-12-17 03:50:27
问题 I'm trying to share some text using an intent: Intent i = new Intent(android.content.Intent.ACTION_SEND); i.setType("text/plain"); i.putExtra(android.content.Intent.EXTRA_TEXT, "TEXT"); and warping with chooser: startActivity(Intent.createChooser(sms, getResources().getString(R.string.share_using))); it works! but only for email app. what I need is a general intent for all messaging app: emails, sms, IM (Whatsapp, Viber, Gmail, SMS...) tried using android.content.Intent.ACTION_VIEW and tried

How to send multiple sms to single number

南楼画角 提交于 2019-12-17 03:21:10
问题 Code for main activity public class MainActivity extends Activity implements OnItemClickListener, OnClickListener{ Button send; ListView listViewSMS; Cursor cursor; SMSListAdapter smsListAdapter; Context context; ArrayAdapter<SMSListModel> adapter; List<SMSListModel> list = new ArrayList<SMSListModel>(); TextView textViewSMSSender, textViewSMSBody; int i; int count = 0; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout

how to get the message when receiving the “kCTMessageReceivedNotification” notification on IOS5

白昼怎懂夜的黑 提交于 2019-12-17 02:38:17
问题 With ios4.x I can use code below to get the message when get the "kCTMessageReceivedNotification" notification CTTelephonyCenterAddObserver( ct, NULL, callback,NULL,NULL, CFNotificationSuspensionBehaviorHold); if ([notifyname isEqualToString:@"kCTMessageReceivedNotification"])//receive message { NSDictionary *info = (NSDictionary *)userInfo; CFNumberRef msgID = (CFNumberRef)[info objectForKey:@"kCTMessageIdKey"]; int result; CFNumberGetValue((CFNumberRef)msgID, kCFNumberSInt32Type, &result);