Hey guys, I put together a library to help anyone out there who is making an sms app after all my experience with Sliding Messaging and trying to get everything to work... I dug through way too much source code so hopefully this will save some others the trouble! Apologize if this isn't in the right spot mods!
Android SMS/MMS/Google Voice Sending Library
These are the APIs that Google has so far left out of the Android echosystem for easily sending any type of message without digging through source code and what not.
This library is still in BETA and has a long way to go... APIs may not be final and things will most likely change.
If you've got a better way to do things, send me a pull request! The library was created specifically for Sliding Messaging Pro and some things work the way they do specifically for that app.
-------------------------------------------
Library Overview
Sending messages is very easy to do.
First, create a settings object with all of your required information for what you want to do. If you don't set something, then it will just be set to a default and that feature may not work. For example, if you need MMS, set the MMSC, proxy, and port, or else you will get an error every time.
Code:
Settings sendSettings = new Settings();
sendSettings.setMmsc("http://mmsc.cingular.com");
sendSettings.setProxy("66.209.11.33");
sendSettings.setPort("80");
sendSettings.setGroup(true);
sendSettings.setWifiMmsFix(true);
sendSettings.setPreferVoice(false);
sendSettings.setDeliveryReports(false);
sendSettings.setSplit(false);
sendSettings.setSplitCounter(false);
sendSettings.setStripUnicode(false);
sendSettings.setSignature("");
sendSettings.setSendLongAsMms(true);
sendSettings.setSendLongAsMmsAfter(3);
sendSettings.setAccount("[email protected]");
sendSettings.setRnrSe(null);
- MMSC - the URL of your mms provider, found on your phone's APN settings page
- Proxy - more mms information that needs to be set for more providers to send
- Port - again, more mms stuff
- Group - whether you want to send message to multiple senders as an MMS group message or separate SMS/Voice messages
- WiFi MMS Fix - will disable wifi to send the message, only way I've found to do it, so if you can find the problem, submit a pull request
- Prefer Voice - send through Google Voice instead of SMS
- Delivery Reports - request reports for when SMS has been delivered
- Split - splits SMS messages when sent if they are longer than 160 characters
- Split Counter - attaches a split counter to message, ex. (1/3) in front of each message
- Strip Unicode - converts Unicode characters to GSM compatible characters
- Signature - signature to attach at the end of messages
- Send Long as MMS - when a message is a certain length, it is sent as MMS instead of SMS
- Send Long as MMS After - length to convert the long SMS into an MMS
- Account - this is the email address of the account that you want to send google voice messages from
- RnrSe - this is a weird token that google requires to send the message, nullifying it will make the library find the token every time, I'll hit later how to save the token and save your users some data down below in the Google Voice section.
Next, attach that settings object to the sender
Code:
Transaction sendTransaction = new Transaction(mContext, sendSettings);
Now, create the Message you want to send
Code:
Message mMessage = new Message(textToSend, addressToSendTo);
mMessage.setImage(mBitmap);
And then all you have to do is send the message
Code:
sendTransaction.sendNewMessage(message, threadId)
Note: threadId can be nullified, but this sometimes results in a new thread being created instead of the message being added to an existing thread
That's it, you're done sending
You'll also need to register a few receivers for when the messages have been sent and for delivery reports to mark them as read... In your manifest, add these lines:
Code:
<receiver android:name="com.klinker.android.send_message.SentReceiver" >
<intent-filter>
<action android:name="com.klinker.android.send_message.SMS_SENT" />
</intent-filter>
</receiver>
<receiver android:name="com.klinker.android.send_message.DeliveredReceiver" >
<intent-filter>
<action android:name="com.klinker.android.send_message.SMS_DELIVERED" />
</intent-filter>
</receiver>
Lastly, you'll need to include permissions in your manifest depending on what you want to do. Here are all of them:
Code:
<uses-permission android:name="android.permission.SEND_SMS"/>
<uses-permission android:name="android.permission.READ_SMS" />
<uses-permission android:name="android.permission.WRITE_SMS"/>
<uses-permission android:name="android.permission.RECEIVE_SMS"/>
<uses-permission android:name="android.permission.RECEIVE_MMS"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.provider.Telephony.SMS_RECEIVED" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
Google Voice Overview
To be able to send Google Voice messages, all you really need to do is add the final 3 permissions above and get the address of the Account that you want to send through.
To get a list of accounts available on the device, you can use the following:
Code:
ArrayList<Account> accounts = new ArrayList<Account>();
for (Account account : AccountManager.get(context).getAccountsByType("com.google")) {
accounts.add(account);
}
Display those in a list and let the user choose which one they want to use and save that choice to your SharedPreferences.
Next, when you are configuring your send settings, you should register a receiver that listens for the action "com.klinker.android.send_message.RNRSE" like so:
Code:
if (sendSettings.getAccount() != null && sendSettings.getRnrSe() == null) {
BroadcastReceiver receiver = new BroadcastReceiver() {
[user=439709]@override[/user]
public void onReceive(Context context, Intent intent) {
sharedPrefs.edit().putString("voice_rnrse", intent.getStringExtra("_rnr_se")).commit();
}
};
context.registerReceiver(receiver, new IntentFilter("com.klinker.android.send_message.RNRSE"));
}
That code will then save the RnrSe value so that I don't have to fetch it every time and waste time and data. After it is saved, just insert that value into the send settings instead and you are good to go.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
And thats it, pretty simple to do, especially for MMS! There are some problems with the library at this point, so i'm really hoping someone out there who knows more about this stuff can help me out eventually and get everything cleaned up! I feel like this should be an important part of the Android APIs, yet it is all missing so this is my go at it!
GitHub
This is my little way of giving back to xda and so I hope someone out there finds this and trys it out
Have you got a link to your library?
Great job. :good:
nikwen said:
Have you got a link to your library?
Great job. :good:
Click to expand...
Click to collapse
Haha oops, that might be helpful https://github.com/klinker41/android-smsmms
klinkdawg said:
Haha oops, that might be helpful https://github.com/klinker41/android-smsmms
Click to expand...
Click to collapse
Must admit I have not looked much into mms at the moment, but what differs from the AOSP source ? The models look similar (not that I have looked in a while)
I always thought that sliding was built on top/over AOSP with additions rather than changes ?
forgive my "uninformed question"
deanwray said:
Must admit I have not looked much into mms at the moment, but what differs from the AOSP source ? The models look similar (not that I have looked in a while)
I always thought that sliding was built on top/over AOSP with additions rather than changes ?
forgive my "uninformed question"
Click to expand...
Click to collapse
Haha no, I built sliding from the ground up off of nothing, just referenced stock source when I needed to. Before I made this library, you had to download and import all kinds of internal classes not in the APIs, both from the stock app and just android source in general. This library brings all of those together so that you don't have to download hundreds of files to get the imports all sorted out (that took me days itself to do) and then it just allows you to use all those classes in a much easier way, really by only creating a message object and sending it through the transaction class.
Basically, it does everything exactly the same as what you will see from the stock source, but it encapsulates all that so third party developers have much easier access to it and can worry about more important things in their app then sifting through source code to find out how to send a stupid MMS message ha. All of the MMS source can be sooooo confusing, especially if you're just starting out like I was.
klinkdawg said:
Haha no, I built sliding from the ground up off of nothing, just referenced stock source when I needed to. Before I made this library, you had to download and import all kinds of internal classes not in the APIs, both from the stock app and just android source in general. This library brings all of those together so that you don't have to download hundreds of files to get the imports all sorted out (that took me days itself to do) and then it just allows you to use all those classes in a much easier way, really by only creating a message object and sending it through the transaction class.
Basically, it does everything exactly the same as what you will see from the stock source, but it encapsulates all that so third party developers have much easier access to it and can worry about more important things in their app then sifting through source code to find out how to send a stupid MMS message ha. All of the MMS source can be sooooo confusing, especially if you're just starting out like I was.
Click to expand...
Click to collapse
well I will def look at it when adding mms to SmartMessenger and let you know what I think We in the UK don't use MMS at all hardy, costs too much
Heads up to anyone who is curious, just pushed google voice support for sending to the library. it is a little tricky to figure out the account stuff, so i'll update the readme when I'm done with classes for the day at school.
EDIT: put google voice stuff in the readme, so anyone looking who wants to try should be good to go.
Great library. Do you think your library could deal also with network messages? Allowing to send them is probably similar to sending SMS (if not exactly the same), but tricky is intercepting response
Marx2 said:
Great library. Do you think your library could deal also with network messages? Allowing to send them is probably similar to sending SMS (if not exactly the same), but tricky is intercepting response
Click to expand...
Click to collapse
What network messages do you mean? Google voice messages are sent over the internet if that is what you are talking about?
I'm talking about USSD codes
Marx2 said:
I'm talking about USSD codes
Click to expand...
Click to collapse
Not sure that falls under the domain of a messaging lib
klinkdawg said:
---
Click to expand...
Click to collapse
Gonna look at your shiny lib quite soon, and while I was just sat here, I decided to look at MMS/Android just to get an overview, WTF ?? They removed the ability to read APN/Addressing/Server info ? So now my obvious question... how would I get that in order use your lib ?
I take it the solution is not to ask the user to enter that info ??
deanwray said:
Gonna look at your shiny lib quite soon, and while I was just sat here, I decided to look at MMS/Android just to get an overview, WTF ?? They removed the ability to read APN/Addressing/Server info ? So now my obvious question... how would I get that in order use your lib ?
I take it the solution is not to ask the user to enter that info ??
Click to expand...
Click to collapse
Yeah, they made it really difficult to get apns in 4.0+ i think it sucks. For Sliding Messaging, I have list of carriers that the user can select from to get it working, and if theirs isn't on that list then they have to enter it manually. Was hoping google would change it back in 4.3 (or at least give us read but not write privileges) but they didn't.
klinkdawg said:
Yeah, they made it really difficult to get apns in 4.0+ i think it sucks. For Sliding Messaging, I have list of carriers that the user can select from to get it working, and if theirs isn't on that list then they have to enter it manually. Was hoping google would change it back in 4.3 (or at least give us read but not write privileges) but they didn't.
Click to expand...
Click to collapse
And the thinking is to protect against what ??? I really can't think of a reason... suppose if the device is rooted you can query the db locations (search) then read directly ?
Where did you get that list from btw ? and was there no automated way to detect carrier and only ask user if not detect/dont have settings ? I hate the thought of asking users to do this...makes my skin crawl !
deanwray said:
And the thinking is to protect against what ??? I really can't think of a reason... suppose if the device is rooted you can query the db locations (search) then read directly ?
Where did you get that list from btw ? and was there no automated way to detect carrier and only ask user if not detect/dont have settings ? I hate the thought of asking users to do this...makes my skin crawl !
Click to expand...
Click to collapse
Exactly, I have no idea. Apns can't mess up your phone more than just making you lose an internet connection, no idea why they need to be protected. It was just a list that I made, I started with a beta period for MMS and had users email me apns that worked for them, then gave it to the general public with that list. My user base tends to be people who mostly don't mind inputting their apns manually haha, lucky me.
As for figuring out the carrier, I believe that is possible but I haven't looked into it much. I just use an initial setup wizard that asks them for carrier along with other option for them to set up off the bat.
EDIT: may want to look at this for taking car of auto detecting apns. haven't tried it yet, but I'm going to look into it when i get the chance.
Use case
Say I have to send one simple SMS.
How am I aware of either the success or the failure of the 'SEND' operation given that I do not ask for delivery report? Any sample code to do that like the sample you give in OP?
Is it mandatory to specify MMSC URL/Proxy/Port in the sendSettings when just sending SMSes?
dbjc said:
Say I have to send one simple SMS.
How am I aware of either the success or the failure of the 'SEND' operation given that I do not ask for delivery report? Any sample code to do that like the sample you give in OP?
Is it mandatory to specify MMSC URL/Proxy/Port in the sendSettings when just sending SMSes?
Click to expand...
Click to collapse
Just register the sent broadcast receiver
Code:
<receiver android:name="com.klinker.android.send_message.SentReceiver" >
<intent-filter>
<action android:name="com.klinker.android.send_message.SMS_SENT" />
</intent-filter>
</receiver>
If you are sending sms you don't have to set any of the settings if you don't want to, especially if you don't want delivery reports. It will fill everything in with default values when you create it and then you're good to send away
For anyone looking for MMS support from the library, it has come an extremely long ways over the past week or so and should work very well for anyone trying to use it as long as you set the APNs for the user correctly!
deanwray said:
Not sure that falls under the domain of a messaging lib
Click to expand...
Click to collapse
Ussd codes are messages. They can be send (similarly to SMS) and network can respond their own message.
As I understand they are named "SMS Class 0". So for example dumbphones can't save them. My sgs2 asks me if I want to save such incoming message box. They are often used to activate phone account settings, or to receive phone account balance.
There in fact is no library for ussd codes, while some code snippets can be find on stackoverflow, and they are working.
If you would like, I have one project which allow for sending and receving such messages and can share it.
Related
Hey everybody,
I really miss the SMSreport feature from my old mobile phones!! Even though you can turn it on individually for every SMS you send, this is not really an option if you send a lot of text messages :-(
There must be a registry entry where you can change the default from reports off to reports on. Does somebody know what this is?
If other people would like this problem fixed, please say so in this or some other post, to encourage some programmer to look into this.
Thanks for any help.
Manuel
P.S.: To turn on the SMS report when writing an SMS: Edit --> Options.
Hi There. I am really also looking for a fix to this anoying problem.
Perhaps a little app that does the click. A regedit or something.
Thanks alot
Alex
There are other threads on this and for the moment, at least, it is not supported on the XDA. I have looked and cannot find a registry entry or such. I have added this requirement to my 'possible development ideas' list
The only alternative I know which works is to use a special character string at the start of every text. This string depends on country and operator. For me, on O2 UK, the characters are *0# (thats a zero in there) so I enter it in the subject field (I set it up as one of my pre-defined strings) then enter my text as normal in the usual place. Other special strings I know of are: 111 for Fido and *noti# for T-Mobile US.
See here for more.
Sure... I used the search before. But in none of the topics there`s a final solutin.
So i thought I push this topic up again.
Technically a program or reghack must be possible...
Could somebody please figure that out.
Thanks alot
Alex
based on my request Yoobe build:
VoipSMS
its does not has all the stuff I asked for below
but it works and Im actually wondering if my original plan was better then his
anyway great credits to Yoobe and his VoipSMS software.
check his project site for the latest version and info: http://smsoip.be
original post
dear readers I recently started to find a way to sms cheaper with my pda phone and unlimited dataplan. In the end I found voipbuster.
with voipbuster I can sent 5cent sms vs 22cent sms with the provider, next to that it doesn't require sms packs and the money you put on it says there for a long time unlike the telephone provider.
after that I wanted to find a app that could easly sent a sms with voipbuster.
I found two apps that could send but they are both made in java and require serviral steps each time to use.AFT and voipbusters own java client gsm.voipbuster.com (also supports phone calls)
the major drawback with those apps is that you have to enter all your contacts in them. (and I have no Idea where it stores them so prob gone after a next hardreset)
so after some research I found out that sms could be sent trough a link formatted this way:
Code:
https://myaccount.voipbuster.com/clx/sendsms.php?username=xxxxxxxxxx&password=xxxxxxxxxx&from=xxxxxxxxxx&to=xxxxxxxxxx&text=xxxxxxxxxx
so basicly what is a (sepirate) application that can set the first 3 entries username password and from(from lets you decide if you want phone number or username) and what site you want to use as there are sites excactly the same as voipbuster like voipcheap, 12voip voipbusterpro ect.
then there needs to be a way to add a aditional entry at the contacts summary(where you get to choise between call mobile call home send txt send email ect.) that contains the mobile number that is altready there for normal txt msging and links to a similair looking text message program that executes the link instead of sending the text msg the regual way.
tues creating a way to sent sms messages easly and cheap.
therefore I want to ask some of the great programmers to take this challange.
or. tell me what I need to learn to be able to program this myself.
below a short explaination on how I think this is going to work
Code:
https://myaccount.voipbuster.com/clx/sendsms.php?username=xxxxxxxxxx&password=xxxxxxxxxx&from=xxxxxxxxxx&to=xxxxxxxxxx&text=xxxxxxxxxx
setup wizard fills in the provider (voipbuster/cheapvoip) the username the password and the from form.
contact summary fills in the to entry by using the data already provided.
modified txt msger app fills the txt entry and has the actual sent button.
well thats it,
feel free to do it anotherway if you think it will work better/is easier to make
I hope someone might get inspired to do this.
Check last version : http://smsoip.be
thank you for your help!
you forgot to add the <input type="submit" value="Submit"> code but after I added that your html code worked good
but my intent was to use the web browser only at the last stage for sending.
this however could work. if we can find a way to link the users to this page providing the phone number.
and if the username and password en from field could become static or using a file as its source.
hmm I just started to surf on this forum.
I am downloading VStudio and pocketPC SDK for starting to make native code for PocketPC.
This sms thing interest me a lot.. I use to send lot of sms in a day, this should help my bank account
It should be easy to get contacts and phone numbers and send sms via voipbuster.
ok based on the input I made this html page
HTML:
<html>
<body>
<form action="https://myaccount.voipbuster.com/clx/sendsms.php" method="get">
<input name="username" type="hidden" value="*******" />
<input name="password" type="hidden" value="*******" />
<input name="from" type="hidden" value="*******" />
<input name="to" size="27" /><br />
Message <br />
<textarea name="text" cols="20" rows="10" /><br />
<input type="submit" value="Submit" />
</form>
</body>
</html>
you need to replace the ****** to your login details and number for it to work properly contain.
this way there are only two values left.
the contact number you want to sent to and the text msg.
so basicly what we want on this point is. to somehow inject the contact number into the to input box from the contact sumary. so we can input the desired sms msg and hit submit.
feel free to offer a solution
My Vstudio is ready with the PPC SDK.
I will check how to get contact list and gsm number
I started to make a small application for this :
very first try : (tell me if you like it )
First working version is here...
tell me if it works... I tested it with WM6 on HTC Artemis and it worked perfectly
Note for other : to be able to use this software, you need to go on voipbuster.com and open an account.
Small changes after using it many time.
I think Bigger contact list is easier to use, and Added clear button.
I dont clear all everytime, in case we want to read what we just sent
Great!!!
@Yoobe: Are you plan to release your source code? I want to port it, to use it with SMS77 (www.sms77.de)
HTML:
<html>
<body>
<form action="http://gateway.sms77.de" method="get">
<input name="u" type="hidden" value="*******" />
<input name="p" type="hidden" value="*******" />
<input name="from" type="hidden" value="*******" />
<input name="to" size="27" /><br />
Message <br />
<textarea name="text" cols="20" rows="10" /><br />
<input type="submit" value="Submit" />
</form>
</body>
</html>
hmm the code has nothing special in it
if you want send me the link for sms77 (like the one for voipbuster) and i can make you a release.
by the way I saw that voipbuster dont count anything for this kind of sms... may be a bug in there system. I dont have any credit on my account, i can send sms
I found this on the documentation :
Code:
http://gateway.sms77.de/?u=XXX&p=XXXX&to=XXXX&text=XXXX&type=quality&from=XXX
I will make a release with this ok?
try this :
note : there is one more item in the registry.. 'quality' compared to the other version
Ok, here are the informations for SMS77:
URL: http://gateway.sms77.de
u = username
p = password
from = sender number
to = recipient number
text = content of SMS Text
Can you add also a radio button to choose between two different SMS types. It´s called BasicPlus and quality SMS. You can choose between these SMS types with
type = basicplus or
type = quality
Example:
http://gateway.sms77.de/?&to=017112...MS&from=01719876543&u=MYUSERNAME&p=MYPASSWORD
http://gateway.sms77.de/?&to=017112...MS&from=01719876543&u=MYUSERNAME&p=MYPASSWORD
I updated my other post
1- Registry
You have to create (in this version) manualy registry keys for saving your information
[HKEY_CURRENT_USER\VoipSMS]
"from"="YOUR NUMBER"
"password"="PASSWORD"
"username"="USERNAME"
"quality"="QUALITY"
Click to expand...
Click to collapse
It should mean:
"type"="quality"
respectively
"type"="basicplus"
Hmm oups.. my mistake there..
Did you tested it with "quality" registry key? sms sent?
I will modify it now to "type"
it worked!
amazing you did it!
the contact thing was not as I imagened but this works just as good or mabye even better!
well, Im sadisified with it.
If you enjoy the changle you could make a fancy setup button (like your about button) that let you setup everything you need to make it work with diffrent providers, or atleast username/password/of so you won't need to edit the regfile anymore tues perfecting the application.
I however don't mind using the regfile and am glad with your application
thank you very much!
btw I use htc amertis to (B&B 3.7)
and I don't have that nastly little free sms bug lol
thanks again and goodluck
For sms77 :
"Type" is corrected now.
Great if it works in your PDA too
I could probably add many many options to this application but I don't have much time today.
How did you imagine the contact thing? listbox?
itarix said:
amazing you did it!
the contact thing was not as I imagened but this works just as good or mabye even better!
well, Im sadisified with it.
If you enjoy the changle you could make a fancy setup button (like your about button) that let you setup everything you need to make it work with diffrent providers, or atleast username/password/of so you won't need to edit the regfile anymore tues perfecting the application.
I however don't mind using the regfile and am glad with your application
thank you very much!
btw I use htc amertis to (B&B 3.7)
and I don't have that nastly little free sms bug lol
thanks again and goodluck
Click to expand...
Click to collapse
Ok. Version 0.3 work´s great with SMS77.de
I have two another wishes. I don´t want it for free. I can give you a little donation via PayPal if you want.
So my wishes are:
The SMS77 Gateway responses with an code after sending a message:
100 means "Everything ok. SMS is sent successful
300 means "Username or Password wrong"
500 means "Not enough credits availible to send SMS"
there are many others codes.
Is it possible to display this code in your SMS tool after a SMS is sent?
My second wish:
I want to have a little contact list (not all contacts of my device should be displyed in the contact list). Is it possilbe that your program reads a little text file to use this informations for the Contact list?
Example (contacts.txt)
bruno 01711234567
bob 01791234567
fred 01755486946
sylvia 01764467577
Many, many thanks Yoobe, for your great SMS tool !!!!!!!!
Hi all
I'm trying to develop a windows mobile 5 managed application on AT&T 8525 smart phone, and on a prepaid plan from AT&T.
Unfortunately, the prepaid plan sim generates notification messages about the current balance preriodically, and this happens even if my application is running!!!
Is there anyway to trap, disable, or surpress system notification through managed code, phone settings, or registry hack?
I spent some time playing around with the registry settings, especially those under: HKEY_CURRENT_USER\ControlPanel\Notifications. However, I was not able to get it to work.
Note that the notification comes from the network as a USSD message.
I have been trying to find a solution for this problem for a while, so any help would be greatly appreciated.
Stanley
I have been looking for a way to disable ignore get rid of etc etc of that annoying USSD message. If you come up with anything please shoot me an e-mail.
However... I have a nokia 5500 that I use with a prepaid sim sometimes and it does something wierd. Usually it will start ignoring the balance notification message. If I have the MP3 player going and I send and recieve texts through the nokia suite it will eventually stop showing the messages. Not sure why and my Nokia friend didn't know why either. It has to go through the whole thing again if you reboot the phone though. I'm afraid to upgrade the firmware as I might loos this really great feature.
But if you come across something let me know as I have been digging all over for a solution and there is almost no info on it out there other than frustrated customers.
hklm\services\ussd
Notification balloon suppression SOLVED
After much searching and tinkering I finally found a simple way to disable the annoying balance notification message that arrives after every data connection on the AT&T Pay As You Go service with a data package. This fix involves adding a single registry entry and it suppresses all USSD messages that originate from the carrier, even those that you might request manually.
Here is the registry change:
HLKM/ControlPanel/Phone
New value: SuppressUSSD := DWORD(1)
Add this value and (probably after a soft-reset) you will not be bothered with the $0.00 change notification messages.
-Kevin
Samsung Sync
I have this same problem with my Samsung Sync it is also prepaid. How do i disable the notifacation using Bitpim? or what is the program you used to disable it with.. Sorry I'm new to this and don't really understand what I'm doing.
Thanks
sdkevin said:
Here is the registry change:
HLKM/ControlPanel/Phone
New value: SuppressUSSD := DWORD(1)
Add this value and (probably after a soft-reset) you will not be bothered with the $0.00 change notification messages.
-Kevin
Click to expand...
Click to collapse
Thank you!! Worked like a charm
Thanks
Many thank yous, worked for me as well. I called ATT before finding this and they told me there was no way to turn them off, looks like I have to spread the word now.
HLKM/ControlPanel/Phone
New value: SuppressUSSD := DWORD(1)
-Kevin[/QUOTE]
I am new to registry editing. I am going into the phone folder (using PHM), Selecting "New DWORD value," typing "SuppressUSSD" in the value name field, entering 1 in the value data field, and selecting decimal. I am still getting the popup notifications.
Sorry to ask such a newbie question, but what am I doing wrong?
help please.
sdkevin said:
After much searching and tinkering I finally found a simple way to disable the annoying balance notification message that arrives after every data connection on the AT&T Pay As You Go service with a data package. This fix involves adding a single registry entry and it suppresses all USSD messages that originate from the carrier, even those that you might request manually.
Here is the registry change:
HLKM/ControlPanel/Phone
New value: SuppressUSSD := DWORD(1)
Add this value and (probably after a soft-reset) you will not be bothered with the $0.00 change notification messages.
-Kevin
Click to expand...
Click to collapse
is this something i have to do on the computer or on the phone? i need your help with this step by step. please reply asap. email at [email protected] if need be.
This would be on the Hermes. You can find a regedit tool by using the search function or just check in your programs directory (check all folders too, especially tools) as it may have been cooked in.
Cheers...
sdkevin said:
After much searching and tinkering I finally found a simple way to disable the annoying balance notification message that arrives after every data connection on the AT&T Pay As You Go service with a data package. This fix involves adding a single registry entry and it suppresses all USSD messages that originate from the carrier, even those that you might request manually.
Here is the registry change:
HLKM/ControlPanel/Phone
New value: SuppressUSSD := DWORD(1)
Add this value and (probably after a soft-reset) you will not be bothered with the $0.00 change notification messages.
-Kevin
Click to expand...
Click to collapse
Thanks a lot, you made my day.
hello
could somebody explain this step by step please
i need it baaaaaad!
at &t notification
I have a blackberry curve 8310. I am on the go phone plan and i am tired of getting these notifications after every thing i do. Can somebody walk me through on how to get this off.
for wm6 users, i have written a walk through in my blog, hope this helps
http://www.xanga.com/ewcy/692252173...nnoying-att-gophone-balance-reminder-message/
sweet
awesome. just used this to help a friend of mine who has uses prepaid cingular with his 8525. worked great!
thank you!!!
sdkevin said:
After much searching and tinkering I finally found a simple way to disable the annoying balance notification message that arrives after every data connection on the AT&T Pay As You Go service with a data package. This fix involves adding a single registry entry and it suppresses all USSD messages that originate from the carrier, even those that you might request manually.
Here is the registry change:
HLKM/ControlPanel/Phone
New value: SuppressUSSD := DWORD(1)
Add this value and (probably after a soft-reset) you will not be bothered with the $0.00 change notification messages.
-Kevin
Click to expand...
Click to collapse
worked like a charm for the wizard
just got at&t today and it already started to bug me
ww2250 said:
hklm\services\ussd
Click to expand...
Click to collapse
once here what do u do
what do you turn off
Thank you so much for the info.. i disable that annoying pop up on my HTC touch viva.
If you haven't already heard Sprint has denied access to the MMS service with PPC devices. We used to get around this by installing Arcsoft MMS but even that won't work anymore.
Since the only way to send MMS or PictureMail is through E-Mail I was wondering if it's possible to develop an application to make this an easier process. The application will ask for phone number or contact name, the carrier, the media to be sent, the subject, and the message. With all that information it'll compose an e-mail to [phonenumber]@[carrier'saddress].com
-- Edit --
no2chem is working on a workaround. see his post on ppcgeeks from more info.
http://forum.ppcgeeks.com/showthread.php?t=19122
A simple workaround...is to send the pic to urself...([email protected]) and once u receive it jus forward the url to people u wanna send it to. thaz wut they get anyway. that way you dont have to worry about different carrier mms addresses.
Others have a working MMS application installed through their carriers or none PPC Sprint phones. The beauty of MMS is the fact that it's so simple to send and retrieve the media. If it wasn't for that then we can just e-mail each other photos and skip the whole process.
this sounds like a great idea, until sprint lets us use it again, which i don't see happening
malibu_23 said:
A simple workaround...is to send the pic to urself...([email protected]) and once u receive it jus forward the url to people u wanna send it to. thaz wut they get anyway. that way you dont have to worry about different carrier mms addresses.
Click to expand...
Click to collapse
When you say send the pic to your self at [email protected] I am assuming you mean to your 10 digit phone #@sprint.pm.com
I sent a pic to myself via hotmail and I get the message returned to me...how did you do this?
you have the address wrong.
it's [email protected][B]pm.sprint.com[/B]
initial said:
you have the address wrong.
it's [email protected][B]pm.sprint.com[/B]
Click to expand...
Click to collapse
meh, im thinking about working on this. but believe me, i have a looooot of other things on my hands.
wouldn't be that hard though, a simple app where it just asks you the photo/audio/video you want to send and the destination number... and whisks it away....
no2chem said:
meh, im thinking about working on this. but believe me, i have a looooot of other things on my hands.
wouldn't be that hard though, a simple app where it just asks you the photo/audio/video you want to send and the destination number... and whisks it away....
Click to expand...
Click to collapse
Actually thats funny, because I have been working on this lol. Building the DB right now still. Do you happen to know of any third party MMS applications? Open source or the API's?
what language are you writing it in.. I would be more then Happy to help with the dev work.
I better start preparing to bow down to you guys if you crack this
fr0st said:
what language are you writing it in.. I would be more then Happy to help with the dev work.
Click to expand...
Click to collapse
Visual Basic
i developed a beta workaround,
see
http://forum.ppcgeeks.com/showthread.php?p=192013#post192013
COUNT ME IN.. I would rather c# but I would love to help. My roommate and I both are programmers and would love to assist? You looking for some help blue?
do you have any problems with sharing your code (which I am sure in in c++) no2chem
fr0st said:
do you have any problems with sharing your code (which I am sure in in c++) no2chem
Click to expand...
Click to collapse
Frost be more then happy. As I told u in pm my last post is still pending it will shed some nfo on this. NU said he wrote in C++ not sure if he is willing to help. As far as I go I haven't wrote C in 7yrs never took on ++ though there not far off.
NUC - I will go check out what you have.
Someone posted this
Someone over on the PPCGeeks forum posted this site:
http://pktpix.com/
Seems like it might be a workaround as well as no2chem's... Just like teleflip and other SMS Gateways, but this one is international (and free)...
fr0st said:
do you have any problems with sharing your code (which I am sure in in c++) no2chem
Click to expand...
Click to collapse
no problems really, but the code is very simple and is in c#...
c++ would have been too much time...
this code does nearly all the work...
OutlookSession os = new OutlookSession();
EmailAccount ea = os.EmailAccounts[0];
EmailMessage em = new EmailMessage();
em.BodyText = textBox1.Text;
em.To.Add(new Recipient(textBox2.Text + "@" + ((carrier)comboBox1.Items[comboBox1.SelectedIndex]).address));
em.Importance = Importance.Normal;
em.Sensitivity = Sensitivity.Normal;
if (imagename != null)
{
em.Attachments.Add(new Attachment(imagename));
}
ea.Send(em);
mapi.setAccountName(ea.Name);
if (mapi.forceSyncbyName())
{
MessageBox.Show("Message Sent");
}
else
{
MessageBox.Show("Forcing sync failed, message is in your outbox.");
}
Visual Basic, I could use help new to developing on a PPC platform.
This is the function. The idea is to build a small DB because most people only have a small group of people they MMS. Easily containable in a personal config. A DB of all the carriers MMS addresses on file where users also configure a parameter of numaric class carriers with exceptions for ported numbers. Look a little like this to give you a basic idea. Like local zone 850-532-XXXX = ATT and 850-543-XXX = Sprint.
User adds contact in send list. App verify value as.
Load contact in string as send_to but we will only load first 7 chars
Open DB config file
Load DB config file
If send_to is = to a char value in config we auto address sending address as textBox.Text = string_to + carrier match
Else
Prompt string carrier_db user selects a carrier from list load to string usr_carrier
Then textBox.Text = send_to + user_carrier
Write send_to+usr_carrier to DB config
call Send_btn
EndIf
Obviously more then 1 IF statement is needed lol just a concept idea so you know what I am doing. As well an exempt file is needed for ported numbers to reference before the DB carrier file is called. Then if number is not listed we can call an ElseIf statement to carry onto the above. The grab contacts reference is also still needed.
no2chem said:
no problems really, but the code is very simple and is in c#...
c++ would have been too much time...
this code does nearly all the work...
OutlookSession os = new OutlookSession();
EmailAccount ea = os.EmailAccounts[0];
EmailMessage em = new EmailMessage();
em.BodyText = textBox1.Text;
em.To.Add(new Recipient(textBox2.Text + "@" + ((carrier)comboBox1.Items[comboBox1.SelectedIndex]).address));
em.Importance = Importance.Normal;
em.Sensitivity = Sensitivity.Normal;
if (imagename != null)
{
em.Attachments.Add(new Attachment(imagename));
}
ea.Send(em);
mapi.setAccountName(ea.Name);
if (mapi.forceSyncbyName())
{
MessageBox.Show("Message Sent");
}
else
{
MessageBox.Show("Forcing sync failed, message is in your outbox.");
}
Click to expand...
Click to collapse
"EmailAccount ea = os.EmailAccounts[0];" So you change the 0 to whatever number the email account on your phone is right? 0 being outlook... and i'm guessing an autonumber from then on?
Also what namespaces and assembly references are you using?
fr0st said:
"EmailAccount ea = os.EmailAccounts[0];" So you change the 0 to whatever number the email account on your phone is right? 0 being outlook... and i'm guessing an autonumber from then on?
Also what namespaces and assembly references are you using?
Click to expand...
Click to collapse
well, that was code for the quick beta.
Microsoft.Windowsmobile namespace, look into it =) its quite nice.
EmailAccounts[0] would pick the first e-mail account, it only can use e-mail accounts in outlook. i used[0] as a quick hack and slash test, but now i let them choose which e-mail they want to use, , you would just enumerate thorugh all the email accounts,
foreach (EmailAccount ea in os.EmailAccounts)
{
....
}
I am creating an application where it will send a pre-prepared text to selected people at a push of a button. The reason for this is that I am a volunteer firefighter and most of us have pagers. Some of us do not have pagers since the department ran out and they are not in the budget to buy more right now.
Anyways, I have the basic layout that I would like set up.... And that's about it. I am used to javascript but that is a little different then Java. I am using the Eclipse program to code.
Here's my priorities to get working first:
-Have a message sent when button is pushed (message can be hard coded now so it works. would like to be able to edit it later)
-Be able to select contacts the message is sent to
Future wishes:
-Be able to add new messages
-Be able to edit messages
-Manage messages (mainly a list of the messages in scrollable list view)(popup for Edit|Delete)
Example Message:
(DEPT NAME) Alert:
Fire Alarm Activation
Time sent: 1830
Click to expand...
Click to collapse
So right now I need help with:
Adding the SMS service to send out the text message when the button is pressed
Selecting contacts to send the message to
Coding in the message
If you can find a guide on how to do that, it would be greatly appreciated. I am completely new to android programming so please don't bash me for something that may seem completely easy.
Thanks in advance for any help.
Probably a free app out there.
Why not just make a Contact with multiple phone numbers in it and create the text using default SMS app? If speed is of the essence, then pre-define some "codes" for certain events much like on a pager where you get a "911" from a caller.
And don't take this the wrong way because I know a few volunteers and appreciate their service because it is NOT "easy", but a PAGER? Haven't they gone the way of the floppy disk? LOL That's a damn tight budget there!
I have looked and haven't seen one that will fit my needs.
Speed is essence in this case because i want to be able to open up the app and then hit a button to send the text so I am not fiddling with my phone while driving to the station.
I have the basics of the program worked out. I have all the messages pre-set and sendable, but only to one person.
(for those looking for a guide on how to implement SMS messaging, this is a great one that shows you step by step: http://mobiforge.com/developing/story/sms-messaging-android)
I am now stuck on being able to send it to multiple people at the same time. Current code:
callStructureFire.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
String msgText = "IHBVFD PAGE OUT:\nStructure Fire\nTimeout:"+formattedTime;
String contacts = "5556";
sendSMS(contacts, msgText);
}
});
Click to expand...
Click to collapse
(Red is where the numbers go. I am using Eclipses emulator's to test so i have 5554(main) 5556 and 5558 (testing for receiving messages))
When I try to do "String contacts = "5556, 5558(with and without the space)";", it will send the message to the first phone but not the second. On a real phone, it does not send the messages at all.
I also still need to implement a contact selection which I have been looking on google for a few hours now and cant find a guide on how to do it. What I would like to happen is when you press the phones menu button, it gives the option to manage the recipients (or even a group) and for that selection to stick even if I leave the app/restart the phone/whatever.
I really would like to get this all done by Thursday night so I can start using it.
No offense taken. The thing is that my department is strictly volunteer. We get about 100 calls a year so we do not have the call volume to get paid. Being strictly volunteer also means the the city does not charge taxes to the residents. We are really only funded by donations and fundraisers (which we do 2-3 a month). With pagers (Minitor IV) being around $140+ on ebay and then $30-50 for programming them... Yeah... It gets kinda pricy for 4 pagers lol.
Can anyone help me get multiple contacts working at least? Really want to have this done soon.
Skull, I am guessing your Communications center does not support any type of email or txt ripnruns for calls?
If either are supported, we use IamResponding.com and also CADPage (free on the market). Our center only sends emails but we have it getting parsed down to a compact format and resent as TXT. PM me if you want/need more info.
I cannot speak enough about both of these solutions!
Our dispatcher is our police dept. We have recently talked about IAmResponding within the dept but that got shot down by the officers because that's an extra 3-800 a year... And again, not everyone has pagers so they still wouldn't really know if we have a call. I am still trying to get them to do the 2 month trial. CADpage isn't supported in my county.
We have looked into those, but for now this program is the only option that I can see :/