Notification When The User Connects On The Internet - Java for Android App Development

I have a website that has MySQL as a database and I have this item on the database that can change the status to available or unavailable, what I want is to notify all the users that subscribe on that item when the status of the item change to available. I want the user of my application to receive a notification when he/she connect on the internet. Thank you and have a good day!

clonedaccnt said:
I have a website that has MySQL as a database and I have this item on the database that can change the status to available or unavailable, what I want is to notify all the users that subscribe on that item when the status of the item change to available. I want the user of my application to receive a notification when he/she connect on the internet. Thank you and have a good day!
Click to expand...
Click to collapse
Take a look at the Google Cloud Messaging service on Google's developer website (including the samples). Easiest way to do this would probably be when you update that item to available, run an SQL query that searches for users subscribed to that item and send them a GCM notification via multicast message.
Sent from my HTC One using Tapatalk

Thanks Jonny!

Related

how can we find out which email address is mapped to SMS?

I'm told that every device supporting SMS has an email address that can receive txt messages. Something like : [email protected]
I'm on Tmobile, and would like to know that email. Could a guru lead me in the right direction?
Re: how can we find out which email address is mapped to SMS
mdaexecfan said:
I'm told that every device supporting SMS has an email address that can receive txt messages. Something like : [email protected]
I'm on Tmobile, and would like to know that email. Could a guru lead me in the right direction?
Click to expand...
Click to collapse
I myself used T-mobile Mobile email. Basically this is a service that when people email your address you receive it as a text message. From my experience of this service you are charged 10p for every text received and this is not part of any allowances you may have. It usually only send you one sms of the first few words from the email.
I assume this is what you mean, see the link below for official details of the service...
http://www.t-mobile.co.uk/Dispatcher?menuid=phones_tfe_me
In my opinion its to be used wisely and the address given to only inportant people who cant text you via a mobile phone.
Thank you for your reply. Sadly this does not seem to work very well. I had it working yesterday but today no matter how many emails I sent my phone never receives the SMS.
This is really disapointing as I'm using it to monitor the status of servers.
hi.
not familiar with t-mobile but I guess all operators are somewhat similar.
I use vodafone and the email address is connected to a standard mailbox which is reachable through a web browser. in order for the incomming mails to generate a sms I had to activate it in the same portal, I was also able to create rules on which mail that should be forwarded as an sms.
hope this helped.
br, charlie
Try something like this:
[email protected]
k
nope, no luck, it's very strange, that email to sms feature was working yesterday night, and today nothing.
Get the web'n'walk add-on, an account with mail2web and the AKU2 rom to enable push email. Then just email your mail2web address instead of your phone number, if a server has a problem then remotely administer it from your MDA PRO using terminal services.
Thanks for all the responses so far. I thought I'd give you a small update. Yesterday I was testing this further. My phone was receiving SMSes from other networks immediately, but none of the [email protected] made it through.
Then this morning, I received 28 text messages in one go. All at the same time.
Obviously the routing they use for the [email protected] mobile email option is cheap and unreliable.
So I've bought a few credits of an email2sms gateway, will let you know if that performs better.
Shuflie, regarding the AKU2 account, I got push email from 4smartphone - but I was under the impression that required the GPRS/3G connection to be always on on the phone? Please do correct me if I'm wrong.
Right here's the follow up as promised.
I ended up signing for sms2email. I didn't know what to expect but it turns out to be very reliable. They deliver sms super super fast, which is what I need for server monitoring.
Seems convenient, and you can use distribution lists for SMSs, meaning you don't have to create dozen of account in your monitoring software just for the purpose of ringing everyone. Apparently you can also SMS BT lines, which in turn will read the message text-to-speech if the recipient doesn't have an SMS-compatible handset.

Release rk-SMS Switch: Possible ‘Push LIKE mail’[Updated 27 May 2009]

Here is my latest application SMS Switch which can trigger a command line based on the SMS received.
Built with the idea of ‘Push LIKE mail’ where the device gets the SMS notification on ‘New mail’ from your email service. rk-SMS Switch intercepts the SMS and based on the SMS sender and/or message text executes the command line (such as \Windows\tmail.exe) to synchronize the emails.
Required:
Your device is able to synchronize the emails using pocket outlook.
Your device receives the SMS notification on new mail message.
Uses:
Push LIKE mail
Not wasting bandwidth for keep checking the server at regular intervals.
Saving the battery since you do not need always on gprs.
If you have multiple email accounts and want to make use of wifi network etc, then you might want to check up my other application rk-OSR which has support for command line execution.
This is just an idea and initial version. Let me know if you guys like it.
(Updated latest working version 1.0.4)
Version 1.0.4
Supports square screens(320 X 320)
Version 1.0.3
Now the triggerring SMS are automatically removed from your inbox! All normal SMS will only appear in the SMS inbox.
Now the application can be activated by the menu short cuts etc. No need to go to today screen. New option added to put it to tray or not.
Not tested much as I do not have SMS plans to play with each SMS i send to test get charged
Version 1.0.2 Hotfix
Bug fix: Please do not use version 1.0.1 which has a issue to sync up outlook and unusable.
Version 1.0.1 Updates
Separate tabs added for command line OR Outlook use.
If using the command line to invoke rk-OSR then timeout option added so that if multiple sms received only one the command line is executed(based on the timeout)
If want to sync up only one account then use the 'Outlook' option and only configure the 'Outlook' tab.
If using outlook show/hide outlook option added.
Since I am using Windows Live Push mail I am not using this application so you will be the tester!
If you like the application please show your support by donation on Paypal
Download from here
thank again great work
This is a great concept. I don't need it, as I don't push email to my phone, but I might now with this great program.
great program! if only i had data plan, so sad
How does this work?
I tried to run it, and nothing happened. I keep clicking the icon it placed in my start menu, and I can't figure out how to configure anything.
This sounds like a great solution, if it works that is...
It needs some documentation!
EDIT: found it on the today screen. Gosh, I wouldn't have known to look there!
Now, my question is how to manage the incoming sms it creates... If I receive a bunch of emails, I now have a bunch of SMS messages cluttering up my inbox. Can anyone think of a good way to hide the incoming SMS and silently delete it?
Dishe said:
Now, my question is how to manage the incoming sms it creates... If I receive a bunch of emails, I now have a bunch of SMS messages cluttering up my inbox. Can anyone think of a good way to hide the incoming SMS and silently delete it?
Click to expand...
Click to collapse
Yes, I know the SMS needs to be cleared, Hopefully in the next version.
thank youuuuuuuuuuu i like it
tytnguy said:
Yes, I know the SMS needs to be cleared, Hopefully in the next version.
Click to expand...
Click to collapse
Yeah, cuz that extra step sort of kills the whole convenience of it...
what I *used* to do when I wanted to save battery power, is forward my gmail to my sms address, and when I saw the first 160 chars with my sms, I'd delete it, go over to outlook and fetch new mail.
With this, at least I don't have to actually click fetch new mail, but it still requires manual deletion, so its not a complete solution yet. :/
looking forward to the next version then...
By the way, how do u get sms notifications for your email? Do you just forward a copy of your email to your sms address? Because if doing it that way, how do u tell the difference between what is coming from your email and what is just something someone sent to your sms directly?
if someone sends you an sms, most likely they will send it through a phone number. if forwarded from an email, the sender will not be a phone number, most likely an email address or some other sender info that is separate from a standard phone number like you would get from a normal sms.
I think that's how it works.
I currently do the same style as you. have gmail forward me an sms of the email message. if it looks important i go to outlook and download the entire message.
Dishe said:
... how do u get sms notifications for your email? Do you just forward a copy of your email to your sms address?
Click to expand...
Click to collapse
Well, For me I use windows live so actually I do not need it . But I thought it might be a battery saver so developed it.
Dishe said:
...how do u tell the difference between what is coming from your email and what is just something someone sent to your sms directly?
Click to expand...
Click to collapse
The field 'From' contains... Should have a partial email address... May be @Gmail.com(I am not sure about how you get emails forwarded, check the text message from address and set it)
You could also use 'Message' Contains option to check only if there is a predefined text in the message.
To use either of the two options use 'OR' option.
tytnguy said:
The field 'From' contains... Should have a partial email address... May be @Gmail.com(I am not sure about how you get emails forwarded, check the text message from address and set it)
You could also use 'Message' Contains option to check only if there is a predefined text in the message.
To use either of the two options use 'OR' option.
Click to expand...
Click to collapse
ah, see gmail is good enough to leave the message intact exactly as it is recieved, original sender and all. So, as I said, there's no way to tell it was forwarded from gmail at all.
Maybe what I should do then is forward to hotmail or something that DOESNT leave everything intact, and from THERE forward to my inbox... a bit backwards...
yes i agree. gmail is good in that they are generous enough to convert the email address to only showing the Sender's name. normally this is appreciated, but in this case, it makes things a bit more complicated as now like Dishe said, it is impossible to distinguish between a normal sms and one being forwarded by gmail.
--
EDIT: I may have a work around. When GMAIL forwards an email to your phone with an sms notification, the sms contains the text "FRM:", "SUBJ:", "MSG:" within the body of the SMS as part of the actual text message.
The program lets you set a filter for the FROM field and/or the MESSAGE field. So using the program, you can put the filter to either one of the three "FRM:", "SUBJ:", "MSG:" instead of the default "@". This would eliminate the need to know that it was forwarded from GMail at all.
This would solve the problem because regular SMS when sent does not show the text "FRM:", "SUBJ:", "MSG:" in the body of the sms. in theory it looks like works, i havent tested it. i installed the program, can you please let me know what is the command line argument to have it send/receive?
Right now i have the command line sent to windows/tmail.exe and it just opens the email prog. I guess i need the argument too to have it actually send/receive.
NguyenHuu said:
...I may have a work around. When GMAIL forwards an email to your phone with an sms notification, the sms contains the text "FRM:", "SUBJ:", "MSG:" within the body of the SMS as part of the actual text message.
The program lets you set a filter for the FROM field and/or the MESSAGE field. So using the program, you can put the filter to either one of the three "FRM:", "SUBJ:", "MSG:" instead of the default "@". This would eliminate the need to know that it was forwarded from GMail at all.
Click to expand...
Click to collapse
Nice suggestion NguyenHuu!. It should work as you suggested
NguyenHuu said:
... can you please let me know what is the command line argument to have it send/receive?
Right now i have the command line sent to windows/tmail.exe and it just opens the email prog. I guess i need the argument too to have it actually send/receive.
Click to expand...
Click to collapse
Try the cammand line as follows
Commanline ----> \Windows\tmail.exe
Arguments------> -service "Gmail Account Name" -sync
Where "Gmail Account Name" should be the name of your account as typed on the pocket outlook and double quotes are required.
it worked! i tested it three times.
1. sent regular sms via a IM application on PC (AIM).
2. sent SMS via another cell phone.
3. had email forwarded through gmail to phone
i used FRM: for FROM contains, and SUBJ: for Message contains. I chose teh "OR" option.
worked as planned. the first two regular sms was sent without activating the inbox syncing. the third time when gmail forwarded the email to my phone sms, since it contained the field: FRM:", "SUBJ:", "MSG:" it automtically sync my inbox.
one thing though, it automatically syncs the inbox which is great but it does so in the background so you still need to go to the inbox then go to the message to read it. is it possible to make it so after it syncs, it opens the actual inbox so you can see your list of unread emails? maybe through adding to the argument?
NguyenHuu said:
it worked! i tested it three times.
1. sent regular sms via a IM application on PC (AIM).
2. sent SMS via another cell phone.
3. had email forwarded through gmail to phone
i used FRM: for FROM contains, and SUBJ: for Message contains. I chose teh "OR" option.
worked as planned. the first two regular sms was sent without activating the inbox syncing. the third time when gmail forwarded the email to my phone sms, since it contained the field: FRM:", "SUBJ:", "MSG:" it automtically sync my inbox.
one thing though, it automatically syncs the inbox which is great but it does so in the background so you still need to go to the inbox then go to the message to read it. is it possible to make it so after it syncs, it opens the actual inbox so you can see your list of unread emails? maybe through adding to the argument?
Click to expand...
Click to collapse
The problem that I mentioned before was that ALL EMAIL sent to [email protected] will have FRM:, SUBJ:, MSG in the body, whether it comes from gmail or not.
Sometimes, if I'm at my desk and want to remember something, I'll send an email to my phone's sms address. Also, I have freinds with data plans and no sms plans who email to sms ([email protected]) all the time.
Your solution could not differentiate between those emails sent purposely to an sms address versus ones meant to trigger syncing.
Right now, its not a big problem yet since the app doesnt delete the trigger sms. But at the same time, I hate having to clear two independant inboxes of new messages now (both email and the sms trigger need clearing), so I need the function to remove the trigger after it syncs eventually.
If the email wasnt supposed to be a trigger, you can understand why this may prove problematic.
hmmm...
NguyenHuu said:
great program! if only i had data plan, so sad
Click to expand...
Click to collapse
I Know! Outrageous prices, to put it mildly.
xd1936 said:
I Know! Outrageous prices, to put it mildly.
Click to expand...
Click to collapse
heh, mine's free. Not to brag or anything, but Sprint over here in the states has killer 3G data plans. I'm just looking to maximize my meager battery life.
EDIT: By the way, TyTnGuy, I went to set up a hotmail/windows live account so that I could try forwarding email THERE and then have THAT forward to my sms with the @hotmail account in the header, but guess what? Live/Hotmail doesn't support forwarding AT ALL!!
So, it looks to me like you couldn't possibly have gotten this to work yourself... What are you not telling us?
he said he doesnt need the program since he uses live mail which should have its own pushlike mail in wm. he creating the program for people who may need it, and specifically cited gmail in his example. i think haha.
i am still trying to figure out if there is a commandline argument that opens up the inbox after it syncs. that's a really good thing to have i think. right after you get the notifications, the inbox opens and you can see all your unread email.
i am about to set up a dataplan, not just for this but for other business, and so that is why, despite my earlier comment about not having a dataplan, i am so interested in it now haha. better then polling every X-minutes indeed.
sorry to bring this back up. anyone happen to know the command line argument to open up inbox?
this is the current argument that makes it sync when you get a sms notification: service "Gmail Account Name" -sync
that works fine, but it does so in the background. I was hoping there is more to the argument where after it syncs it opens the inbox for you. or it open inbox then sync is fine too
NguyenHuu said:
sorry to bring this back up. anyone happen to know the command line argument to open up inbox?
this is the current argument that makes it sync when you get a sms notification: service "Gmail Account Name" -sync
that works fine, but it does so in the background. I was hoping there is more to the argument where after it syncs it opens the inbox for you. or it open inbox then sync is fine too
Click to expand...
Click to collapse
I am working on a next version I will do something to support the above request.

Possible Free SMS App?

To All Developers and Programers,
I have looked at many SMS programs but have not found one that can send SMS messages completely free.
When I want to send a SMS for free I, since I live in Canada I goto the Rogers website and input the phone number and my message and it get sent for free. Obviously you need a data plan for this (Got the $30.00/6gb Plan).
My question is...
Is it possible to make an app that lets you do all this by channeling it through the Rogers website? By doing this SMS will be free?
I am not sure If i am explaining it correctly but just an idea.
Thanks
It is certainly possible. The sms will be free (except for data charges of course).
I guess you need to login to the Rogers website for this service? Is there a web form where you can enter your credentials + destination + message to send an sms, like most voip providers? (I'd guess not, since it's free).
Anyway, you can always try to find out the login procedure and write a php script that emulates that, then write a program for the ppc that sends your data to that php script...
You can just send your sms as an email and it would be free. the email would be their [email protected]. problem is that you need to know their provider and the providers sms domain.
Hagow said:
To All Developers and Programers,
I have looked at many SMS programs but have not found one that can send SMS messages completely free.
When I want to send a SMS for free I, since I live in Canada I goto the Rogers website and input the phone number and my message and it get sent for free. Obviously you need a data plan for this (Got the $30.00/6gb Plan).
My question is...
Is it possible to make an app that lets you do all this by channeling it through the Rogers website? By doing this SMS will be free?
I am not sure If i am explaining it correctly but just an idea.
Thanks
Click to expand...
Click to collapse
You can send free SMS by using AOL Instant Messenger for mobile or you could also go to www.textem.net to send free SMS
AIM for Windows Mobile Beta1/Beta2
Download it here
Splal said:
You can just send your sms as an email and it would be free. the email would be their [email protected]. problem is that you need to know their provider and the providers sms domain.
Click to expand...
Click to collapse
here is a link to the provider addresses:http://www.notepage.net/smtp.htm

[Req] Ebay Monitor Today Plugin

Hi All,
Wondering if
1) Such a thing exists
or
2) If there are any devs who would be willing to have a crack at what i reckon would be quite a handy plugin.
Basically it would query "my ebay" every x minutes and poll the status of your watched items, items for sale and items being bid on etc
And have it run something like the way pocketbreeze has sections that you can expand/collapse for each section.
eg.
+Watched Items
- Item Name Bids Price Time Left
- Item 1 2 £57 2d 5h
+Items Im Bidding on
-
etc etc....
I have searched the forum and google but cant see anything that exists.
THanks
Funy
Is there any way mortscript could log into ebay and get this info? Then the data could be put on today via rltoday and registry values.
i would have thought so, not sure how and if you can interface ebay. Sounds possible but i lack the knowlete of mortscript to know.
Willing to do some research into this if there is a dev willing to give it a go.
Found Here: http://www.blackberrytoday.com/articles/2008/6/2008-6-17-Tip-Smartphone-Monitor.html
Now when you're waiting to find out if you've bought an item on auction at eBay, you can be out and about with your phone and receive text updates on the sale. E-mail updates have long existed, but the text option may be preferable if you don't have an Internet-enabled phone, you're already paying for flat-rate texting, or you just find it simpler to read a text than an e-mail on your device.
When you click on the link to receive notices via SMS (text message), you'll be asked to identify your carrier and then put in your phone number: There is a 25-cent fee for up to 10 notices per item. You can set whether you want to receive messages every time there is an alert or only between certain hours.
Once you sign up, eBay will send a text message asking you to reply to confirm your registration. A few more messages will arrive and then you can monitor your bids on the go. When you want to stop receiving the messages, you can simply text "STOP" or go to the Personal Information page within My Account on eBay. Under "Email and Contact Information" unsubscribe from the "Mobile phone number for SMS alerts" option.
Not 100% what you were looking for but not too sure if you can interface with Ebay's API's the way you want to.

[APP] [2009-02-13] DarkGPS : Send GPS coordinates by mail...

Hello,
Here is my first application made for my HTC a while ago...I decided to publish this after a friend asks me if this kind of application exists for WinMo...
Developed in c# (.net CF 3.5) it allows to send GPS Coordinates by mail, like the "Here I am" application from the iPhone.
For accessing the GPS on Windows Mobile, I used the SDK from Microsoft (Samples.GPS)... Thanx Kevin for testing and comparison with its iPhone ^^
It should work on any Windows Mobile having a GPS. But I never test this app on other devices!! (mine is HTC Diamond Touch)
CAB File : Download
Source Code available on demand!
For AutoUpdate of this application just go to Config then Check the box "AutoUpdate" and restart the application (not sure of the "first run" but should be "Off" by default).
The "Send Account" is the account to use for sending mails, the "Mail Account" is the account to use for getting contacts (I'm using "Send by Hotmail" and "Contacts are ActiveSync"...)
Do not hesitate if you have any bugs, problems, ideas, ...... I'm really "open" to critics
Regards,
DarkAngel
!!Warning : this is beta release!!
Release 0.3 : add of English language
Release 0.6 : added AutoUpdate support and small things (More info on my blog : HERE and HERE)
Any testers for a beta version ?
Oh yeah
Can you give me a package in french please
i prefer
The application should be in french if your ROM is french...
I tested using a winmo simulator for english and my HTC for french (using Aztor ROM in FR)
Are you using an english language ROM ?
I may add in the next release an option to change the language (have to test this )
Tested
Here is my feedback even when I was not able yet to get my GPS coordinates
on a Touch HD, but I am in a hotelroom right now keeping the phone before the window.
- User should be able to modify the mail before it is send out.
- I don't like the contacts list that pops up in big fonts, I think it is smarter
when the mail is generated in the background and than opened in the default mail application, most of the time outlook.
Than a user can select the mail adress for the TO field like he does normally when sending emails and he is able to edit the mail also.
It should not be difficult for you to generate the mail and than show the mail in the mail application...
Nice to have : Expanding the application to be able to send an email or SMS.
Tomorrow I will try more...for now it looks great !
Brownbear
DarkAngelFR said:
Hello,
Here is my first application made for my HTC a while ago...I decided to publish this after a friend asks me if this kind of application exists for WinMo...
Developed in c# (.net CF 3.5) it allows to send GPS Coordinates by mail, like the "Here I am" application from the iPhone.
For accessing the GPS on Windows Mobile, I used the SDK from Microsoft (Samples.GPS)... Thanx Kevin for testing and comparison with its iPhone ^^
It should work on any Windows Mobile having a GPS. But I never test this app on other devices!! (mine is HTC Diamond Touch)
CAB File : Download
Source Code available on demand!
For AutoUpdate of this application just go to Config then Check the box "AutoUpdate" and restart the application (not sure of the "first run" but should be "Off" by default).
The "Send Account" is the account to use for sending mails, the "Mail Account" is the account to use for getting contacts (I'm using "Send by Hotmail" and "Contacts are ActiveSync"...)
Do not hesitate if you have any bugs, problems, ideas, ...... I'm really "open" to critics
Regards,
DarkAngel
!!Warning : this is beta release!!
Release 0.3 : add of English language
Release 0.6 : added AutoUpdate support and small things (More info on my blog : HERE and HERE)
Click to expand...
Click to collapse
Feedback #2
Yez, i got the coordinates and succesfully send the email to my gmail adress and opened it in gmail.
Clicked on the links and you see where I am great.
Application works, but need some modification to give it a boost amongst users :
- Generate the mail in background and than open outlook so that user can edit mail and select recipients.
- Add nice GUI
- Add option to select whether to send by SMS or Mail.
That's it.
Keep us informed about updates.
Brownbear
brownbear said:
Here is my feedback even when I was not able yet to get my GPS coordinates
on a Touch HD, but I am in a hotelroom right now keeping the phone before the window.
- User should be able to modify the mail before it is send out.
- I don't like the contacts list that pops up in big fonts, I think it is smarter
when the mail is generated in the background and than opened in the default mail application, most of the time outlook.
Than a user can select the mail adress for the TO field like he does normally when sending emails and he is able to edit the mail also.
It should not be difficult for you to generate the mail and than show the mail in the mail application...
Nice to have : Expanding the application to be able to send an email or SMS.
Tomorrow I will try more...for now it looks great !
Brownbear
Click to expand...
Click to collapse
brownbear said:
Yez, i got the coordinates and succesfully send the email to my gmail adress and opened it in gmail.
Clicked on the links and you see where I am great.
Application works, but need some modification to give it a boost amongst users :
- Generate the mail in background and than open outlook so that user can edit mail and select recipients.
- Add nice GUI
- Add option to select whether to send by SMS or Mail.
That's it.
Keep us informed about updates.
Brownbear
Click to expand...
Click to collapse
Hello there
As a developer I make things in 2 steps : first technical demo, then a nice GUI (have a look at the step from v0 to v0.4 of my other app DarkRuler).
I'll add an option for mails : "direct send" (able to edit default message) or "open in outlook". No problem and nice idea
"Add a nice GUI" : any proposition is welcomed, I'll try to improve this a little for other resolution than mine (HTC Touch Diam). I've seen things on the web that could be fun (having city from gps coordinates) but well, this would need internet connection so not sure.
SMS/Mail choice : I was thinking of it already!
I'll publish the application on CodePlex for next release. Should be in 2 weeks (more or less) because many works here...
Thanks for the feedback, appreciate it and was waiting for this kind of feedback to continue development
Looks good - I'll keep an eye on this.
Seems like a useful application, I hope the development goes well.
Really nice app. Works like a charm in my Blackstone. I'll be looking forward that new enhancements that are in the queue
Would you like a spanish translation? I can translate the program, or at least the default email text, if you feel like it.
hey TS, can i know how u get the latitude and longitude? mind to share the code? i'm doing the application that return me back the latitude and longitude... quite blur as this is my 1st time using c# .net and with mobile environment...
really looking forward to hear from u soon..
u can email me at [email protected]
and MMS ?
how about to add MMS as well, so you can send picture of place you like with GPS coordinats together?

Categories

Resources