Can PeerFinder class be used to link to windows phones and send files to each other? - device

can PeerFinder class in .Net be used to connect two windows phones to each other? WP to WP and after that to transfer files from one to each other? I've read some articles and found references only to WP to other devices (tablet, pc, lego robot) but not to another WP.
Thanks

Yes it is possible to do that. Refer to this proximity sample. It is a universal application - http://code.msdn.microsoft.com/windowsapps/Proximity-Sample-88129731
It uses peerFinder and StreamSocket.

Related

App Development for Windows Phone 8 and Windows 8

Is there a unified way of developing app that works on both Windows 8 and Windows Phone 8.
What I mean is that, can I make a single solution/project base or do I need to create different solutions, and then apply code sharing strategies to minimize the effort.
You need separate projects for the two app platforms, but you can share a lot of the effort by utilising portable class libraries, especially if you are using the MVVM pattern. For example, you can make a shared view model class using the PCL version of MVVMLight.

Do Windows Mobile 6.5 applications work on Windows Phone 7?

And if not then what do I have to do to make them?
(Our apps are in latest C# .NET.)
No. You would need to port your apps to the WP7 platform. You may be able to reuse some code, but the UI model is completely different.
Much of the C# sharp code is most likely the same but some things like saving and loading are different as well as you having a choice between XNA and Silverlight. The link below should contain a lot of the information you need.
http://create.msdn.com/en-US/education/catalog/

Windows Phone 7 External Communication

From what I've read online in forums and blogs, Windows Phone 7 has no support for bluetooth serial. There also does not seem to be any support for communication with accessories through USB. Can someone give me a definitive answer as to whether or not Windows Phone 7 can do any sort of command and control for external accessories? I've used bluetooth serial on Android as well as the iOS external accessory framework. I would imagine there would be some level of support for external accessory communication in the Windows Phone 7 platform.
I can confirm that there is no Bluetooth/External Accessory API exposed as part of the SDK. There may be a private API available to select parties (though I'm not familiar with any apps that do so), so it might be worth contacting Microsoft.
Keep in mind that, even if you find a private/internal API you won't be able to call it (even via reflection) and it would be caught during the certification process anyway.
If it's not possible to communicate with the accessory via Sockets/HTTP then I'm afraid you're out of luck for now.

Windows Phone 7 - How to get list of podcasts or media programmatically

For Windows Phone 7- Is it possible to list the media files (specifically podcasts) on the phone programmatically? I've looked into the mediaplayerlauncher but that uses isolated storage. I want to write a program which lists podcasts in the phone media hub in a simple manner with the newest ones listed first, any help is appreciated, thanks.
I don't think you can currently do this. The current API they have is very limited.

Will Windows Dlls work on Windows Phone?

I am developing a relatively simple .NET class library mainly using basic value and reference types. To save code duplication, I would like to export to 1 DLL which could be used by both Windows PCs and Windows Phone devices? Is this possible? As far as I know, all methods are compatible with the .NET and Compact .NET Framework.
Yes, as long as you stick to the Compact Framework subset, it will work. Check out this MSDN article on that same topic.
Quote:
The techniques and principles
discussed in this article can be
utilized when writing cross-device
code—applications that target Windows
devices with differing form factors
(different screen sizes, orientations,
touch screens and so on).

Resources