Wake up an application with SMS - Windows Mobile Software Development

Is there a function which allows to wake up the application when a SMS is arrived?
Thank you for your help.
Godzilla

I suppose if you can work out the schema of the databases, then you could set a notify on the db. I've tried using the MAPI notify functions (these dont seem to be documented by MS), but they don't work out of process, so, it seems you have to use the hard way.

The ugly way is to replace the SMSHandler function - it starts up from \Windows\Startup. You will have to implement all it's functionality - which means that you have accept SMS messages and then put them into the SMS Inbox.

martinlong1978 said:
I suppose if you can work out the schema of the databases, then you could set a notify on the db.
Click to expand...
Click to collapse
If you want to monitor the database for a received SMS, you need to check the pmailFolders database first. The record with property 0x3001001f being the string "SMS".
Then look at property 0x80060041 (A BLOB), this consists of a bunch of DWORD values, the second DWORD is the CEOID of the Inbox of the SMS.
Then, still in the pmailFolders database, look at the record, whos CEOID you have just determined, and it has a property 0x8003001f. That is the name of the database to which incoming SMS's will go. it wil be called something like fldr30025ea.
You can then set up a notiifcation on that database.
You should probably have a notify on pmailFolders as well, for the situation where they have never received a SMS, and the 0x8003001f property has no value yet.
..Chuck..

Anonymous said:
Is there a function which allows to wake up the application when a SMS is arrived?
Thank you for your help.
Godzilla
Click to expand...
Click to collapse
I am a bit confused by the replies... is it really that hard... check messageinterceptor
or may be i am missing something

Related

Form size

Hi, i have a simple chat style sms application i am using on my T-Mobile SDA and i would like to port it to T-Mobile DASH. What should be the Form size so that it would fit the DASH screen?
The screen on a Dash is 320x240 pixels large, and after the browser steals viewing space the user gets about 300x220ish or so in usable space. If you need to do specific testing simply PM me and I would be more than willing to help out and give screen shots on how things look. If you wish to work independently you might want to look into the Microsoft emulators which have been made by Microsoft so people can emulate smart phone devices for testing programs and sites for this exact purpose.
thanks for the quick reply I will try to create blank form and PM you ASAP. I have just bought my excalibur online and havent received it yet so i cant test it on an actual unit.
Is this app a 'replacement' for the messaging account in outlook? Or will the messages continue to go to the existing inbox. Also, is MMS supported? I have waited so long for an app as good as the Palm Messaging beta, created specifically for a smartphone.
Orientation Aware Control
Hey oldsap,
I'm a mobile developer by trade and if you're looking for a flexible way to handle resolutions etc to make you're app a little more portable, take a look at the Orientation Aware Control that microsoft's patterns and practices group created:
http://msdn2.microsoft.com/en-us/library/aa480471.aspx
It can be downloaded from codeplex. Basically, you create a single form and it uses a resource file to store settings for various resolutions (control layout etc). No more need to make multiple copies of a form for each resolution you want to support. Good luck, hope that helps!
- Brian
curtislanham said:
Is this app a 'replacement' for the messaging account in outlook? Or will the messages continue to go to the existing inbox. Also, is MMS supported? I have waited so long for an app as good as the Palm Messaging beta, created specifically for a smartphone.
Click to expand...
Click to collapse
for the time being, ive created this to intercept all incoming sms so that they wont go to the inbox. But i can re-code it so that when a new sms arrives:
1. sms wont go to the existing inbox
2. sms will go to both the application AND inbox
it's not a perfect chat style application but it works well for me.
im still waiting for my DASH to arrive (ordered it from ebay) When i have ported it to DASH, ill post it here
windsorguy13 said:
Hey oldsap,
I'm a mobile developer by trade and if you're looking for a flexible way to handle resolutions etc to make you're app a little more portable, take a look at the Orientation Aware Control that microsoft's patterns and practices group created:
http://msdn2.microsoft.com/en-us/library/aa480471.aspx
It can be downloaded from codeplex. Basically, you create a single form and it uses a resource file to store settings for various resolutions (control layout etc). No more need to make multiple copies of a form for each resolution you want to support. Good luck, hope that helps!
- Brian
Click to expand...
Click to collapse
Thanks for the tip sir. I'll read about this. Im just a newbie programmer and can only create very very simple applications
I would have to say that a threaded SMS app is not simple!
curtislanham said:
I would have to say that a threaded SMS app is not simple!
Click to expand...
Click to collapse
i refer to my application as "simple" compared to PALM's threaded sms because it only uses Textbox instead of XML. It doesnt use colored fonts to distinguish sent and received sms. But it does have other features like save chat window, group sending, sms sent counter, sms filtering, etc

Sending SMS and keeping it in the "Sent Items"

Hello,
I would like to ask if someone knows how to send SMS (prefare in Managed Code, C#) but I want it to keep a copy in the "Sent Items". Currently I did not find a way to do that.
Any help would be appreciated.
Thanks a lot for your efforts.
it's in your sms settings
Thanks for the reply,
In my SMS Settings?
Could you clarify please. I am using C# to send SMS by using SmsMessage and then send. There is no settings there that I have seen (in code) to keep a copy in sent items.
Thank you.
There is no settings there that I have seen (in code) to keep a copy in sent items.
Click to expand...
Click to collapse
Correct. There isn't. As mentioned above it is in the SMS settings of Outlook on your device.
From the SMS inbox :- Menu -> Tools -> Options then click the 'Message' tab. The tickbox on "Keep copies of sent items in sent folder" defines whether or not the message is saved.
The only way to change this in C# is to change the registry key:
Code:
HKEY_CURRENT_USER\Software\Microsoft\Inbox\Settings\SaveSent
This is a DWORD value: 0 means No, 1 means Yes
In your code read the value and store it.
If it is not 1 set it to 1 and then send your message. Restore it back to what it was before. "Please keep this washroom tidy!"
Read/Write the value using the Registry or RegistryKey .NET CF objects.
sandmik said:
Hello,
I would like to ask if someone knows how to send SMS (prefare in Managed Code, C#) but I want it to keep a copy in the "Sent Items". Currently I did not find a way to do that.
Any help would be appreciated.
Thanks a lot for your efforts.
Click to expand...
Click to collapse
What i think is that sandmik is asking the way to save sent messages if we send a message using our own code not by poutlook... is it right?
in that case i am also waiting for a reply
Thank you stephj, but that option does not work when you are sending via code.
mohitsapru got my point correctly. I want to send an SMS from my code and that sms is saved in the Sent Items.
Thanks.
sandmik said:
Thank you stephj, but that option does not work when you are sending via code.
mohitsapru got my point correctly. I want to send an SMS from my code and that sms is saved in the Sent Items.
Thanks.
Click to expand...
Click to collapse
Hi,
i'm using this wrapper for my Slide2Send application. it's made by daddy2k
C# pinvoke:
[DllImport("SMSStore.dll")]
private static extern bool createSMSinSentStore (string toNumber, string message, string displayName);
you have to first send an SMS using C# and then call createSMSinSentStore to save the message to the sent items folder.
hope this helps
Thank you, I will test that, I Believe this is one step closer to the end result
Thank you again
What exactly is displayName? in case of an SMS?
Also the C++ code needs some polishing. Some cases certain cleaning functions are not being called. Like MapiUninitialize at the end of the function call.
sandmik said:
What exactly is displayName? in case of an SMS?
Click to expand...
Click to collapse
the name of the contact or number where the sms is being sent to
sandmik said:
Also the C++ code needs some polishing. Some cases certain cleaning functions are not being called. Like MapiUninitialize at the end of the function call.
Click to expand...
Click to collapse
If you have suggestions please also let user Daddy2k know. Thanks for pointing this out.

Request - CallCalendar for WP7

Can this be ported to WP7 by anyone.
http://forum.xda-developers.com/showthread.php?t=298279
Essentially this stores the call start time, end time, duration and name of the other party if they are in the contact list, for both incoming and outgoing calls with an option to select if one wants to copy missed call details too.
As an enhancement we could also copy all incoming and outgoing SMS messages with relevant details to the calendar or in a separate folder in the main email account.
There's no api at this time to get that kind of information. Maybe one day it will be possible but not for now.
docraj said:
Can this be ported to WP7 by anyone.
http://forum.xda-developers.com/showthread.php?t=298279
Essentially this stores the call start time, end time, duration and name of the other party if they are in the contact list, for both incoming and outgoing calls with an option to select if one wants to copy missed call details too.
As an enhancement we could also copy all incoming and outgoing SMS messages with relevant details to the calendar or in a separate folder in the main email account.
Click to expand...
Click to collapse
I support this request, would love an app like that.
docraj said:
Can this be ported to WP7 by anyone.
http://forum.xda-developers.com/showthread.php?t=298279
Essentially this stores the call start time, end time, duration and name of the other party if they are in the contact list, for both incoming and outgoing calls with an option to select if one wants to copy missed call details too.
As an enhancement we could also copy all incoming and outgoing SMS messages with relevant details to the calendar or in a separate folder in the main email account.
Click to expand...
Click to collapse
Me too. I miss CallCalendar already
Big time necromancy, but relevant:
Will Mango provide the APIs needed to get a CallCalendar-like app working?
I was using over 4 months WP7... liked it... but i always had problems keeping track of my phone calls, wich are a lot for my own company...
Since i got noticed about this app i got back from the shelve my HD2 and TP1... this app rules! I even ordered (since i can't miss a full keyboard phone) an SE X2!!! I'm addicted to this app!
If a port would come i'm even willing to pay for it!
Greets,
Michiel
Please post in the Requests/ideas thread. The SW development forum is for software development, not requests. The thread is there specifically for that reason.
~~Tito~~
(Thread Closed)

Exchange email

Does anyone know of a emal app that shows how many unread email you have in a sub folder? I am using the email that came with my dinc and it does not show you the subfolders you have to actually go into them. I also am trying out Touchdown and it does not show how many unread you might have in a sub folder either.
I use K-9 Mail, and it has this functionality. Be aware that this client has many configuration options (perhaps too many for the average user), but with tweaking, it should be able to do what you're looking for. If you want that behavior for all folders, you'll have to edit their folder options to push them into a first class folder, or change your push email rules, etc. I can't really say for sure what you'll want to change because there are so many options, but you'll find a configuration that will work to your liking, I'm sure.
jonesh said:
I use K-9 Mail, and it has this functionality. Be aware that this client has many configuration options (perhaps too many for the average user), but with tweaking, it should be able to do what you're looking for. If you want that behavior for all folders, you'll have to edit their folder options to push them into a first class folder, or change your push email rules, etc. I can't really say for sure what you'll want to change because there are so many options, but you'll find a configuration that will work to your liking, I'm sure.
Click to expand...
Click to collapse
I tried K-9 but could not get it to connect to my exchange server as I did not see a place to put in the domain name so I gave up on that.
Have you tried specifying your username as [email protected]?
jonesh said:
Have you tried specifying your username as [email protected]?
Click to expand...
Click to collapse
Yes but still does not work.
How about specifying your user name as domain name\user name?

[APP] Root Call Blocker - need some feedback please

Hi guys, Im the dev of Root Call Blocker, a powerful blocking solution. There have been a few reports of people experiencing issues with the data connection on the S3, which i dont have.
Could someone please let me know if this is indeed the case?
If you do find an issue please follow this procedure:
- as soon as you spot the radio without a data connection (not after a call) send logs through the "Write to us" item in Settings
- once youve sent the report, try using the Debugging tools found in settings
- if the tools do not help, please send another report - this will still help me track issues
Thanks in advance, PR after the break
****************************************************************************************************************************************
Root Call Blocker - the only truly functional call filter
Feeling paranoid? Need privacy? Discretion? Enter Root Call Blocker, the only true call firewall available on Android.
Unlike all other call blocking apps, Root Call Blocker silently blocks calls at a system level. You need not even know its working.
Supported languages: English, Español, Français, Deutsch, Italiano, Ελληνικά, Português, Magyar, Pyccĸий, Українська.
If you want to help translate, visit http://bit.ly/wCgD4j
Advantages:
- A call will never go through
- Your phone never rings
- Reject calls from anyone, including restricted numbers
- Wildcards block groups of callers
- Keep blocked calls and messages hidden
- Five reject methods, including "Don't answer"
- Per-number logging
Features:
- Multiple profiles
- Groups integration
- Exceptions
- SMS auto-replies
- Toggle widget
- Scheduling
- Logging
- In-app replies
- Persistent and event notifications
- Customizable vibrate notifications
- Export from hidden logs
- Low profile
- And much, much more
Debugging
Please follow the instructions in the app's Settings menu to send us logs of your error. Reproduce the error, then send the log.
Market link:
https://market.android.com/details?id=fahrbot.apps.rootcallblocker.beta&feature=search_result
The Trial allows you to block one ITEM. You can use Groups to block multiple contacts.
Screens:
6.99 kind of steep with the other options out there but trying the trial version.
---------- Post added at 02:32 PM ---------- Previous post was at 02:26 PM ----------
features to limited in lite version so uninstalled. Looks like does same think as Mr Number
clayginn said:
6.99 kind of steep with the other options out there but trying the trial version.
---------- Post added at 02:32 PM ---------- Previous post was at 02:26 PM ----------
features to limited in lite version so uninstalled. Looks like does same think as Mr Number
Click to expand...
Click to collapse
The only other option is Call Master, which we also make and also costs that amount. Every few weeks we have sales, so youre welcome to wait.
IT DOES NOT DO THE SAME THING AS MR NUMBER.
1.8.3.21
Fixed issue that lead to intermittent blocking on JB and CM10
I have a question:
When I am on a call, and a call comes in that is on my Blacklist, will that incoming call be Blocked without disconnecting my existing call?
All other Blocking apps disconnect my existing call, including 'Ditched' Callers with Youmail
I already purchased your app, and would just like to know this, as this situation doesn't come up often.
Although me and the developer has had our differences.....I have to say root call blocker and call master even more so are the best call blocking apps in existence for android phones. Only real issues may be data/signal loss on occasion. I'm running the FreeGs3 ROM with the jellybomb theme...I have experienced data loss on occasion...I will try to send the logs as soon as it happens.
ftgg99,
I wanted to know if I may make a request. On call master I have all my blocked numbers within the app itself under a list. When one of the numbers or sms are captured by Call Master it does not give the name of the blocked caller....just the number. Is there any way to associate the names with the blocked calls. It works fine when the numbers are within the stock contacts list but not when the numbers are only within the app.
Also, when adding contacts to the built-in block list, is there anyway to have the list auto sort by name....similar to the stock contacts list?
Yes.
ftgg99 said:
Yes.
Click to expand...
Click to collapse
What were u answer yes to? The sort function? If it's already there...how do u enable it?
Sent from my SPH-L710 using xda app-developers app
bsg411 said:
What were u answer yes to? The sort function? If it's already there...how do u enable it?
Sent from my SPH-L710 using xda app-developers app
Click to expand...
Click to collapse
For you its differences, for me - policy.
Welcome back. Youre no longer in my list.
Are you saying that contacts you creted throught e app (ie - add/number/name) are not being shown as names in the internal logs? Because they are for me...
What is "stock" for you?
ftgg99 said:
For you its differences, for me - policy.
Welcome back. Youre no longer in my list.
Are you saying that contacts you creted throught e app (ie - add/number/name) are not being shown as names in the internal logs? Because they are for me...
What is "stock" for you?
Click to expand...
Click to collapse
Thank you sir....its good to be off punishment...lol.
You are correct....all my contacts have been manually entered (ie - add/number/name) and are not being shown as names.....they just show as numbers in the internal logs. So when a blocked text or call is logged I have to go inside my list to search thru numbers to see which name matches the blocked number.
Also, when adding new entries to the internal contact list it just puts new entries at the bottom of the list as opposed to auto sorting the list in alphabetical order. I was hoping you could add auto sort feature.
Stock means when I used to have my lists just reference a contact group from my phone the internal log always attached a name with the number.
I prefer to use the manual internal contact list because it is more private.
bsg411 said:
Thank you sir....its good to be off punishment...lol.
You are correct....all my contacts have been manually entered (ie - add/number/name) and are not being shown as names.....they just show as numbers in the internal logs. So when a blocked text or call is logged I have to go inside my list to search thru numbers to see which name matches the blocked number.
Also, when adding new entries to the internal contact list it just puts new entries at the bottom of the list as opposed to auto sorting the list in alphabetical order. I was hoping you could add auto sort feature.
Stock means when I used to have my lists just reference a contact group from my phone the internal log always attached a name with the number.
I prefer to use the manual internal contact list because it is more private.
Click to expand...
Click to collapse
Will be fixed next release. Hopefully full mms blocking and saving as well.
ftgg99 said:
Will be fixed next release. Hopefully full mms blocking and saving as well.
Click to expand...
Click to collapse
Thanks...much appreciated.
Anything to report?
Any issues with the JB update? Or with SuperSu?
Anything to report?
ftgg99 said:
Anything to report?
Click to expand...
Click to collapse
Currently the mms from block contacts still stay in native sms app....they do not get blocked. however i still want the mms messages from the people in the blocked list...i just dont want them discovered. hopefully this feature will be fixed and include the option to save mms as well as block.
also it would be nice to have an auto sort feature when using the in app contact list. when i add a name and number to the cm internal contact list....the entry goes to the bottom of the list instead of being automatically sorted alphabetically. once the number of entries gets long it becomes difficult to find names when not in alphabetical order.
sms sometimes leaves a blank message in the external sms app with the name of the last person i sent a message from in my in app contact list. or sometimes if i am going back and forth between messaging someone in my block list and someone who is in my normal contact list....the message to the blocked person will sometimes have both contacts in the 'send to' instead of just the blocked one. Both of these issues definitely compromise the privacy.
Sent from my SPH-L710 using xda app-developers app
wrong forum.
Thread no longer needed as we have this device. Closed.

Categories

Resources