[Q] Sending SMS while phone is ringing - Android Software Development

Hi,
I'm developing an application for Android 2.2 that should send an SMS
immediately when the phone starts ringing (under UMTS/GSM). I'm using
the android.telephony.SmsManager.sendTextMessage for sending the SMS.
The app is working fine under the emulator, i.e. when I call the
emulator phone from another emulator, the SMS is sent instantly.
However, when I'm testing the application on HTC Desire, the SMS
sending only succeeds after the phone has stopped ringing.
Is there anything that could be done about this or is it just a
restriction of the HTC Desire device? Seems strange as it's working
fine under emulator and it shouldn't be a restriction of the network..

Jimband said:
Hi,
I'm developing an application for Android 2.2 that should send an SMS
immediately when the phone starts ringing
Click to expand...
Click to collapse
Why, and where would it send it?

XperiaX10iUser said:
Why, and where would it send it?
Click to expand...
Click to collapse
Well the most time-critical case would be to get information about the caller from an SMS-based service. So it would be important to get the SMS sent as soon as possible..

Jimband said:
Well the most time-critical case would be to get information about the caller from an SMS-based service. So it would be important to get the SMS sent as soon as possible..
Click to expand...
Click to collapse
Still don't get it.

XperiaX10iUser said:
Still don't get it.
Click to expand...
Click to collapse
There are many services where you can send an SMS containing a phone number and the service will reply with an SMS that contains the caller identification of that number. Android is missing an application that could use these services on the fly. If the device could send and receive SMS's while the phone is ringing, it could show the caller id of an unknown caller before hanging up.
Unfortunately it seems that Android OS is preventing this, and that's the reason why such an application doesn't exist (there are such apps for Symbian S60 devices so the network isn't a restriction)..

There is a app called truecaller, it looks up whitepages via dataconnection.
Sent from my GT-I9000 using XDA App

Related

Unable to send messages from WildFire

Hi to all,
Unfortunately,for several days unable to send massages from WildFire.
When i trying to send msg i get notice-"unable send message after multiple attempt".
By the way i tried to enter into a 'Service Center' but there isn't option to change something there.
Any advise?
Thanks in advance.
My girlfriend has the same issues with her Wildfire, both using the buildin SMS application and with ChompSMS.
Some times she gets the error too (several times a day) and she has to resend the messages. The really weird stuff is though, that the receiver actually sometimes do get the message the first time resulting in that the receiver gets the message several times.
And I have the exact same issue with my Desire.. Right now I'm searching high and low for a solution. I've talked to my provider (BiBoB, Denmark, using Telenors network), and they've told me that they could not see anything unusual about the message, so it would either be our phones or our SIM cards.
Since some others have problems too, I suspect Android.
xcalibur666 said:
My girlfriend has the same issues with her Wildfire, both using the buildin SMS application and with ChompSMS.
Some times she gets the error too (several times a day) and she has to resend the messages. The really weird stuff is though, that the receiver actually sometimes do get the message the first time resulting in that the receiver gets the message several times.
And I have the exact same issue with my Desire.. Right now I'm searching high and low for a solution. I've talked to my provider (BiBoB, Denmark, using Telenors network), and they've told me that they could not see anything unusual about the message, so it would either be our phones or our SIM cards.
Since some others have problems too, I suspect Android.
Click to expand...
Click to collapse
I think it something wrong with my sim card,because,if i change the phone to desire i also can't to send sms.and another sim cards works fine with wildfire and desire.
so i need to check with my provider what the problem.
Facebook to blame for identical problem
Had this problem with my wife's Wildfire last night. Turns out, Facebook was to blame.
The number of the person she was sending the text to changed on Facebook to the format "447### ######" instead of "07### ######". The link between the contact on the phone and Facebook meant the Facebook contact number became the default for that person and as the number wasn't valid, it failed when trying to send a text message or dial a voice call.
Fortunately, the contact in question was me so I removed my number from Facebook and the one on the handset started to work again....
ls1971 said:
Had this problem with my wife's Wildfire last night. Turns out, Facebook was to blame.
The number of the person she was sending the text to changed on Facebook to the format "447### ######" instead of "07### ######". The link between the contact on the phone and Facebook meant the Facebook contact number became the default for that person and as the number wasn't valid, it failed when trying to send a text message or dial a voice call.
Fortunately, the contact in question was me so I removed my number from Facebook and the one on the handset started to work again....
Click to expand...
Click to collapse
Thanks for advise,
I've tried to desibale sync with facebook and now i'm using only sim-cards phones number, but still enable to send sms,so unfortunately i don't think the problem in facebook at least in my case.
I'd love it when the wildfire could get me a massage
Sent from my HTC Wildfire using XDA App
Are you trying to send an SMS or MMS ?
For MMS you need to configure the APNs of your provider:
http: //iandroid.co.il/dr-iandroid/archives/608
guyte said:
Are you trying to send an SMS or MMS ?
For MMS you need to configure the APNs of your provider:
http: //iandroid.co.il/dr-iandroid/archives/608
Click to expand...
Click to collapse
I'm trying send sms only.
fishb00n said:
I'd love it when the wildfire could get me a massage
Sent from my HTC Wildfire using XDA App
Click to expand...
Click to collapse
WICKED man..i want a phone like that.. HTC are u listening..
warriorvibhu said:
WICKED man..i want a phone like that.. HTC are u listening..
Click to expand...
Click to collapse
Turn vibrating mode on and lay it on your back.
Skye Menjou said:
Turn vibrating mode on and lay it on your back.
Click to expand...
Click to collapse
LOL man .. thats not a good massage... i think i will rest my back on it.. hope it wont break it
I found the problem!
Hi,
I've found why i didn't success to send messages,the problem was in definition of "Service Center" of my cellular provider.
Now everything is work fine.
Thanks.

[FIX] People not receiving your texts? Read this

When you download the Facebook for Android app, it asks you to sync contacts. DON'T DO IT. Whenever someone has a phone number in their Facebook profile, regardless of if there is an existing contact that it will link to or not, the number will have a +1 in front of it. For instance, a number that should read 123-456-7890 would read +1123-456-7890. Facebook adds this for unknown reasons. When you send a text to the borked number, the text goes through, even on verizon.com, it says that the text was sent by you and that the other person received it on their profile. However, the person does not receive it on their phone. Also, if you call someone with a borked number, the phone will not ring.
In conclusion: Don't sync Facebook contacts, and your SMS should send fine and calling should work fine. Alternatively, you can use any messaging app but stock, such as Go SMS Pro and the message will go through fine, even with the +1 format.
Hope this helped someone.
AgalychnisCallidryas said:
When you download the Facebook for Android app, it asks you to sync contacts. DON'T DO IT. Whenever someone has a phone number in their Facebook profile, regardless of if there is an existing contact that it will link to or not, the number will have a +1 in front of it. For instance, a number that should read 123-456-7890 would read +1123-456-7890. Facebook adds this for unknown reasons. When you send a text to the borked number, the text goes through, even on verizon.com, it says that the text was sent by you and that the other person received it on their profile. However, the person does not receive it on their phone. Also, if you call someone with a borked number, the phone will not ring.
In conclusion: Don't sync Facebook contacts, and your SMS should send fine and calling should work fine. Alternatively, you can use any messaging app but stock, such as Go SMS Pro and the message will go through fine, even with the +1 format.
Hope this helped someone.
Click to expand...
Click to collapse
Nice Find man i havent noticed this but ill be weary of this from now on
How does this explain people receiving some messages and not others? If it was the number they wouldn't receive any texts at all, not just 30% of them. I noticed this a while ago and I couldn't call people with the +1, but they received texts just fine.
Sent from my Optimized Shift using XDA App
Only people who have their numbers listed in their Facebook profile are affected.
This is what worked for me. If it doesn't work for you, then I'm sorry.
I'm not saying you're wrong. I'm just saying maybe there's two seperate issues. Without my Facebook contacts synced some messages are going through and some aren't. Maybe its just me, but I've seen posts with people saying the same. Thank you for your solution nonetheless.
Sent from my Optimized Shift using XDA App
You're welcome. I'm not saying by any means that this will solve everyone's issues. Just my experienced and it worked for me. Best of luck to you on sorting whatever is up with your SMS out. What ROM are you using?
+1 is the country code for the USA, no idea why it's adding it though. I know that wavesecure requires you add +1 to the contacts on your contact list since the texts come from somewhere in asia IIRC (may not be true now since McAfee owns them).
I know it is, but since it's a cell phone, you don't use the 1 or +1, which messes it up.
Thank you for putting this up. I was confused and frustrated as to why lots of my contacts didn't receive or was able to send any texts or calls to me. But now its all good
I'm going to test this theory. Hope this works. Thanks
AgalychnisCallidryas said:
When you download the Facebook for Android app, it asks you to sync contacts. DON'T DO IT. Whenever someone has a phone number in their Facebook profile, regardless of if there is an existing contact that it will link to or not, the number will have a +1 in front of it. For instance, a number that should read 123-456-7890 would read +1123-456-7890. Facebook adds this for unknown reasons. When you send a text to the borked number, the text goes through, even on verizon.com, it says that the text was sent by you and that the other person received it on their profile. However, the person does not receive it on their phone. Also, if you call someone with a borked number, the phone will not ring.
In conclusion: Don't sync Facebook contacts, and your SMS should send fine and calling should work fine. Alternatively, you can use any messaging app but stock, such as Go SMS Pro and the message will go through fine, even with the +1 format.
Hope this helped someone.
Click to expand...
Click to collapse
Try using Contacts Clean-up from Android Market. It works great and resolved my issue on the fly. Dev just made it CDMA compatible
I think this only matters on sense roms. I know I need to be on aosp for dialing businesses through voice search to work because it also adds a +1 (at least it used to).
Thanks for the post. It was driving me crazy.
MorphiousGX said:
Try using Contacts Clean-up from Android Market. It works great and resolved my issue on the fly. Dev just made it CDMA compatible
Click to expand...
Click to collapse
Just downloaded and used, great app! Thanks for the suggestion.

Calls & Text Messaging WORKS

I just got my A500 yesterday and spent all night and day trying to figure out if it was possible to make phone calls, receive phone calls, send and receive text messages. Finally found the solution and it works great. Its a given that you will need to be on Wifi or 3G (tethering or Portable WLAN). Using a FREE app called Viber allows you to make FREE calls and text messages over Wifi and 3G/4G to other Viber users (Android and iOS), what sets this app apart from others is that it maintains your phone #, no need for a new #, pin or username. Only problem is that upon setup the app requires to send you a text message to verify your phone number to setup your account, which is NOT possible on the Acer. I found a simple work around this to problem, so here we go!
What you need:
1. Rooted phone (Android of course)
2. Viber App, its FREE (attached) (Phone ONLY)
3. Rooted Acer
4. Titanium Backup (Installed on both devices)
Instructions:
1. Install Viber on your phone and set up your account, very simple and fast.
2. After installation and confirmation (important: I would make a call or send a few text messages to make sure it's working),
3. Open Titanium Backup and make a back up of Viber
4. Transfer the back up of Titanium Backup to your Acer, make sue you place it the correct folder: sdcard/TitaniumBackup (or where ever you store your Titaniun Backups on your Acer).
5. Open Titanium Backup on your Acer and Restore the Viber app with data
That's it you can now make calls and text messages using Viber, the voice quality is awesome and the speaker is loud and clear!
Hopes this helps, it did for me
You can send invites to your contacts within the Viber app, once someone installs and setups Viber you will receive a pop up notice.
***Do NOT run Viber on both devices at the same time, it may cause FC and routing calls/text messages to the wrong device, simply shut down Viber (More>>Exit) on the device you are not using***
how can you do it?
bjh2379 said:
how can you do it?
Click to expand...
Click to collapse
Instructions up with apk
Great! ......except I don't have Android mobile phone.... ;(
dj898 said:
Great! ......except I don't have Android mobile phone.... ;(
Click to expand...
Click to collapse
If you have Google Voice you can use Groove IP to make free calls to any mobile and landline
Very nice find!
zimphishmonger said:
Very nice find!
Click to expand...
Click to collapse
Decent find on making an app work. Question, what's wrong with Skype or gtalk?
I still want an app that enables an android phone tether with the acer iconia via bluetooth,usb or wifi and you are able to text and call people on your tablet.
chaosjh said:
Decent find on making an app work. Question, what's wrong with Skype or gtalk?
Click to expand...
Click to collapse
As for me... I have 16 family/friends on gtalk (only 4 sign on & more than half the time they never notice I sent them a message, "I didnt know") or they are NEVER signed on, either they dont know how to sign on or dont use it at all. Skype, I have 0 family/friends that use it and I not to crazy about it... I just like the simplicity of Viber and ease of use, when you get a text message a pop up appears (like HancentSMS) and you can reply right from there.
I guess what it comes down to is personal preference
would this conflict with google voice?
lbhocky19 said:
would this conflict with google voice?
Click to expand...
Click to collapse
No not at all, thats the beauty of this app, it does NOT use your google voice number. It uses your actual cell number
I've been using Viber on my phone along with google voice and when people call or text me using Viber it does not effect google voice at all.
Awesome! Works great only downside I found is it will auto rout to the tab unless you turn it off when trying to call to the phone!
But that is minor compared to the awesomeness of the text and calling.! I love how I do not have to leave the app im in to reply.
Thanks for sharing!
Thank you for this tip. I just got it on my tab and placed a call and its great. The odd force close, but otherwise great
Sent from my A500 using XDA Premium App
good it work~~~
snakedoctorjw said:
Awesome! Works great only downside I found is it will auto rout to the tab unless you turn it off when trying to call to the phone!
But that is minor compared to the awesomeness of the text and calling.! I love how I do not have to leave the app im in to reply.
Thanks for sharing!
Click to expand...
Click to collapse
Yeah, you really shouldnt have both Viber services running on both devices... Turn one off when using another (guess I should add that to the OP)
The pop up is awesome, dont need to leave your current app to reply
kylec said:
Thank you for this tip. I just got it on my tab and placed a call and its great. The odd force close, but otherwise great
Click to expand...
Click to collapse
The FC happens here and there, mostly when running Viber on both devices, close one before starting the other and you should be good to go!
shin9999 said:
good it work~~~
Click to expand...
Click to collapse
Glad I could help you enjoy your Acer more
Okay just so I'm clear on how viber works... The person i'm sending the text/call to must also have viber installed correct?
phillymatt said:
Okay just so I'm clear on how viber works... The person i'm sending the text/call to must also have viber installed correct?
Click to expand...
Click to collapse
+1. If I can't get my friends and family to use Skype etc they're not going to use this.
phillymatt said:
Okay just so I'm clear on how viber works... The person i'm sending the text/call to must also have viber installed correct?
Click to expand...
Click to collapse
Yes that is correct... The FREE app can be found in the Market (Android) and in the App Store (Apple iOS)
blcklab said:
+1. If I can't get my friends and family to use Skype etc they're not going to use this.
Click to expand...
Click to collapse
The difference is that this app runs in the background, your friends and family DONT need to log in, when you call from Viber the phone rings right away, just like your stock phone app does (its just purple). When you text someone a pop up appears on the screen... see attachements
(Yes I have a friend that's a d!ck head and a brother I call Monster)
perhaps a silly question, but it wasnt specified... does the phone need to be pluggd into the tab for this to work? r once its set up it will function as long as there is wifi?
from Sams inFuse... inFused GB
byuboy87 said:
perhaps a silly question, but it wasnt specified... does the phone need to be pluggd into the tab for this to work? r once its set up it will function as long as there is wifi?
from Sams inFuse... inFused GB
Click to expand...
Click to collapse
No it does not ... You can leave the phone at home, car or wherever. As long as you have some sort of data connection, whether it be wifi or tethered 3g/4g

SMS received on my N7 ?

Hello,
I have an 3G N7 and know that it can not receive / send SMS. OK, that is what was told of.
But today I got a notification that I have a message in notification bar, opened it and it looked like a regular SMS message.
Then I tested myself, I sent a normal SMS to my tablet gsm number and received it instantly. I'm on Vodafone if that makes any sense.
Build number is JDQ39 - baseband 1231_0.17.0_1205, Kernel 3.1.10-g05b777c.
Obviously this is some app inside that handles the received message, what's the app name ? location ? at least is interesting to know that at least SMS I can receive. How can I access it ?
Best regards,
Radu
Hi, i also have the same question. Anybody knows?
Sent from my Nexus 7 using xda premium
Download Go sms from store.
Google Voice works great on the N7 for sending and receiving sms, also. Sms works over wifi or data.
I maybe not beein too explicit.
I have received two SMS, regular kind, sent through my gsm carrier.
As i received them, means there is some app that recognise it and can handle the sms.
Question is, what is the app, how can i acces the messages received.
I'm aware of various solutions for sms that require to have an online account, in order to handle sms, do not want to use this kind of service.
Also, there is hack to install sms/mms apk by rooting, but, again this is not the object of my question.
I just want to check my incoming sms's for now.
Best regards,
Radu
Like mentioned above, if you install gosms or any other third party app it should allow you to view that text message that came through the carrier
Sent from my Nexus 7 using xda premium
tzoller said:
Obviously this is some app inside that handles the received message, what's the app name ? location ? at least is interesting to know that at least SMS I can receive. How can I access it ?
Click to expand...
Click to collapse
Long press the notification and press "App Info" and that will tell you the name of the app.
Hello again,
Here is screenshot and detaild of the app.
As it says it receives SMS, but also can write SMS- see last line, in theory.
Question is, where can find this app. Looks to be hidden..
Sent from my Nexus 7
How to do so with stock mms.apk has already been covered here http://forum.xda-developers.com/showthread.php?p=34282107
Right in the N7 3G dev section. XDA search function is highly recommended
Sent from my Nexus 7 using xda premium
Hello Rebel,
I know the MMS.APK, saw it, thank you for heads up.
My specific question is, why should I use that, if I have an app already installed. I do get SMSs from any regular gsm phone, without being necessary to create an online account for GOSMSPRO or whatever similar. The screen shot says that I might be able to send also, on my cost SMSs. No probIem, just want to find that app that handles the SMS received. Can I do that ? can I send using same app that is ALREADY installed?
thank you for patience
radu
So it seems the 'Simple message receiver' is an app that comes with the 3g N7. Mine is just wi-fi, so I can't check, but does your app drawer have that app? If you check Settings > Apps > All, is it listed there? I have no idea how to open it if it is not in the app drawer or if you would be able to send using it anyway. Interesting that it is included in the 3G version.
tzoller said:
Hello Rebel,
I know the MMS.APK, saw it, thank you for heads up.
My specific question is, why should I use that, if I have an app already installed. I do get SMSs from any regular gsm phone, without being necessary to create an online account for GOSMSPRO or whatever similar. The screen shot says that I might be able to send also, on my cost SMSs. No probIem, just want to find that app that handles the SMS received. Can I do that ? can I send using same app that is ALREADY installed?
thank you for patience
radu
Click to expand...
Click to collapse
Yes. As thw thread states, they are successfully receiving and sending sms from the same app over gsm, just as you would on a phone. The only difference i forsee is doing so with a dedicated data sim, or using the sim from your existing phone.
Many are using the latter, and using other apps to forward thier phone calls to the data side, and using sms normally.
Sent from my SAMSUNG-SGH-I727 using xda premium

blocking calls and SMS

I cant seem to find a way to block calls & SMS ( no sending to voicemail or archived messages) Im looking for a method similar to what CM roms offer where I can have both blocked and no notification or even a trace that a call/SMS came from the said numbers. Is this possible on the stock rom w/o 3rd party apps ?
There is no real block function in stock (unless the latest update to the phone app doesn't send it to voicemail). Best is to use a 3rd party app.
Mr Number has worked for my mother.
Actually there is a work around in Google Contacts app. Check the guide below:
http://www.thecellguide.com/nexus6phowtoblock.php
You can always use truecaller.
EarlZ said:
I cant seem to find a way to block calls & SMS ( no sending to voicemail or archived messages) Im looking for a method similar to what CM roms offer where I can have both blocked and no notification or even a trace that a call/SMS came from the said numbers. Is this possible on the stock rom w/o 3rd party apps ?
Click to expand...
Click to collapse
The stock phone app (2.3.12) now supports this.
I have not received any SMS after blocking (which I shouldnt, so not 100% sure about that), but I have seen posted elsewhere that SMS are also blocked.
EDIT: so I tried, it doesnt seem to block SMS. However you can block SMS in the messenger app. You still receive the message(s), but you get no notification and the messages are archived. Not exactly what you are looking for but, almost.
Id prefer not to use any 3rd party app and just the stock apps or maybe an xposed module that can do so?
At least the calling part is taken care off the SMS part is something id prefer not to have anything stored on my phone just like how CM does it but I guess I have to live with that for now.
uicnren said:
The stock phone app (2.3.12) now supports this.
I have not received any SMS after blocking (which I shouldnt, so not 100% sure about that), but I have seen posted elsewhere that SMS are also blocked.
EDIT: so I tried, it doesnt seem to block SMS. However you can block SMS in the messenger app. You still receive the message(s), but you get no notification and the messages are archived. Not exactly what you are looking for but, almost.
Click to expand...
Click to collapse
how do you get yours to automatically delete voicemails?
on my phone app, under call blocking it says "calls will be blocked but they may still be able to leave you voicemails".
skimminstones said:
how do you get yours to automatically delete voicemails?
on my phone app, under call blocking it says "calls will be blocked but they may still be able to leave you voicemails".
Click to expand...
Click to collapse
make sure you are using google phone 2.3.12
uicnren said:
make sure you are using google phone 2.3.12
Click to expand...
Click to collapse
yea i am,
i wonder if its a country thing and can only be done in certain territories.
skimminstones said:
yea i am,
i wonder if its a country thing and can only be done in certain territories.
Click to expand...
Click to collapse
I suppose anything is possible. Just for the record, here is how it appears for me.
^good to know!

Categories

Resources