Help Making a Call Programmatically from .Net - Windows Mobile Development and Hacking General

Hi,
I am working on an app in C#.net (3.5) that has the ability to call numbers from a database. However I am having trouble lauching the Dialer to do what I want.
At the moment I am using the following code to launch the dialer (Staight forward ShellExecute with Params)...
Code:
Process cProg = new Process();
cProg.StartInfo.FileName = @"\Windows\CPROG.exe";
cProg.StartInfo.Arguments = String.Format("-url tel:{0}", no);
cProg.Start();
This lauches the "Verify the number is correct" prompt, I would like to call the dialer and dial a specific number.
As many people before me have asked for extra param's to CPROG I assume there aren't any.
What is the best way to achieve what I am after?
I know I can use the TAPI to make a call, but can that launch the dialer, or will that simply make a call using my program (not what I am after).
I'd like to do it in the same way SPB Mobile Shell / HTC Cube favourites does it.
Thanks in Advance for any help you can offer.
Dave

Forget about launching the cprog program. You can do it like this:
You need a reference to Microsoft.WindowsMobile.Telephony;
Then use:
Phone phoneCall = new Phone();
phoneCall.Talk("01234567890");
This method launches straight into the dialler and dials that number.

Thanks Mate, works a treat.
/bows
Ta,
Dave

hi chaps...
apart from c# 2008 and the .net 3.5 framework what else do you need to develop apps on the windows mobile platform.
may sound like a daft question but i have got it working on c# 2005 but it does not want to work in 2008.
thanks

You might need the Windows Mobile 6 SDK.
There are two versions, I recommend the Professional one (Supports more resolutions).
Thanks
Dave.

DaveShaw said:
You might need the Windows Mobile 6 SDK.
There are two versions, I recommend the Professional one (Supports more resolutions).
Thanks
Dave.
Click to expand...
Click to collapse
quick question - .net CF 3.5 framework required or .net 3.5?
thanks.

response
.net CF 3.5 man

Related

Intercepting and rewriting phone # before dial

Hi!
I'm a new windows mobile user, developer by trade. I have a need for an application that will intercept a dial attempt from contacts or smart dialing and apply some re-write rules to the number then proceeding with the dial as normal. I've not found such a program for WM (I use TakePhone to do it on Treo 650) so I decided to try to write it!
This is for Windows Mobile 5 (on a wizard, if it matters).
I'm a Java developer, and rarely use Windows so I'm not so up on the technology used for this kind of thing, but no matter. I orderd the Windows Mobile 5 developer thing from MS and have it all installed. Using the managed code Microsoft.WindowsMobile.Telephony stuff I can dial a phone number. I suppose I could even add a menu to the contact that would specifically run my code and then I could use the Phone.Talk thing to place the call, however, I'd really like to enable the program and just have it work in the background when it is enabled.
First, can this be done with managed code? If so, how! Any input would be appreciated. Also, if you know of software that does this already, I'll just go buy it.
Thanks in advance!
this should be possible to be done with managed code, but the only idea I have now is hooking RIL.DLL or COM-port communications. And the easiest way to hook something - is to use C/C++.
Thanks for the reply! I've done some searching on RIL and RILGSM and found minimal info regarding "hooking" it. It seems that the person most likely to have done it is "itsme" who has posted a bit of information regarding the entry points and functions available in said DLL.
I'll keep looking...

Free IDE SharpDevlop for Mobiles

Hello,
is there a free IDE for .net Programming on WM 2003 PhoneEdition using C#?
I have Visual Studio 2003 Express Edition...and the SDK is downloading...
eVC 4.00 is running but i thing .net is better...and more convinient
It woud be nice a link list with items i need for this.
Perhaps use the SharpDevelop IDE for Creation this Apps?
Thx
SharpDevelop is not really working with .NET CF. There is a workaround but it is a mess, you can't use GUI for making forms and such, do a search on their site and wiki. While .NET might be convenient, I suggest you to learn C++ and use EVC++4 and possibly MFC; native apps is the way to go under PPC, especially since .NET apps tends to be slow (and you can't do some stuff in .NET either).
Evc++ I cant get the SRC Files for this example CTapiConnec
Hello,
hmm yes i can use evc++, i have tested it and it works fine.
Creating a Standard Dialog based app no "beginning" Problems...
BUT
I want to use the tapi do make a call. Ok MS has a CallIt sample on Homepage and some post in this Forum...
I cant get the SRC Files for this example CTapiConnection
defined in TAPIUTILS.H
And reimplement this again is mutch work...i tried it but many compiler errors after 20 Fixes i give it up.
Where can i download it? Or only for MSDN Subscribers?
And the issue about looking what is included in .h Files

Beginner's pointers?

Hi chaps,
I've just got myself an O2 XDA Orbit - great device, and now I'm looking for developing for it - just simple things at first, like a Blackjack game, or a simple Today feature with the sun and moon times on it; this sort of thing.
I've got Visual Studio .NET 2003, but I see that in order to program the latest devices, you need VS 2005 (?). So, I've downloaded Embedded Visual Studio C++ v4 with all the SDK's and I'm hoping to develop for an earlier version of Windows Mobile, and hope that it works.
So while I've got all that, I'm now stuck as to where to start! Can anyone point me to a good book, or something online which will help me through a simple CE application? How you do get the Today screen working, for example? I realise that this might be asking a lot, but a couple of pointers would be great - if you could!
Many thanks,
MrP.
I'm just starting out myself with windows mobile programming. You can find a lot of info from msdn. Here is an example Hello app.
http://msdn2.microsoft.com/en-us/library/ms912017.aspx
You can find a lot of good stuff at the code project site also.
http://www.codeproject.com/ce/
eVC has wizards that will get you going. One thing I found out about using eVC is that you won't be able to debug your programs on a WM5/6 device since the SDK's are not compatible with them. It can be a bit of a challenge to fix bugs without a debugger. I can't get the debugger to work with the emulator either for some reason.
A question for other eVC developers out there. Is it possible to use the emulator to debug programs or do you all have an old PPC2003 device that you use to do your debugging? Or have you all moved on to VS2005?
I've bought visual studio 2005 standard and it is great - it fully supports WM5/6 (with sdk) and runtime debugging - for .exe it works well but I have problems with .dll - I can't debug dll files - does anyone know how to make it?
Pleas look up threads started by vijay555.
He wrote a comprehensive article on the tools and possibilities to begin developing for these devices.
Just as a quick side note:
There is no need what so ever to pay M$ money for VS 2005 if you want to develop in C / C++.
Apps written in eVC++ 4 will work perfectly with WM 5 and 6 and if you need any missing API (not many of those) you have 2 choices:
1) Manually unpack the SDK and link to it.
2) Use implicit linking (that LoadLibrary and GetProcAdress).
levenum said:
Pleas look up threads started by vijay555.
He wrote a comprehensive article on the tools and possibilities to begin developing for these devices.
Just as a quick side note:
There is no need what so ever to pay M$ money for VS 2005 if you want to develop in C / C++.
Apps written in eVC++ 4 will work perfectly with WM 5 and 6 and if you need any missing API (not many of those) you have 2 choices:
1) Manually unpack the SDK and link to it.
2) Use implicit linking (that LoadLibrary and GetProcAdress).
Click to expand...
Click to collapse
Sorry about the delay in replying...
Many thanks for the pointers.. Just a matter of starting now!

Application programming for HTP P3300 (ARTEMIS) and a few questions

As I'm new in this forum: Hi everybody!
I have been programming Windows CE-based devices for many years, but no experience yet with the HTC ARTEMIS (P3300). Therefore, I've a few questions and hope to get answers from this forum:
- I assume, it is possible to program visual-C++ based applications for the programme. SDK for Windows Mobile should be available at Microsoft. Is that correct?
All further questions are based on the assumption that visual-C++ (or embedded VC) is used for application development.
1. Is it possible to direclty receive incoming Short Messages (SMS) via the application? (Any keyword on how this works would also be welcome)
2. Is it possible to query the battery status from the device?
3. Can the GSM module easily be accessed and can Cell-IDs or carrier IDs be read from the device? (In particular, I want to identify the home country of the current mobile carrier) - If yes, how does it work?
4. Is it possible to restrict the appearance of the ARTEMIS. I.e., the user should only be able to access "my" application and mobile phone (voice) features. All other applications and system functions shall be hidden to the user.
Thanks in advance and kind regards,
ma_gu
yeah the stk can be downloaded and accessed from visual studio
1. i would asume so even if it had to be don with a dll hook
2. yeah many 3th party applications can display it asume there is an api call to get it
3. yeah there is an api forget the name searching in this forum should give some hits
4. yeah but if they hardreset or reflash the device it would be more troublesome
Hi Rudegar,
thanks for your fast reply. That sounds good and I think, I'll be able to find the regarding API calls (anyway, if somebody could provide some keywords, it would be very welcome).
But I have never restricted the appearance of any Windows-CE based device (question #4). How can this be done? At the beginning, I assumed that this needs rebuilding of the operating system via a system builder, but that's obviously not the case. Can you give me some hints on how to do this?
Kind regards,
ma_gu
http://forum.xda-developers.com/showthread.php?t=256646&highlight=programming
the api is called ril
depend on who you wanna develop really
1 option is making pure arm code (kinda skipping the ce) using gcc compiler for arm
2 option is the high lvl c# .net or c++ .net path but it's not that fast and dont have as much os access as pure win32 stk and even microMFC
3 option microMFC old ms class lib for c++ oop the granddad of .net you might say
4 pure win32 stk you handle the msg loop and everything more work but more power where many developrs who do today items and programs end up
if you can live with .net it's the easy path
if you want more then starting with microMFC and moving on to pure win32stk is prob the thing
java is not that well supported by wm imho
oooh yeah and you dont use platform builders and stuff like that
unless you are building roms from scratch and got access to all drivers for spc devices
you start a new project in embedded visual stuio or visual stuio 200X
and pick your path as in .net or the likes
and then you can debug using a simulator or directly on the device
it use activesync to get the exe there
otherwise you can normaly activesync the exe file to your device and run it directly
or copy it to a sd card and run it from there

Developers Please HELP! windowsmobile.pocketoutlook question!

Hey all-
Quick question for those that are familiar with the windowsmobile.pocketoutlook namespace. When you select a contact in pocket outlook, it brings you to the summary screen. At least on my phone, the deault choices on this screen are call, and send sms. I am trying to add a custom action, or choice, to this screen. Is this possible? If so, how.
Thanks for the help-
Nick
It is possible.
Check the Windows Mobile 6 SDK for some examples. You'll have to use C++ for it. .NET is NOT possible.
Ok thanks....I found some info on the C++ solutions. I was searching for .net but I guess that I will just have to do it with C++

Categories

Resources