Related
Hi there,
Is it possible (or could any kind developper!) to script a text message that would always have the same text.
Basically to pay the London Congestion Charge (£5 for driving into Central London), one needs to send a text message to the number 81099 containing the last four digits of their credit card.
As the message is always the same, I thought it might be easy to script such a message to make it easy to pay the charge.
Thanks!
isn't that easy? set up your pre set messages as the words and numbers u need so then u create a new text and click my text chose the one u want and send it!
Hi,
Thanks for your reply. I see what you mean, but that is still several clicks more than I have in mind. With a script/batch file, it would literally be a one button (through a shortcut) click which could even be assigned to a hardware button. Lazy ... maybe! I guess it all really depends on whether the function to send a text message can be accessed from the command line.
no kidding ur lazy!
You can write smssender.html which will include a javascript, that will redirect you to:
mailto:123456789 body="Send me a taxi!" - I'm not sure about the syntax...
Everytime you execute this webpage, you will only have to confirm SMS sending and close IE (I don't know if window-terminating scripts work in PocketIE) :idea:
(!)
I don't know if you're willing to pay for it, but there is a utility called Cell Profiler found here
You can pre-define an SMS to be sent to a particular number when you drive through a particular point.
Download the trial and see if it fits in with your requirements.
You can use the scripting utility called nscriptm to automate your screen taps etc. Give it a go. Its fairly simple and there is a good sample that shows you how to work with screen taps.
Thanks for your replies. I will try each and see what works best for me.
Thanks again!
XDA2-owner said:
Hi there,
Is it possible (or could any kind developper!) to script a text message that would always have the same text.
Basically to pay the London Congestion Charge (£5 for driving into Central London), one needs to send a text message to the number 81099 containing the last four digits of their credit card.
As the message is always the same, I thought it might be easy to script such a message to make it easy to pay the charge.
Thanks!
Click to expand...
Click to collapse
I wonder if I understand you correctly. In my SMS messaging on the XDAII I have something called My Text as a menychoise. The predefined messages in there can be added/amended in the Edit menu...You could do it easily there...?
Hi,
Yeah - someone mentioned that earlier. What I was really looking for though was a literally one-button way to pay my congestion charge - basically a shortcut to a batch-file/script that creates the SMS, enters the text and addresses it correctly.
Does anyone know if the mailto: command that you can use to create an e-mail would work for an SMS? If so, that would be fine as within the mailto: command you can specify the recipient (81099 in this case) and the text (credit card digits).
Thanks for all the responses.
1. PPCs don't make any difference between e-mails and short messages - you have same dialog, same options and same mailto: command...
2. JavaScript in HTML page is probably the fastest way to perform actions you need (if you dont want to write it in C++ of coz!)
3. If I'm not too drunk today I'll have probably posted an example of such page by tomorrow - I finished with school today, so I have something to celebrate! 8)
Would be great to see a javascript sample if you could be bothered/sober enough to put one together.
Thanks very much indeed.
So, that's what it looks like:
<html><body>
<script language="JavaScript">
window.location="mailto:81099?body=Here's my creditcard number!"
</script>
</body></html>
mailto: - where
body: - what
You can also add subject: (don't forget to divide it with "?" :!: )
It looks like Pocket IE does not support close() function. Can anyone confirm? Any way, even if you will have to close IE manually, executing this file (possibly from Today screen) and pressing SEND is still faster than going to New>SMS>MyText>choose>enter number>confirm... 8)
That worked just great! Thank you so much.
I used the PHM Pocket PC PowerToys's TrayLaunch program to put a shortcut to the .htm file onto the bottom bar of the Today screen.
I still need to press the Send button (is there a way to automate that?) and close IE but it's still MUCH quicker than doing it through a manual SMS.
Thanks again for all comments and help.
Compose new text message from shortcut
Hi there,
I'm a total newbie (NOT a programmer at all), just a Qtek 9090 addict. I 've been looking for something similar to your request: I wanted a way to go straight to the "compose text message" window from the today screen or a hardware button. I finally found a way to do this (maybe not the best way, but I can't find a site that lists all the possible parameters for tmail.exe).
If you're still looking for a better way to automatically launch your message, try this:
Copy the "Messaging" shortcut from Windows/Start Menu and put the copy somewhere you can work on it. Rename it to something like "London Congestion".
If you have Resco file explorer on your device, select your new shortcut and view its properties. On the second tab ("shortcut"), you should see the line "\Windows\tmail.exe". Change it to this:
"\Windows\tmail.exe" -service "text" -to "81099" -body "your credit card number"
Then tap "ok".
Move your new shortcut to Windows/Start Menu/Programs. Now you should be able to access it with your Today screen launcher or Button launcher.
If you don't have Resco file explorer, copy your shortcut to your desktop and open it with Notepad. You'll see something like 43#"\Windows\tmail.exe"; just leave the number at the front, make the adjustments I described and save the file. Then put it in Windows/Start Menu/Programs on your device.
I tested this and it worked for me, so I hope it does for you too!
To simply go to the "compose" window from a shortcut, I use this line:
"\Windows\tmail.exe" -service "text" -to ""
Robrecht.
Thanks a lot Robrecht,
I was actually going to re-open this issue because I have a Blueangel now - and I don't know if it's because it is WM2003 Second Edition or not, but the javascript that was written for me in the above post no longer works, so I needed a new method.
A very timely reply and I will try it over the weekend.
Thanks a lot,
Jimmy
I think you should add "I hope it chokes you bunch of rip off bastards" We pay road tax, we pay huge tax on fuel, we sit for hours in jams and they want money :?:
Well, XDA2-owner, you're very welcome!!!
I have a Blue Angel too and it works for me, except....... I discovered a flaw.
I thought the
-service "text"
parameter made sure the automatically created message was always a text (SMS) message, but instead it turns out that the format of the new message (SMS, e-mail, MMS...) changes according to the last viewed folder in Pocket Outlook. So if you were checking your e-mail account just before you use my shortcut, it wil create an e-mail instead of a text message.
This sucks! And I was so happy I'd been able to help someone!
Does anyone know a way to make sure the new message is always a text message?
Hi again,
This issue was one I was also having with the Javascript - I got used to the fact that if I was using the e-mail part of Messaging, I would switch it back to SMS before closing it.
One issue I am having though - and it might just be to do with my setup - is that when I run the shortcut from Start-->Programs-->Congestion, it works fine. When I try and launch it from my Today screen though, using BatteryPackPro, it doesn't seem to create the text message, and just stays on the Today screen.
Any ideas?
Thanks again for your help and ideas.
I can't imagine I just got the latest toy and the whole thing made a step backwards...
I cannot send an SMS to a specific group of people among my contacts if not choosing each of them one by one each time...
I have many different group of people I send SMS' to and I was used to have lists on SmartSMS while using a SmartPhone and also distribution lists and categories on Outlook while at the desk...
With Wizard it seems there are no solutions... I have tried almost all of the trial SMS managers out there, but it seems I have no luck...
I've spent the last two days looking for a solution (either within WM5 or as an addon...). No luck...
Do you have any hint ?
Is there anyone wishing to develop something like above explained ?
Thank you very much...
Best regards...
Mix
Yeah, im also intressted in sending sms to a group.
Me too, plz let me know if you find some solution...
for a OS of such quality it is an appalling lapse by MS
We should all email them a support question and ask them if it will be included in the next release??
Re: for a OS of such quality it is an appalling lapse by MS
peteborota said:
We should all email them a support question and ask them if it will be included in the next release??
Click to expand...
Click to collapse
I've tried a little bit to use InfoSharp to send SMS to contacts within a category (fortunately there is such chance on this small and nice program...). The program itself is not yet "finished" but it does the job...
I'll post my suggestion to the developer, hoping that growing, it will become better.
About sending our comments to Microsoft: well, I personally think it would be nice, but it would be nicer if our suggestions could be "understood" in any way. It seems to me this rarely happens.
Not to mention the function I'm looking for was present in WM2003SE !!!
Maybe too many shrimps are eaten within MS... ;-)
Ciao
Mix
P.S. Actually ANY SUGGESTION on this matter would help, as it seems there still is not solution...
Hi guys have found an app for sending sms by category group
The app is called 'simplysms' and is developed by a company called visual IT.
It's not windows 5 compatible at the moment although I am waiting for a response from the developers.
I'll keep people posted.
Website: www.visualit.co.uk
SimplySMS mobile 5 will be released in the new year.
good news
Re: Hi guys have found an app for sending sms by category gr
peteborota said:
The app is called 'simplysms' and is developed by a company called visual IT.
It's not windows 5 compatible at the moment although I am waiting for a response from the developers.
I'll keep people posted.
Website: www.visualit.co.uk
Click to expand...
Click to collapse
Is seems they have no plans developing any WM5 version of such program, otherwise something would have appeared on their website...
I think then there is no other option to keep a Nokia phone in my pocket too... but then I don't need an HTC pocket PC... I can run with another one with no phone functions as I did in the past...
Any other news ???
Ciao
It is very helpful utility if we can find it
if we can have such an application it will be very greate
SimplySMS for windows 5 will be launched in March
Had an email from Visualit the makers of simplysms. They will be releasing a windows mobile 5 version of the software in March this year.
It will allow users to send a text to a outlook category of contacts.
Hold on it's round the corner.
Re: SimplySMS for windows 5 will be launched in March
peteborota said:
Had an email from Visualit the makers of simplysms. They will be releasing a windows mobile 5 version of the software in March this year.
It will allow users to send a text to a outlook category of contacts.
Hold on it's round the corner.
Click to expand...
Click to collapse
march ? March ? MARCH ???
It's on next century !!! I'll have switched to another phone by that date...
I'll have to wait then, but I'm looking around for another solution... pretty tired of hand-choosing between my contacts...
Thanks a lot anyway... the fault is not yours... it's MS' first of all...
Ciao
You could create a shortcut with the recipients pre-listed. E.g.
Text message colleagues.lnk
32#"tmail.exe" -to "06xxxxxxx; 06xxxxxxx; 06xxxxxxx" -service ""
Will prompt the messaging app with a new message. If you last used Hotmail/whatever, though - it won't start a new text message, but a new e-mail/whatever.
If you want to be able to pick the account, use instead:
32#"tmail.exe" -to "06xxxxxxx; 06xxxxxxx; 06xxxxxxx"
If you want to add a default message, use :
32#"tmail.exe" -to "06xxxxxxx; 06xxxxxxx; 06xxxxxxx" -body "Text here"
-----
You can also use vijay555's VJSMS to always send a text message, regardless of what account you're in.
32#"\Program Files\vijay555\VJSMS.exe" "06xxxxxxx; 06xxxxxxx; 06xxxxxxx" -body "Text here"
http://www.vijay555.com/index.php?Releases:VJPhoneTools
-----
Essentially, all the above are more like 'templates' than they are group text message tools. If you have a new person you want to add to a 'group', you'll have to manually adjust the shortcut.
On the other hand - it's available now, and freely.
ZeBoxx said:
You could create a shortcut with the recipients pre-listed. E.g.
Text message colleagues.lnk
32#"tmail.exe" -to "06xxxxxxx; 06xxxxxxx; 06xxxxxxx" -service ""
[...omissis...]
Essentially, all the above are more like 'templates' than they are group text message tools. If you have a new person you want to add to a 'group', you'll have to manually adjust the shortcut.
On the other hand - it's available now, and freely.
Click to expand...
Click to collapse
Thank you very much for the helpful hint... the main problem anyway is always the same: I use distribution lists so I don't have to bother on updates of contacts details. I just keep them updated and I have the result.
There is anyway a major problem on the hint you just gave me: line limitation...
WM5 accepts for example multiple recipients on the "To:" field but the problem is I still do not know which is the maximum number (I suppose it depends on how long the "To:" field can be, maybe max 255 char.).
The same problem applies to your hint: I suppose there is still the limitation of 255 chars... or not ? ;-)
Thanks anyway.
yeah, I have no idea what the maximum length is
Of course, for Dutch numbers, 10 chars length, 11 if I include that semicolon, that's still 25 numbers Sending an SMS to 25 people should be more than enough for me
You could also write a mort script to call VJSMSSend a gazillion times :>
The former issue is the bigger one - I hate updating lists, myself. There shouldn't be anything holding developers back from implementing mailing lists, using info from the contacts POOM, and setting up SMS's (setting up and sending an SMS is a MSDN example, so.. pff)
I'm no developer, though - I just managed to get "Hello world" running a few days ago, and then I got sick - so no long computer times for me
SMS Distribution Lists
Having Upgraded to a qtek 9100 from a nokia 9300 communicator for better windows/outlook compatibility etc, I have been searching for something to fill the gap for SMS Distribtion lists.
I understand from reading other posts than previous versions of Windows mobile did offer this, aswell as being able to play different ringtones depending on chich caller group a call was originating from.
Has there been any new information on SMS Distribution lists for the HTC Wizard phones?
Also, is there any way to actually just select "send new txt message" rather than go to messaging and browse to the correct account/ folder to achieve this?
Regards
Jass
Re: SMS Distribution Lists
jasvinder said:
Having Upgraded to a qtek 9100 from a nokia 9300 communicator for better windows/outlook compatibility etc, I have been searching for something to fill the gap for SMS Distribtion lists.
Click to expand...
Click to collapse
Welcome in the "unsatisfied club"...
I understand from reading other posts than previous versions of Windows mobile did offer this, aswell as being able to play different ringtones depending on chich caller group a call was originating from.
Click to expand...
Click to collapse
I have never seen, nor in previous versions, a real "group" as we were used with Nokias...
Some thirdy party programs do that anyway (and it's good enough such programs exists...).
Has there been any new information on SMS Distribution lists for the HTC Wizard phones?
Click to expand...
Click to collapse
Unfortunately, no... I have been looking around for a lot of time and finally I found a solution: I kept a Nokia 6230 in my bag, just for this kind of use...
I know, it's stupid... but much more less stupid than preventing me using this feature on a WM5 device !!!
Also, is there any way to actually just select "send new txt message" rather than go to messaging and browse to the correct account/ folder to achieve this?
Click to expand...
Click to collapse
Different approach: select the contact you need to send the SMS to and select "Send new SMS" from the options. You'll have the editor opening with the "To:" field already filled...
Hope this helps a little...
Ciao
Re: SMS Distribution Lists
jasvinder said:
Also, is there any way to actually just select "send new txt message" rather than go to messaging and browse to the correct account/ folder to achieve this?
Click to expand...
Click to collapse
Download the attached file, extract the included shortcut to your PPC, and run it - see if that works for you. If it does, you'll note that there's "to" and "body" fields that you can fill out if you want (e.g. a pre-composed message to your boss saying that you'll be on your lunch break)
For some more advanced SMS stuff, try VJPhoneTools:
http://www.vijay555.com/index.php?Releases:VJPhoneTools
Or one of the many commercial SMS apps
The download when unzipped only contains a shortcut which is not valid.
CAn we download it from your website?
it's supposed to only contain a shortcut
Code:
32#windows\tmail.exe -service "SMS" -to "" -body ""
If you don't have a "tmail.exe" in your device's "Windows" folder, then indeed it's probably invalid. Try searching for that file on your device, see if it's elsewhere. If it's not, or you can't find it, just use one of VJ's tools instead
Group sms
O2SMSPlus is out and about, it's for wm5 and does group sms.
bad situation: Sweetheart erroneously receives an SMS from you that was meant for Honey.
solution: Read and re-read your messages before sending them, and verify that you arre sending to the right person before pressing SEND, but we are only HUMAN, and we make mistakes.
software to the rescue: A SMS editor program that FILTERS your messages and decides wether your message is really meant for the person you are sending the message to.
how?: you assign keywords to contacts and it is saved in a database that the program accesses, for example, you blacklist the words "honey" and "baby" from messages you send to SWEETHEART, so the database will look like this:
Sweetheart-(Blacklist: honey, baby)
Honey-(Blacklist: sweetheart,baby)
Baby-(Blacklist: sweetheart,honey)
so when you type the message "Goodnight Honey" then SEND to SWEETHEART, the program evaluates that this message should not be sent to SWEETHEART and WARNS YOU and DOES NOT PROCEED to SEND the message, but if the message is "Goodnight Sweetheart" and to be sent to SWEETHEART, the program evaluate it as valid, then proceeds to SEND the MESSAGE to TMAIL.EXE (the REAL SMS program for final sending)
objective of this program: WORLD PEACE, actually just peaceful and harmonious living, hahaha. because wrong sending of message is eliminated.
other uses of this program?: you can blacklist the word "FAT" from being sent to your very fat friend, because he feels insulted by the word, or you can blacklist "PORK or PIG" to other people who might feel offended by this word.
Men and Women alike would like this program, although some would not admit it, they would really find a program like this very useful. hehehe.
So now the question: Can some programmer do this pls?
I can do programming for PC, but i havent done Pocket PC programming, i think all this program is an INTERFACE with the user by providing TEXT EDITOR, the evaulates the TEXT, then PASS the information to TMAIL.EXE.
CAN SOMEONE DO THIS?
thanks
reserved for flowchart....to help programmer if there are any takers...
Should be possible... I'll be happy to take a look when i have some time..
But ... i'm pretty curious what "inspired" this idea
nice app! and Mr_Gee, maybe simliar inspiration was used in your SMS Password app
NguyenHuu said:
nice app! and Mr_Gee, maybe simliar inspiration was used in your SMS Password app
Click to expand...
Click to collapse
haha lol
The strange thing is my girl also looked through my messages the day before
I wrote that application... so it was also a bit of personal gain
This is what i whipped up, please note the sending is not working yet...
give it a go and let me know what you think...
to begin click on menu>app. options>import contacts
rescan when the table is filled hit OK
Next manage blacklist
select the name from the dropdown list, add the blacklisted words
for testing i used pizza, banaan (its dutch)
thats also why there is already some text entered in the message are
(i forgot to remove it when i compiled the app )
Once the blacklist is updated hit save and close
in option screen click save
go to menu>add recipient and select the one you've just updated the blacklist for, next write a text, with or without those words and see what happens.
From the testing i did the logic seems to work...
please note, the blacklisted words need to be written without spaces and seperated by a comma
e.g. hello,mikey,banana
also Pizza is not the same as pizza...
let me know what you think..
On a sidenote, the application also needs a name
i was thinking along the lines of
- Stupid Me (what you usually think after sending the wrong person an sms)
- doh! (tribute to Homer )
- LifeSaver
- LoveSaver
- SMSLifeLine
but if you have a better idea please let me know
-= Attachment removed =-
please see next post
will test it, LIFESAVER could be a good name, but it what it does is save my ARSE really, hehehehe.
what i usually think after sending to the wrong person? "OMIGOSHHHHHHHHHHHHHHHH!!!" then comes the cold sweat, then the customary call from the recepient then 2 days of explaining, hehehe.
what inspired this idea? clearly... is to help my friend who has a lot of girlfriends...hehehe. he tried calling them all HONEY...didnt work
suggestion, converting all text in blacklist and in message to ALL CAPITAL LETTERS before evalutaion could eliminate the difference between Pianp and piano, also, replacing "," or "." or symbol characters with "<space>," "<space>." or "<space>symbol" could help blacklisted word next to symbols. thanks man.
paulpax said:
what inspired this idea? clearly... is to help my friend who has a lot of girlfriends...hehehe. he tried calling them all HONEY...didnt work
suggestion, converting all text in blacklist and in message to ALL CAPITAL LETTERS before evalutaion could eliminate the difference between Pianp and piano, also, replacing "," or "." or symbol characters with "<space>," "<space>." or "<space>symbol" could help blacklisted word next to symbols. thanks man.
Click to expand...
Click to collapse
Thought about it, but i think it would be easier just to write the 2 versions,
currently the application checks for the word, if it doesn't find it it checks both <word>, and <word>.
another problem is that I have the program check <space><word><space>
(thats why there cannot be any spaces in the blacklist)
the reason is that if the blacklisted word is Piano and the spaces aren't there it would flag Pianoman as a blacklisted word
youre right, is a beta program available that already sends? hehehe.
paulpax said:
youre right, is a beta program available that already sends? hehehe.
Click to expand...
Click to collapse
not yet, hopefully tomorrow
will be waiting thanks, by the way, what proggy are you using to make this software?
New version, should be working (e.g. sending stuff)
thanks, will be testing this as soon as i find a way to get this on my SD card or phone, im at my work pc and all my tools are left at home. eg. sync cable, bluetooth, card reader, wlan card.
Did you find the time to check it?
yup tested it,
first test, import contacts then manage blacklist - done
insert recipient - done
typed text without a blacklist word - done
send - wont send, send button just reacts but it doesnt do anything.
typed text with a blacklisted word - done
send -no reaction, no sending or warning, button just reacts but doesnt do anything.
thats the result of my test mr. gee. thanks.
edit edit edit,
now this is funny, i thought nothing was done when i press send, but BOTH messages with blacklisted word and not were sent to the FIRST person on the contacts list. hehehe. talk about preventing sending to the wrong person, no harm done, but funny.
the first person in my contacts list replied to me with both text that i sent that was supposed to be for an intended recipient. the texts were intended for a person 'L' but was received by the person 'A'.
great idea
sounds very interesting ... but is there a programm for filtering/screening incoming messages aswell?
e.g. you recieve a message from a special person and you don´t want that s.o. hears it but all the other recieved message should ring as usual ...
for incoming filtering, i think there is a program for that already.
check link: http://www.zedsoft.net/
but for outgoing filtering, this is the current idea so far.
thanks for testing Paul,
I'll take a look at the application, not sure whare the issue is..
This is really good idea.... Keep up the good work
I remember that I was out for work and than I sent SMS like: I was cool, thanks.... to my girlfriend (doh!)... And real trouble started
If you haven't tried Mobliza it lets you set automatic SMS responses and it can even contextually respond to texts. It is a free download from http://get.mobliza.com/
In the first mode you can use one of the preset responses to texts like "Hey Doug, I'm driving right now I'll get back to you in a few minutes" and it will fill in their name automatically. You can also add your own message (which it will save so you can pull it up later from a drop down menu) which can also have name, date, time auto fill-ins.
The second mode is a contextual response to texts so if someone emails you “Are you trying to be smart?” it will automatically respond with something like “Why would you ask me if I’m trying to be smart?” so you don't even need to be there to respond. It’s a pretty novel idea and it works well in practice but obviously it doesn't make plans or think for you
You can also respond to senders, in case you need to respond to them, right inside the app. Also, you can tap the conversation window to call the sender back.
There's a more complete writeup located here: http://www.fuzemobility.com/a-better-way-to-respond-to-texts-mobliza/
The developer is very responsive to feedback so feel free to provide it here, directly at the developers site or on the FuzeMobility thread. Enjoy.
Just wondering if some type of text spam utility would be something people would like.
Runs in background, will only accept SMS messages if sender is in the users contacts list or maybe sends it to a "Spam" folder for later review.
Good? Bad? Even possible? LOL
I've heard a few people saying they're tired of getting junk texts.
tia,
Roots
I beleive there may be apps in the market that have similar features as the ones you describe, but its been a while since Ive viewed them.
Yes, you are right, I should check-out the market for similar apps.
I see "willard" in your location...is that Willard, OH? I'm in Akron, OH
I could easily make one using some code from a current app of mine if you're still interested
Captainkrtek said:
I could easily make one using some code from a current app of mine if you're still interested
Click to expand...
Click to collapse
LOL. I'm designing apps for sale. So, you can still send your code and I'll cut you for, say, 10%, ok? ROFL LMAO
Oh well, on to the next best idea
Roots
Would be best implemented by segregating the messages, not simply deleting them.
Some messages received from sources not in my contact list are very much not SPAM. Things like bill reminders from provider, download links from GameLoft, new contacts who I ask to just text me their name, etc.
Yes, I still might give this a shot. And maybe not a folder, but toss the messages into a database that could be searchable by date, time etc.
Trying to see this..hmmm...hit "Text Spammer" app. Screen shows "Search by date", "Search by Date/Time", "Show All". Then from there, "Add to Contacts", "Delete", "Main Menu". yeah, that works.
It's hard for me to see, because I'm not a big "texter", but I know some people live and die by their text messages.
Hell, I'm an unemployed programmer, what do I have to lose but some more brain cells and some time! LOL
If anything, I'll learn something new and that's always a good thing.
Going to flowchart this one a bit first to iron-out the design....oh joy
I don't know if this is even possible, but maybe the app could look for key words in the message and determine if they're likely spam or not. I get a lot of spam texts that all look the same and have the some of the same words in them.
Just an idea!
I shall take that into consideration. I'm not even sure I can intercept the message yet.
My schedule has been like Mr. Anderson's (Neo) the past couple of days and I'm just waking up at 10 pm after sleeping like 15 hours. LOL
Guess it's time to start researching and coding.
Well, I'm neck-deep into the process now. This stuff can get confusing for sure. Service starts and stops as I have coded it....just trying to figure out how/where to call other "stuff" from inside the Service.
Well, the Service is user Startable and Stopable.
I have captured an incoming SMS, that is, I'm running 2 emulators with my service on 5556 and the other on 5554 (Note: 5554 is a "regular" phone; my service is NOT on that phone, only the receivers'). 5554 sends text to 5556 and I get my Toast message about it with body and number.
Now the fun starts. As it is, the message goes through default SMS system and puts up the notify and the message is in the 5556 inbox. Now I have to compare phone number to contacts list; if number exists, ok, if not, store message in database and delete from inbox.
Does this sound ok? I'm not 100% warm and fuzzy they still get the notify (that can be bypassed, I think). Then again, let them get the notify, go to inbox, and if it's not there, the user knows to check the spam database.
Or I guess I could Toast a message about "Message sent to Spam Database", then delete it from the inbox.
Or toss-up a dialog box "Message from 339-9831-0076, Cheap Viagra" and have the dialog do a "Keep" or "Delete". That way there is probably no need for a database, but requires user intervention. And what if they're not at phone and have 50 incoming texts...50 dialog boxes??? I don't think so! ROFL
Or just write a whole new SMS messaging system! yeah, right...
I dunno, what do you guys think?
Making some serious progress, but getting tired and I know it's time to step away from the keyboard! LOL
Now I'm at a decision point...someone suggested looking at incoming messages by some keywords. Not sure what they meant.
Someone pointed-out that they get messages for bills due, game forums etc. that they want, but are not in the Contacts list. I'm not sure what to do here.
Say you get your Verizon text on "Bill Available", but I don't match on it and it goes to the database. Is the user going to like that? Probably not. What if I offer to ADD it to the Contacts? Think they'll go for that?
There isn't too much else I can do besides except set it like e-mail spam filters do: it goes to spam folder and you have the option to make it non-spam.
Hopefully I can get some comments on this Like I said, I need a nice long break and after I'm rested-up, I have to code the database stuff. I've done DB work in 2 other programs, so it's not going to be too bad. And I have to mess with the UI...oh joy
Do the "Bill Available" messages always come from the same number? If so, maybe you could add them as a contact, or put those numbers in some sort of whitelist so they don't get filtered.
I was the one mentioning filtering messages by keywords. I don't really know if this is feasible or wise. For a while, I was getting 1-2 messages a day almost identical just from different numbers asking me to sign up for this or that to win money or something. I didn't really think much of them, so I just replied STOP and deleted them. I believe the numbers were 5 or 6 digit numbers.
You might have to just do some market research and see what people are dealing with and what they want and make something fit the general consensus. I'm sure not everyone is going to be happy no matter what you do
I really don't know, for example, if my Verizon Bill Message # is the same as someone else. To complete the app v1.0 phase, I'm just going to send non-contact messages to the database and give option to add to Contacts.
I think I'm going to leave the default notification icon too. For people at their phone, they'll get the notification; by the time they get to it, I'll have marked it as "read" and the icon will go away. It's almost a programming "gift"...once they get used to it, they will know that a notification that comes and goes was a spam and to check database whenever.
(crap, I'll have to copy TO database and delete FROM contacts...damn)...(double damn, I'll have to store the "spam" phone number in user database and check incoming calls as spam from Contacts AND database <might need 2 databases>) see what happens when I get rest?
Once they get their Contacts up-to-date, it should run fine.
================================================================
NEVERMIND, but I'm keeping this here for others. Always hated strings in C/C++ classes in college
Changed to if(phoneNbr.compareTo(result[0].....) worked fine. Damn string comparisons!!!
================================================================
Ok, I'm either tired or going nuts. Running 2 emulators. One runs my Service, one is vanilla. Sent text from vanilla phone to phone running my Service. Preform lookup on the "Service" phone contacts to see if incoming matches. Obviously it does, because I get a row back from Contacts. But, this statement is NOT working:
if(phoneNbr.toString().trim() == result[0].replaceAll("\\D", "").toString().trim())
Toast.makeText(getBaseContext(), "Numbers Match!" ,Toast.LENGTH_LONG).show();
Here is my logcat of logging the SAME information I'm checking in the above "if". Uh, I'm stumped LOL
Log.v(TAG, phoneNbr.toString().trim());
Log.v(TAG, result[0].replaceAll("\\D", "").toString().trim());
12-31 10:05:01.896: VERBOSE/com.smartappsdev.TextSpamService(953): 15555215556
12-31 10:05:01.906: VERBOSE/com.smartappsdev.TextSpamService(953): 15555215556