Related
Hello!
I have some difficulties to read SMS in my application : my application doesn't want to use the fonction SmsOpen in mode RECEIVE. Do you know the parameters to use in this function to read Sms?
Gremlins (and I'm not Gizmo!)
funny as Gizmo asked me exact the same question via private mail ...
This was my response:
----------------------------------------
I've never used the function to read SMS messages but here is my suggestion:
check the return code of SmsOpen, it is probably SMS_E_RECEIVEHANDLEALREADYOPEN. According the SDK help it means, that another app has already opened and is using the provider. In most cases, that might be Inbox, so shut down the Inbox task befor you are running your code.
If your error code is different, check the meaning in the help file, look for SmsOpen -> SMS specific error codes.
You don't have disable Inbox. The problem is the internal SMS handler - if you look in \Windows\Startup, you'll see a SMSHandler (I don't have a T-Mobile at the moment, so can't confirm the exact name). You need to get your application to start before it. In addition, you need to do a SmsSetMessageNotification() for both SMS_MSGTYPE_RAW as well as SMS_MSGTYPE_TEXT message types. Strangely, the code does not get the notification if you only set it for one of the two.
I have a T-Mobile MDA. There is a folder called "AutoStart" in the Windows folder, so I guess the file called "SMSReceiver.exe" is the handler you were talking about. I named my application "aaamyapplication" in order to start it up first after a soft reset (There is actually no "startup" registry-entry either for "SMSReceiver" nor for my application... in the end I kicked "SMSReceiver" out).
Unfortunately receiving an SMS through my app does not work (but strangely the system is still able to receive SMS in spite of deleting "SMSReceiver").
Do you have a good guess what I should do? I would be grateful for any advice
t_lex
Could some body be more specific on what Jvd said ??? i'm running an XDA2 and when i look in windows/startup i only get the followng :
CheckAutoRun
ChgDfLnk
IA_Caller_ID
MMReg
poutlook
stk
wifiIcon
Hi Folks,
This is my first post, although I've owned my XDAIIs for several weeks and I've ROM'd it to the iMATE 1.4 ROM. So I've had a good play.
I was looking at smsOrganizer (from Jeyo) which is badly supported (and it ain't free) and I wondered why I (we) couldn't write something to do the same thing, for free.
Is there a forum for this kind of activity, or could someone point me in the direction of some exmples of how to pass data between the PC and phone?
Best regards
AndrwB
Andrew, look into RAPI: eg here
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnarppc2k/html/ppc_teapppi.asp
Development and Hacking is the right place for this kind of query...what do you want the app to do?
V
Hi V,
Basically I want to control the SMS message transfer on my XDA from Outlook, just like smsOrganizer.
Re. your link, I think we've got those? but I generally write embedded C, non of this fancy C++ stuff :-((
AndrewB
Hi V,
I just tried this :
http://support.microsoft.com/default.aspx?scid=kb;en-us;307256
And I can now copy files to and from my device
Not bad for 1 hours playing, specially as I've fixed 2 work related bugs too )
Andrew B
Good stuff.
I'm just learning C++ actually, I never learnt C, coming from self-taught VB on the PC.
RAPI is the way to do most PC<>PDA communications, although right now I'm only just getting into sms stuff. It'd be easy enough (I think) to write an interface to create an SMS on the PC in text, transmit that to the PDA and then SMS it off, but the backend of it would require some implementation.
Keep us posted though!
V
99% of c programs should compile and work just fine on
c++ compilers and you can write c++ programs without using
oop in which case they are pretty much c programs
From what I've read it looks as if you need to write an app to sit on the device and another app on the main PC. The app on the phone just acts as an agent passing data between the sms services and the PC.
Anybody got any ideas?
AndrewB
Yipeeeee
I can now write a DLL that sits on the device and I can write a C++ application on my PC to communicate with it
Now to start reading some text messages from the device to the PC......
Does anybody know agood way to send and recieve SMS ?? I would also like to edit the text and pass it to an Edit Box.
I am not too sure about the available API's that will let me do this.
Please HELP :shock:
Hey , i would like to send and recieve SMS on my xda2. Also pass the recieved message into an Edit Control. Does anybody know a good way to do this ??
I know about the SMS API but i am unaware of others. Pleas Help !! thnkx
SMS Auto sending
Hi everybody,
Is there a way to auto send all sms in draft? Basically, every sms in draft folder needs to be send one by one by ticking send button.
OK,
I can now send a text message from my PC to a DLL on my phone using RAPI, then send a SMS using MAPI.
The trouble is I can't get the subject and body fields to display correctly on my XDAIIs. Also I can't get the Name to appear instead of the number.
I'll try to post the code later on the understanding that it is FREE and we pool our experiences/knowledge.
Here is the code for the DLL and the PC program. Just press one of the keys on the tol bar to send the message. The number and message are hard coded.
There are ABSOLUTELY NO guarentees with this code, use it at you own risk.
can it recieve SMS as well ?? Has any body thought about other API's to use for sending and recieving SMS's maybe ?
Well.... Not yet.
This is my first ever .net VC++ program !!!!
There are lots of code snipets around but no full source code.
This is a work in progress project hence it is in the "Development and Hacking" fourm.
If you'd like to add some functionality to it......
I am asking because there seems to be a problem when trying to recieve SMS with SMS api as the HANDLE is already attributed to the messaging application (inbox/draft/outbox).
I believe you are using RAPI ? However i do not understand this API that well could u specify a bit more ?
Thanks for your help.
Hi nutitija,
I'm only using the RAPI function to pass parameters from my PC to the XDA. The actual sending of messages is done using the MAPI in the XDA.
My biggest problem is getting the subject/body and from fields to display correctly in the different XDA mail views.
Hi everyone - been doing a search for a small app that records the outgoing call duration and is resettable but can't find one anywhere. Does anyone know of such an app that will run under WM5?
It's just to make life that bit easier as O2 expect you to call (& pay) their Customer Services to get an update on how many of your free minutes you've used at any point in the month. A bit Dark Ages if you ask me!!!
Any help much appreciated. :lol:
the answer seems to lie in the registry....
HKLM/Software/Microsoft/shell/cumulativecalltimers/line_0/
AllCurrent
AllCurrentNumCalls
AllPhoneLifeTime
AllPhoneLineTimeNumCalls
IncomingVoiceCurrent
IncomingVoiceCurrentNumCalls
IncomingVoicePhoneLifeTime
OutgoingDataCurrent
OutgoingDataCurrentNumCalls
Now all we need is some smart person to write us an app that shows us how many minutes of calls we've made (with an option to reset) and how many bytes of GPRS data we've bought....
OffBeatMammal said:
the answer seems to lie in the registry....
Now all we need is some smart person to write us an app that shows us how many minutes of calls we've made (with an option to reset) and how many bytes of GPRS data we've bought....
Click to expand...
Click to collapse
start -> settings -> system -> device information -> Call duration
Will give you outgoing and incoming call duration.
Have a look at MortScript if you want to make a "tool" to display/reset all the values from the registry.
I thing what you need is Phone Dashboard. Google it, download it and see what info it can give, its great
Regards
This (free) script displays the values from the registry and asks if you want to reset "current" counters.
I can't find the "OutgoingData" counters in my registry. So I can't help you with GPRS counters.
I haven't tested it much, but it seems to work on my K-jam, ROM version 2.16.9.1.
It does mess with the registry so I suggest making a backup first if you want to try it. You also need to install MortScript:
http://www.sto-helit.de/modules/edito/content.php?id=38
search for DKToday. It counts your outgoing minutes and sms and can be set to reset on a specific date. For me, my free minutes are calculated per the 11th of each month, so each 11th of the month my timer will be set to 0. The prog can be found in the forum, just do a search on it.
Show call and data timers (from registry)
a small mod from the great script above...
this one doesn't do a reset (as I didn't want to loose data) but does display the data counts from the registry as well.
don't know if it's specific to the i-mate K-JAM AKU2 ROM and only tested on my unit, but have fun!
Re: Show call and data timers (from registry)
OffBeatMammal said:
a small mod from the great script above...
this one doesn't do a reset (as I didn't want to loose data) but does display the data counts from the registry as well.
don't know if it's specific to the i-mate K-JAM AKU2 ROM and only tested on my unit, but have fun!
Click to expand...
Click to collapse
I want data counters too!
Are you using the same rom as me (I-Mate 2.16.9.1)? I still can't see the data counters in my registry. And I DO use gprs every day.
Have you installed something else that counts gprs trafffic and updates these registry values??
I would like an SMS counter too. I tried searching for it in the registry but couldnt find any.
Maybe I have to change to something else, like DKtoday or something, but i really do not like today plugins or programs that need to run continously.
very strange.
I've not installed any other third party apps to count GPRS data (was looking for a freebie!) or done anything out of the ordinary that I can remember since upgrading.
Do you have your machine set for ActiveSync / Direct Push? I use that as well as browsing the web. On the subject of trawling the web it appears that the CumulativeCallTimers is one of the reigstry keys which can be controlled by OEMs but as the phones are the same I'm surprised if there is any difference
ROM is 2.16.9.1 WWE (ExtROM 2.16.9.101)
What happens if you add the registry entries (BTW - what happens if you run my version of the script that looks up the entries - I've never used MortScript before so wasn't sure... I love Terry Pratchet as well!)
OffBeatMammal said:
very strange.
Do you have your machine set for ActiveSync / Direct Push?
[...]
(BTW - what happens if you run my version of the script that looks up the entries - I've never used MortScript before so wasn't sure... I love Terry Pratchet as well!)
Click to expand...
Click to collapse
I tried creating the registry keys, setting the values to 0. Browsed a bit via gprs but the values don't change...
Maybe its the push mail (that i don't use) that creates these values. Can you check if the values increase if you use internet explorer, or if it's only measuring the push-mail-data?
Your code looks good to me, I've just started using MortScript too, because i wanted an easy way to keep track of what i call "real" uptime, average uptime and total number of reboots.
Where does Terry Pratchet fit in?
the values increase with web browsing as well as the DirectPush mail (did a quick Google search and the numbers went up), only on GPRS not on WiFi (so although it says Data it's not getting confused)
The Terry Pratchet reference... Mort was a character (and the title) of one of his Discworld books. Sto-Helit is the name of a city on Discworld (where Mort, who becomes Deaths apprentice ends up as Duke). They are very funny books
I see. Thanks for testing it.
I dont have an exchange server that supports direct push, so i don't know how to get the counters "started" on my device.
Maybe I should read some of his books then - an ebook perhaps
I found a free pushmail exchange thing (mail2web.com) and set up an account, so now I have my push email set up on the phone too. But still no data counters. I've given up
how have you set this up? read the page, but it is not clear to me how it enables push email...
I didn't think the maIl2web solution was the new DirecgtPush email (as supported by the AKU2 ROM upgrade), more the 'old-school' SMS notification service.
The best (ie has a free 14 day trial and is good value) one I've found for small users without their own Exchange solution is 4SmartPhones (which is who I'm using - I push my normal mail to their hosted Exchange and it appears in my PC Outlook and on my phone by magic THey also have step-by-step instructions to make setup really easy
OffBeatMammal said:
The best (ie has a free 14 day trial and is good value) one I've found for small users without their own Exchange solution is 4SmartPhones (which is who I'm using - I push my normal mail to their hosted Exchange and it appears in my PC Outlook and on my phone by magic THey also have step-by-step instructions to make setup really easy
Click to expand...
Click to collapse
You are probably right, I will try 4smartphones as soon as their webpages start working...
"Firefox has detected that the server is redirecting the request for this address in a way that will never complete."
weird, they've been pretty well behaved in IE.
Try this link or just type in www-dot-4smartphones-dot-net and see if that behaves!
OffBeatMammal said:
weird, they've been pretty well behaved in IE.
Try this link or just type in www-dot-4smartphones-dot-net and see if that behaves!
Click to expand...
Click to collapse
Don't work. Not in IE, not in PIE, not in Firefox...
it's weird... it seems on the first visit to the link it writes a cookie and then redirects to the wrong place, second visit works (at least that's what seemed to happen when I just tried in PIE)
the raw link (to the homepage) should work fine as that's not doing any redirects that I can see
I found something called http://www.4smartphone.no and set up a test account there. Could this be the norwegianified version of "your" 4smartphone service?
They say its "Direct Push", and i can start/stop it using the "direct push" button in the comm manager. Does this mean it's "real" direct push?
This did not do anthing to my data counters though. still at 0...
So there must be something else that starts these counters...
Have you set up the gprs connection by using the imate "select your provider" thing, or have you set it up manually?
Hi All. I've started this Topic because i cant find any information anywhere about this!
I need to write an app for WM5 (PPC) and part of its function will be to send an email in the background to a certain address. I've read up on the new additions to WM5 and it tells me about the wonderful new messaging API (MAPI) thats availiable. Problem is, i have no clue where to find it, nevermind use it.
If anyone has a clue what the simplest way is to send an email with an attachment from a C# WM5 app, i'd be extreemely grateful!
Thanks
You should be able to do this by using the tmail.exe app with appropriate command lines. If you're doing it the hard way, investigate POOM.
Are you saying you don't know where to find the WM5 SDK?
V
MAPI
I'm doing it the hard way.
K. looked at POOM. Looks good but...
it says i have to start a MAPI session and gives code showing how to do it but i don't know what references to add to get the specific types and methods that the code requires. Any ideas?
Hello All.
I am currently in the process of developing an application to text mobiles via an activesync connected device.
So no subscriptions, no pay per text etc etc.. Simply uses your phone\tarrif to send messages..
I was considering releasing it on here, and wondered what (if any) would the interest be? Would anyone use it?
It's in the early dev stages at the moment... But I am willing to consider BETA testers.
Would you be willing?
Cheers
MikeSel^
yes i would love to help beta your application. let me know when its ready! cheers!
Sounds good, I had a program to do this with my ancient Nokia.
If you can make it provider independent I would love to test it
I would also love to help beta your application. let me know when its ready! Thanks
Would you be able to make it read text's also, so you could use it like an email client - would be easier for me to send texts whilst at work like this.
I would be willing to test.
I would use this daily as i send alot of text messages!
this would be great, my phone is hooked up to activesync the whole time at work and im constantly sending txts.
I can send texts from MS Outlook 2k7, no activesync or phone hookup needed- but I think you have to have Sprint as a carrier and a hotmail account.
Thanks for your replies..
I will add them all to my development plans, and post up once the beta is ready to test.
This will be completely independant from any carriers as it will simply use your phones carrier to send\receive messages!
If you have any feature requests feel free to reply with them now.
Thanks
MikeSel^ said:
If you have any feature requests feel free to reply with them now.
Click to expand...
Click to collapse
Ability to browse inbox/sent items if you can please - so no interaction with the phone is needed.
Also, mark messgaes read/unread and delete.
They are all i would probably use. Cheers for the effort man!
Read/Unread... Good idea!!
**Runs off to implement**
KEEP UM COMING!
I use my mobile from desktop by using http://www.jeyo.com/index.asp its not free but works well for me.
I'm very interested in this...
Will you run a client application on the device, or are you directly accessing the data? (RAPI maybe?)
Well the idea stems from Jeyo, I've used it for ages.. But I feel there are parts missing from it. An I like to be able to customize the software to how I want to use it.
I am currently using RAPI with a 'server\client' type thing going on. However I am not sure this will be how it ends up. Depends on how much I can squeese from RAPI.
Looking forward to this mate, should be a good little project for you.
I know what u mean with customizing software that ur using.
MikeSel^ said:
KEEP UM COMING!
Click to expand...
Click to collapse
OK, how about supporting command line so that i can send txt msgs using my '.net programs'.
Even better would be to expose a sort of API through a dll file.
I would love that.
Ok, Well my proof of concept exe may help you there.. The exe simply reads from a text file. First line phone number, next line message..
So I have an app that creates the text message copies it to the device and then starts the exe. Which sends the exe,,
So if you want to use this, make the text file in the root of the device and run the exe.
I will build in a similar function to the final version.
Thanks
Mike
cool im looking forward to this. it would be really usefull.
im up for this too....will it work with Vista?
mDesktop is wicked for txtin from tour desktop, if you have ur diamond connected the txts pop up on you monitor 2