Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8847373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:10:31+00:00 2026-06-14T12:10:31+00:00

I am very new to windows phone development. I want to develop an app

  • 0

I am very new to windows phone development. I want to develop an app that will be launched when I connect my windows 8 phone to my laptop. I was following this tutorial (http://justinangel.net/WindowsPhone7EmulatorAutomation) and was able to connect to my windows 7 phone/emulator but I am not able to connect to my windows 8 phone or emulator. Is there any other way to connect to windows 8 phone?

Please let me know if there is any possible solution for this,

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T12:10:33+00:00Added an answer on June 14, 2026 at 12:10 pm

    I didn’t get a chance to update this blog post yet. Delvis Gomez (A colleague on of mine) has updated the final code sample and OKed distributing it freely. I’ll update that blog post for WP8 in the future, but in the meanwhile here’s a pretty well documented code snippet on how to automate the WP8 Emulator.

    Also, make sure to add a reference to the new DLLs needed like Microsoft.SmartDevice.MultiTargeting.Connectivity.

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading;
    using System.IO;
    using System.Reflection;
    
    // Libraries needed to connect to the Windows Phone X Emulator
    using Microsoft.SmartDevice.Connectivity;
    using Microsoft.SmartDevice.Connectivity.Interface;
    using Microsoft.SmartDevice.MultiTargeting.Connectivity;
    using System.Globalization;
    using System.Collections.ObjectModel;
    
    
    namespace AutomatedUnitTestDriver
    {
        class Program
        {
            static void Main(string[] args)
            {
                MultiTargetingConnectivity connectivity = new MultiTargetingConnectivity(CultureInfo.CurrentUICulture.LCID);
    
                // Get a connectable device for a specific Device ID (from the CoreCon datastore)
                string deviceId = "5E7661DF-D928-40ff-B747-A4B1957194F9";
                ConnectableDevice connectableDevice = connectivity.GetConnectableDevice(deviceId);
                Console.WriteLine("Found Connectable Device \'" + connectableDevice.Name + "\' for Device id {" + connectableDevice.Id + "}.");
    
                // Connect to the Device
                Console.WriteLine("Connecting to Device...");
                IDevice iDevice = connectableDevice.Connect();
                Console.WriteLine("Done!");
    
                // Check if the application is already install, if it is remove it (From WMAppManifect.xml)
                Guid appID = new Guid("{b6635769-b7ac-41a5-915d-5a7b0ae34481}"); 
    
                if (iDevice.IsApplicationInstalled(appID))
                {
                    Console.WriteLine("Uninstalling application...");
                    iDevice.GetApplication(appID).Uninstall();
                    Console.WriteLine("Done!");
                }
    
                Guid productId = appID;
                Guid instanceId = appID;
                string applicationGenre = "NormalApp";
                string iconPath = @"C:\Share\LatestAPI\TestCode\Automated\AutomatedUnitTests\Bin\Debug\ApplicationIcon.png";
                string xapPackage = @"C:\Share\LatestAPI\TestCode\Automated\AutomatedUnitTests\Bin\Debug\AutomatedUnitTests.xap";
    
                // Install the application 
                Console.WriteLine("Installing the application...");
                IRemoteApplication remoteApplication = iDevice.InstallApplication(appID, appID, applicationGenre, iconPath, xapPackage);
                Console.WriteLine("Done!");
    
                // Launch the application
                Console.WriteLine("Starting the application...");
                remoteApplication.Launch();
    
                int startStopWaitTime = 1000;   // msec
                int executionWaitTime = 180000; // msec
    
                // Note that IRemoteApplication has a 'IsRunning' method but it is not implemented.
                // So, for the moment we sleep few msec.
                Thread.Sleep(startStopWaitTime);
                Console.WriteLine("Done!");
    
                // Allow application to complete 
                Console.WriteLine("Application is running! Waiting few seconds...");
                Thread.Sleep(executionWaitTime);
    
                try
                {
                    IRemoteIsolatedStorageFile remoteIsolatedStorageFile = remoteApplication.GetIsolatedStore();
                    string sourceDeviceFilePath = (object)Path.DirectorySeparatorChar + "TestResults.trx";
                    string targetDesktopFilePath = @"C:\Share\LatestAPI\TestCode\Automated\AutomatedUnitTests\Bin\Debug\" + "TestResults.trx";
                    remoteIsolatedStorageFile.ReceiveFile(sourceDeviceFilePath, targetDesktopFilePath,true);
                }
                catch (Exception exception)
                {
                    Console.WriteLine("Exception \'" + exception.Message + "\' reading file from device.");
                }
    
                // Terminate application
                Console.WriteLine("Terminating the application...");
                remoteApplication.TerminateRunningInstances();
    
                Thread.Sleep(startStopWaitTime);
                Console.WriteLine("\nDone!");
    
                // Disconnect from the emulator
                Console.WriteLine("Disconnecting Device...");
                iDevice.Disconnect();
                Console.WriteLine("\nDone!");
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am very new at all this c# Windows Phone programming, so this is
All, I am very new to Windows Phone and really don't know where to
I am very new to windows mobile development and MSFT Sync Framework as a
i am very new to windows form UI development. now i am just doing
Very new to this, and I have no idea where to start. I want
Hi can I'm very new to windows forms. Here I want to maintain state
I am new in windows phone development. Now I am trying to study about
I'm very new at windows phone coding and I have what I think is
I'm quite new to C# and Windows Phone 7 for that sake, but none
I'm following one of the MSDN Introduction to Windows Phone Development labs, and have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.