sms

Android passing multiple numbers to SMS intent

亡梦爱人 提交于 2020-01-01 16:11:11
问题 I am getting different numbers from Contacts and passing them to SMS application. I am using the following: Intent intent = new Intent( Intent.ACTION_VIEW, Uri.parse( "sms:"+numbers) ); //numbers separated with ; intent.putExtra( "sms_body", body ); startActivity( intent ); The problem is if I separate numbers with ' ; ', it does not work on Galaxy S but works on others like HTC, Samsung Gio etc... On Galaxy S, it works if I separate numbers with comma ' , '. So how to resolve this issue? 回答1

Service call isms with ADB shell (Android SDK)?

我是研究僧i 提交于 2020-01-01 12:22:10
问题 Do you know the command "service call isms" with adb shell on Android? Here is the complete command I use : service call isms 5 s16 "PhoneNumber" i32 0 i32 0 s16 "BodyText". There are some parameter but I don't know what it means (5, s16, i32, 0). Is there somewhere a manual ? The most important for me is to get an error when the sms doesn't send successfully (about 10% of the sms aren't send) => this question asked already but there isn't answer (https://stackoverflow.com/questions/17395546

Service call isms with ADB shell (Android SDK)?

情到浓时终转凉″ 提交于 2020-01-01 12:22:10
问题 Do you know the command "service call isms" with adb shell on Android? Here is the complete command I use : service call isms 5 s16 "PhoneNumber" i32 0 i32 0 s16 "BodyText". There are some parameter but I don't know what it means (5, s16, i32, 0). Is there somewhere a manual ? The most important for me is to get an error when the sms doesn't send successfully (about 10% of the sms aren't send) => this question asked already but there isn't answer (https://stackoverflow.com/questions/17395546

What is the URI for SMS Draft Content Provider?

允我心安 提交于 2020-01-01 12:06:54
问题 What is the Native Content URI for SMS Drafts? 回答1: Content Provider URI for SMS is commonly content://sms/... and for SMS Drafts it is content://sms/drafts/ 回答2: You can open each SMS message part by opening different ways. Inbox = "content://sms/inbox" Failed = "content://sms/failed" Queued = "content://sms/queued" Sent = "content://sms/sent" Draft = "content://sms/draft" Outbox = "content://sms/outbox" Undelivered = "content://sms/undelivered" All = "content://sms/all" Conversations =

What is the URI for SMS Draft Content Provider?

北城以北 提交于 2020-01-01 12:06:45
问题 What is the Native Content URI for SMS Drafts? 回答1: Content Provider URI for SMS is commonly content://sms/... and for SMS Drafts it is content://sms/drafts/ 回答2: You can open each SMS message part by opening different ways. Inbox = "content://sms/inbox" Failed = "content://sms/failed" Queued = "content://sms/queued" Sent = "content://sms/sent" Draft = "content://sms/draft" Outbox = "content://sms/outbox" Undelivered = "content://sms/undelivered" All = "content://sms/all" Conversations =

ContentObserver on content://sms/ in 1.6+?

北城以北 提交于 2020-01-01 10:13:56
问题 I have a content observer that polls content://sms/ in android 1.5 so that I get notified of changes in the sms database and can react to them accordingly. However in 1.6 this doesn't work, has the uri been changed from content://sms/ to something else? I have seen content://mms-sms/ popping up in the logcat on my 1.6 device but I have tried that and it doesn't work. Here is my code String url = "content://sms/"; Uri uri = Uri.parse(url); getContentResolver().registerContentObserver(uri, true

Changing ringer profile when receiving sms

不羁岁月 提交于 2020-01-01 07:03:44
问题 Hello there i'm newbie in Android development I'm trying to make an app that changes the ringer profile when receive a specific sms, also i can change it by the buttons on the layout (the buttons are working good), but the sms way isn't working i tried as shown below MainActivity.java package com.example.test; import android.media.AudioManager; import android.os.Bundle; import android.app.Activity; import android.content.Context; import android.view.Menu; import android.view.View; import

Why do I get “Generic Failure” error while sending SMS?

不羁的心 提交于 2020-01-01 06:57:11
问题 I am working on android project where I need to send SMS . My app collects required information by consuming a web service and this information is very short and pure text. This information is then sent in the form of SMS. I have used broadcast receiver that will keep track of whether SMS is sent successfully or not and simply add a log entry. I have used SmsManager to send SMS . My device is having very good WiFi strength and good GPRS network. While sending SMS, I have found that broadcast

Why do I get “Generic Failure” error while sending SMS?

最后都变了- 提交于 2020-01-01 06:57:09
问题 I am working on android project where I need to send SMS . My app collects required information by consuming a web service and this information is very short and pure text. This information is then sent in the form of SMS. I have used broadcast receiver that will keep track of whether SMS is sent successfully or not and simply add a log entry. I have used SmsManager to send SMS . My device is having very good WiFi strength and good GPRS network. While sending SMS, I have found that broadcast

Retrieving the SMS Messages from the SIM card on with android

懵懂的女人 提交于 2020-01-01 06:35:14
问题 I was wondering if anyone knew anything about programmatically getting the sms messages off of your phone's sim card on an android platform. I would like to write a program that allows you to save either individual messages or entire threads to the sd card, but after looking around for a bit, I have discovered that google decided to take out that api from the current android sdk. I saw in a few places that there are hidden apis for this, but no one knew what they were or how to use them. 回答1: