Write a plugin for Contacts |
![]() ![]() |
Write a plugin for Contacts |
May 4 2005, 09:12
Post
#1
|
|||
|
Newbie Group: Posters Posts: 6 Joined: 21st July 2004 From: Serbia, Novi Sad Member No.: 50,191 |
Hi everyone,
What I'm interested about is if it is possible to write a plugin for "Contacts" module (Smartphone 2003)? What I actually need is to add a new menu item in Contacts menu (beside "New contact", "New SIM contact", "Delete", "Beam Contact" and "Filter") and to be notified when user selects my menu item. I beleave the second thing (to be notified when user selects my menu item) can be achived through the IContact interface but I'm not sure if it is possible to add additional menu items in "Contacts" menu? I read about "POOM API" but can't find the way of doing what I need using it. What I found here and on other discussion sites is how to write plugins for home page. If someone have some experience on this or knows where I can find something more, please post it here. I would appriciate any kind of help. Thanks in advance, Sasa |
||
|
|
|||
May 16 2005, 14:30
Post
#2
|
|||
|
Newbie Group: Posters Posts: 6 Joined: 21st July 2004 From: Serbia, Novi Sad Member No.: 50,191 |
I followed steps in "Extending Context Menus" (from Smartphone SDK) and here is what I did so far:
1. Created a context menu extension COM DLL (using ATL) that implements IContextMenu and IObjectWithSite. 2. I registered my component. 3. I added next values in registry: HKLM\SOFTWARE\Microsoft\Shell\Extensions\ContextMenus\AppView\MSContacts\{MyCLSID} default="My menu item" DelayLoad=1 4. Copied my dll to "windows" folder on device. When I start "contacts" application and click on "Menu", DllGetClassObject() function is called. That function calls _Module.GetClassObject() and returns S_OK (where _Module is CComModule instance). After that, no other calls are made. I have implemented a logger that writes to text file and I'm sure that none of my functions are called after that. Here is the list of functions I implemented: IContextMenu functions: GetCommandString, InvokeCommand and QueryContextMenu IObjectWithSite functions: GetSite and SetSite Is there anyone who worked with this or have any clue about what can be the problem here. What I also noticed is: When I sign dll with privileged certificate and build project, eVC4 gives me message: "Failed to register \Windows\BCSrv.dll to the device" but my dll gets loaded when I select contacts->menu on device. When I sign dll with unprivileged certificate (default development), eVC4 gives me message: "Successfully registered \Windows\BCSrv.dll to the device" but my dll doesn't get loaded when I select contacts->menu on device. Should I give you more details on this? Thanks in advance, Sasa |
||
|
|
|||
Aug 28 2005, 00:05
Post
#3
|
|||
![]() Newbie Group: Posters Posts: 41 Joined: 5th February 2005 Member No.: 108,770 Device(s): Audiovox SMT5600 |
Sasa,
A couple of things...if you want to write a plug-in as opposed to an application there is pretty good documentation available on this. It sounds like what you want to do is pretty straightforward so I think the documentation is available. If you want to see how to interact with the POOM database (which you will need to do for accessing contacts) please see the response I posted to VanderHuge's message (entitled "Checking for changes in POOM records"). It has some details on interacting with POOM. It's not exactly what you are looking for but perhaps it will be helpful to get you started. Ted |
||
|
|
|||
|
Jan 1 2006, 02:29
Post
#4
|
||
![]() Regular Group: Posters Posts: 80 Joined: 19th December 2005 From: San Juan - Argentina Member No.: 163,399 Device(s): HTC S710, Samsung i900 |
hi guys
What could I do for my probelm ? I've my contacts stored in my SIM card. When I receive a call, there's no problem, but when I receive a text message, I can see only a number, not the contact's name... I've the contact in my db, but for example: John is: 154031225 but when I receive the message i get 5492644031225 instead of John What could I do ? any plugin for this ? I use SMT5600 Audiovox with WM2003SE |
||
|
|
|||
![]() ![]() |
Similar Topics
| Topic | Replies | Topic Starter | Views | Last Action | |
|---|---|---|---|---|---|
![]() |
helper app while you run either or |
10 | NuShrike | 1,597 | Today, 01:20 Last post by: NuShrike |
![]() |
NEED FREE GPS SOFTWARE FOR BLACk JACK 2 | 17 | lothan | 5,061 | Today, 01:32 Last post by: zbow1974 |
![]() |
|
174 | jonboyuk | 57,077 | Today, 00:22 Last post by: Kira Y |
![]() |
What ROM version is best for Australia? | 21 | ShaneO | 1,181 | Today, 01:24 Last post by: SoreGums |
![]() |
Themes based on www.mobilematt.net MD2 Omnia |
553 | sector | 121,892 | Today, 04:46 Last post by: Natsirt |
![]() |
Average time for a GPS fix?? | 12 | Master_Axe | 410 | Today, 03:18 Last post by: pallen |
|
Lo-Fi Version | Time is now: 8th January 2009 - 05:37 |
Please visit our 'Plus Partners' - these companies support MoDaCo through 'MoDaCo Plus' - Click Here for more details!
ActiveKitten |
Aiko Solutions |
Ateksoft |
Binaryfish |
Conduits |
DeveloperOne |
eSoft Interactive |
FTouchSL |
Inesoft |
Lingvosoft |
monocube |
Mykesoft |
OmegaOne |
Omnisoft |
Opera Software |
Resco |
SBSH |
Slipstream Solutions |
SPB Software House |
Splashdata |
Sprite Software |
Syncdata |
Teksoft |
VITO |
WalkingHotSpot |
WebIS |
z4soft
Would your company like to become a 'Plus Partner'? Click Here to contact us!