Detect WP7 phone like Zune software - c#

When I connhect my Windows Phone 7 device to my desktop, Zune automatically starts.
I need to develop an application that have the same behavior.
How can I do that?
Thanks.

See this post Start program on usb hardware plugin
So, you need to create a windows service which will polling connected usb-devices and starts your application.

Related

Communication between Windows phone and a desktop application

I want to have a WPF application running on my desktop to communicate with the windows phone. For instance my WPF application should bring all the contacts/messages from Windows phone to local disk. Then I have to store it somehow. But it is the data fetching part which I have to go through first.
Phone would be connected to PC via USB cable. Is there any library available for c# which can give me methods to extract such phone specific data when phone is USB-connected to the PC?

Emulate a specific WP device?

I'm creating an app for Windows Phone 8 that spits out a 1-10 score rating your phone's performance (Like the Windows Experience Index) but for windows phone. The app is basically done, but due to how this app works differently from device to device, I would like to emulate multiple devices in the WP emulator. I own a HTC 8X, and I know my app works fine using that, but how can I emulate another device, such as a lumia 920, using the Windows Phone emulator?
You can't emulate a specific device in the emulator. As a workaround, you can use the Remote Device Access provided by Nokia. It will allow you to test the app on a large panel of Nokia phones. Unfortunately, I'm not aware of similar test platforms from other constructors.
In the emulator you can test only diferents resolutions and size of rams, i think it would be two of the things you should "scan" in your app so it can help you to test your app
You can test for different resolution and size by this way
But when you need to test mobile like lumia 920 which runs in WP8 os. You need to have WP8 SDk installed in VS2012.

How to develop a wifi sync app for PC to Windows Phone?

I want to develop a wifi sync app for pc to windows phone.Any idea about how to start?
You might want to look at MS Synch Framework

Detect incoming call iphone 5

I have a question regarding the possibility of creating a winforms application in C#, which is able to detect incoming calls on an iphone.
Here is the scenario:
the iphone is connected to the computer via a usb cable.
whenever the phone rings I would like to be able to do the following:
Retrive the phone number.
Use the phone number in the winforms application, to search xml filer.
Answer the phone via the application and play an automated voice message.
Is this even possible in C#? If so how could this be done and are there any libraries designed for interacting with an iphone using C#??
Thanks and regards.
Anders
There are no SDK's that allow you to develop .NET apps that interact externally with the iPhone.
If you want to write an iPhone app, but are intimidated by the learning curve you could check out MonoTouch. It allows you to write iPhone\Android apps using C#.

can c# be used for communicating mobile and pc?

As a minor project in my degree I would like to communicate mobile and pc .I am interested to communicate through bluetooth is it possible to do so in c#?
If possible please provide me list of application or hardware i would requiere in order to do so.
thanks in advance
If (and it's a big if based on the lack of information in your question) you mean "How do I write an app on my PC, using C#, that can communicate with a Windows Mobile device that is connected to my PC via ActiveSync or WMDC" then the answer is RAPI. A free, open-source managed wrapper for it is here.
Yes its possible if its with windows mobile phone or pocket pc with bluetooth. You need a bluetooth enabled computer and mobile phone. For dev you need to download the windows mobile 6 sdk.
Then developing of the communication between desktop app and mobile phone app, you can use the 32feet.Net is open source.
When you download it and installs (well it unpacks to program files folder) you will have the dll that you make reference to in Visual Studio. Also you will get some sample apps. One of them is a Bluetooth Chat that works in Desktop, Pocket PC and SmartPhone.
Another option you could use is set up a web service that acts like an intermediary between the device and your machine. One huge benefit of this is that no longer are you bound by the distance requirements of bluetooth.
Of course if you're trying to build some sort of proximity service (do z when item x is 3 meters from item y) then bluetooth is probably the way to go.

Categories