Emulate a specific WP device? - c#

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.

Related

Can windows phone store apps run in tablet?

I am developing new windows phone 8.1
[RT] application working fine , but now my client want to give support to tablet also . Does my application work in tablet or I have to create a universal project ?
Please help me out for this .
Windows Phone 7.x or 8.x apps do not run on Windows 8/8.1/10 "out of the box" - you need to either have a universal app, or share your code (for example as a portable class library) to allow it to also run on the desktop variant of the OS.
If you want your app to run on over vendors tablets (such as Android or iOS) there are solutions that allow some code sharing, but again, you're looking at supporting another codebase to achieve this.

Coded UI test for Windows Phone 8.1 without emulator

I'm trying to create my first coded ui test for windows phone 8.1, but I can't install emulator on my pc because of my processor(does not support hyper V). So my question is: Can I create coded ui test and run it on my Windows phone, or i have to install emulator for this kind of test?
Thanks :)
According to MSDN testing directly on device should be supported:
Q: Can tests be executed on the emulator only, or can I also use a physical device?
A: Either option is supported. The target for test execution is selected by changing the emulator type or selecting device in the device toolbar. If Device is selected, a Phone Blue device needs to be connected to one of the machine’s USB ports.
However creating tests without the emulator is not possible:
Q: Do I have to deploy the Windows Phone app in the emulator in order to map UI controls?
A: Yes, the coded UI test builder requires that an emulator be running and the app be deployed to it. Otherwise, it will throw an error message saying that no running emulator could be found.
see Test Windows Phone 8.1 Apps with Coded UI Tests on MSDN

Get Window Phone Signal C#

I've already asked this but for iOS and they told me it was impossible.
I migrated to android and Windows Phone.
For Android I've found but not tested this
http://www.firstdroid.com/2010/05/12/get-provider-gsm-signal-strength/
AFAIK it works. My problem is I'm now testing windows phone but I'm unable to find anything related to this problem. Some people mention WMI and I'm unable to figure out what this is.
Thanks
P.s I,m programming for Windows Phone 8 and 7.1
The closest thing we have is Microsoft.Phone.Net.NetworkInformation and it's parent namespace Microsoft.Phone.Net . These API's don't provide the raw data for the signal but they are able to tell you if the phone is on mobile broadband, the network operator, roaming info, etc. It's designed so that you app can be away of data usage, and intelligently respond when using 3G vs Wifi.
There is a GetSignalBars method in ConnectionProfile, available in Windows Phone 8
http://msdn.microsoft.com/library/windows/apps/windows.networking.connectivity.connectionprofile.getsignalbars.aspx

Detect WP7 phone like Zune software

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.

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