smsmanager

Monitor message sent status launched by Intent= new Intent(Intent.ACTION_SEND)

谁说胖子不能爱 提交于 2020-01-05 10:32:51
问题 I am looking for a way to monitor the sent status of a MMS message started by Intent.ACTION_SEND so that I can return to my original activity upon the message being sent. Currently Im using startActivityForResult() with a request code to start it so theres something to return and display a toast with and I'm also using Intent.putExtra("exit_on_sent", true) so that it exits the default messenger and returns to the original activity when the Send button is pressed but that only gives the

SmsManager Null Pointer Exception

蓝咒 提交于 2020-01-03 03:22:09
问题 I am trying to send a text message using smsManager from a BroadCast Receiver .I am getting this error says NullPointerException . I do not know what is wrong with this. I am sick of this error. here is my code segment GPSTracker tracker = new GPSTracker(context); MyLocation temp = tracker.getCurrentLocation(); String message = sp.getString("auto_text", "") + "\n" + "Latitude: "+temp.getLatitude() + "\nLogitude: "+temp.getLongitude(); Toast.makeText(context, message, Toast.LENGTH_LONG).show()

Send SMS until it is successful

不问归期 提交于 2019-12-27 12:04:29
问题 I am trying to send an urgent SMS from my application. I have to make sure that the SMS is being sent successfully. The SMS is being sent after the boot of the Android system and after a check is being made. So I have a service class that handles the BOOT_COMPLETED intent-filter. This class makes a check and if something is true then it tries to send an SMS message via another class that "extends Service" After it makes sure that the sms is successfully sent, both services (the one that

how to develop function read sms then restore in future by windows phone 8.1?

爱⌒轻易说出口 提交于 2019-12-25 19:59:06
问题 My task is write a application that read sms, save to file then restore in future. But i can't find any document related to restore sms. Can we restore sms with window phones. 回答1: Windows Phone goes not give apps access to SMS messages, other than drafting and prompting the user to send a message. 来源: https://stackoverflow.com/questions/30255474/how-to-develop-function-read-sms-then-restore-in-future-by-windows-phone-8-1

how to develop function read sms then restore in future by windows phone 8.1?

。_饼干妹妹 提交于 2019-12-25 19:57:16
问题 My task is write a application that read sms, save to file then restore in future. But i can't find any document related to restore sms. Can we restore sms with window phones. 回答1: Windows Phone goes not give apps access to SMS messages, other than drafting and prompting the user to send a message. 来源: https://stackoverflow.com/questions/30255474/how-to-develop-function-read-sms-then-restore-in-future-by-windows-phone-8-1

how to develop function read sms then restore in future by windows phone 8.1?

只愿长相守 提交于 2019-12-25 19:57:09
问题 My task is write a application that read sms, save to file then restore in future. But i can't find any document related to restore sms. Can we restore sms with window phones. 回答1: Windows Phone goes not give apps access to SMS messages, other than drafting and prompting the user to send a message. 来源: https://stackoverflow.com/questions/30255474/how-to-develop-function-read-sms-then-restore-in-future-by-windows-phone-8-1

SmsManager, send attachment in sms

◇◆丶佛笑我妖孽 提交于 2019-12-24 21:50:06
问题 How do I add an "attachment" into my SmsManager object when I'm trying tro send an sms? My current function for sending a normal sms is: public void send() { SmsManager sms = SmsManager.getDefault(); sms.sendTextMessage(this.number, null, this.message, null, null); } I have looked a little bit at the sendDataMessage() but don't really understand it.. any help is appreciated. Thanks. EDIT I don't want to use Intent for this. I have a List with Bitmap images that I want to send via an SMS/MMS.

only hide notifications for SMS from specific no or stop notification sound(or mute it) for 1-2 seconds?

随声附和 提交于 2019-12-24 19:03:05
问题 My application uses SMSs for data exchange between my android app and a device. The device will have a sim card in it, which will send a lot of regular SMSs to my App(i.e. to my paired sim no). The issue is, a lot no messages are bothering my App users and they are getting irritated. I know, from KITKAT 4.4, I can't delete/write a SMS from provider. But can I just prevent notifications(specially voice), then vibration and then if possible status bar notification. And I don't want to create an

How can I log all sent SMS along with package name?

不问归期 提交于 2019-12-24 14:40:02
问题 I am trying to develop an app which logs all sent SMS along with UID or package name of the application which triggered that event. I am doing this for a research purpose.Thanks in advance ... I am looking to log the UID or package name of application which send that sms. Sorry for my english if it is disgusting. 回答1: After a series of researches, I found that package name of application which triggered the SMS is explicitly stored in creator field(index 19) of SMS DB. 来源: https:/

Show outbound texts using SMSManager in the default android text application

与世无争的帅哥 提交于 2019-12-24 01:55:21
问题 I'm currently writing an application that uses the users voice to send out text messages, I am using the SMSManager to send texts and it works. The issue I am having is when I go to the text messaging application to view my text history I don't see my sent texts. Is there a way for my sent texts from the SMSManager to appear in my text history? Thanks! 回答1: After sending use this code Context context; //you should initialize it somewhere ... ContentValues values = new ContentValues(); values