way of communicating between Windows phone app and desktop app - c#

I want my windows phone app to communicate with a desktop app (in Windows), basically i want to send a picture which is captured in the phone to be send to the desktop app and get back the feedback from the desktop app.
Whats the most elegant and modular and simple way of doing this?

If you can force your user to connect via wifi such that he is on the same local network as the desktop, you listen for the phone's connection on a higher port and transfer the data to/from it over TCP directly.
Otherwise, the best way to do this at present would be via the internet, using your server to synchronize files and messages between the two devices.

Related

WIndows Form Application with bluetooth communication

In a normal Windows Forms Application for laptops (not a Windows store application) I need to communicate with a Bluetooth device.
For communicating with Bluetooth I need Windows' Bluetooth libraries:
see this link
Can anyone tell me how to add this reference into a normal application ?
My impression is that Microsoft has totally forgotten that normal applications need to communicate with Bluetooth as well sometimes .
Or am I overlooking something ?

Transferring files from windows ce to desktop

Is there a way to connect a Windows CE 6.0 device to a Windows 7 desktop PC without using activesync
There's no way to just connect the two and have them communicate without some form of driver or application being written. ActiveSync/WMDC is what Microsoft shipped "out of the box". If you want to do what it does, then you have to replace it with another app or protocol, and it generally requires you to do both sides - a device app and a PC app.
What that would look like depends on how you intend to connect. If you want to use USB, then you can likely use the CE RNDIS driver, so that the device shows up as an NDIS device, then use the desktop APIs to send network traffic to and from the device. Of course you'll have to put an app or service on the device that knows how to take commands and do something with them.

Accessing an IIS Website from a mobile phone that is connected via usb cable directly with the windows machine

You may find this question very odd but these days we have all sorts of windows and mobile phone apps. Although googling it didn't help but I thought may be someone somewhere knows the answer.
Is it possible to access an IIS hosted website on a mobile phone. Mobile phone is connected to the windows machine via usb cable. If it is possible then what is the procedure please.
IIS Website is written in asp.net mvc 4 razor with c#.
Unfortunately the network does not have a wifi so connecting to the windows machine via wifi is out of the question.
I am administrator of my windows machine.
At the moment, it is also not possible to host the website on the server and make it available over the internet.
My phone is latest android.
In simple words, I have a website that is hosted on IIS and the phone is connected to the machine via usb and I want to browse the website from my phone.
Some ideas from the top of my head:
If your mobile phone has internet access and you can access your network router (or you can ask your admin to do this for you) than you could just simply forward a port to your PC and connect from internet to your router with appropriate port. Please look into your router manual for more details
You can also buy cheap usb wifi key that you can use with your PC as set up direct connection with your phone
Depending on your mobile phone OS you can actually share internet connection (so probably at the same time give your phone access to your local PC) by using 3rd party software and some hacks - this is one for Android but requires rooted OS http://www.howtogeek.com/117118/how-to-connect-your-android-to-your-pcs-internet-connection-over-usb/
Good luck! :-)

Sync between two windows phone devices

I have a project wherein i have to create a windows mobile app which synchronize files between two windows phone, provided that the connectivity between two phone should be through WiFi.
Being new to this app development field , i have no idea on where to start and where to look. Is there any sample application present to sync data between two phones without involving any database. And what API should i use. i referred to some tutorials on this website.
This won't be possible without a server between both phones. Microsoft is very restrictive and won't let you access the WiFi connection. Actually you would have to use one of the phones as a WiFi hotspot and the other one as client and this is definitely not possible with an WP app.
I would recommend to write a Windows Service (have a look at WCF) which both phones connect to. This service would have to do all the work which would be:
Wait for phone requests to work with them
Handle the request when a phone wants to synchronize data
Let the second phone know that there are new data to receive
Transfer data to the second phone
Actually there will be more requirements for such a service (e.g. security) you will have to deal with.
Yet, there is a solution because Rudy Huyn connected several Windows phone using the connection Wifi without server http://www.youtube.com/watch?feature=player_embedded&v=rl0VHkoOHTA
But I don't know how..

Framework for phone to desktop communication

I'm developing a C# app on the desktop (Microsoft Surface like), and I would need to send data to phones (Iphone, Andriod, iPad, WP7 etc). The data transferring would pictures,text to and fro.
I'm aware of 32feet and Blueway, those are using bluetooth. I like to ask
is there a framework which would allow the app to connect to the phones to transfer data
is bluetooth the best connection method? Or are there alternatives
If you just want the app to send to any phones nearby then Bluetooth will probably be the simplest option.
If you need to have some loginc and back and forth communication this will depend on the phones you wish to communicate with. For instance, access to the Bluetooth stack isn't currently available to 3rd party apps on WP7.

Categories

Resources