As in Android we have Broadcast Receiver which helps us the receive the Boot_Completed broadcast and restart our service.
I am wandering if Windows Phone 8 SDK has something similar for background agent or scheduler task, if we restart a windows phone.
Thanks
Windows Phone 8 background agents run automatically when you restart Windows. If the work of background agent was enableded (OS settings), then after you restart a Windows background agent starts automatically, it does not require action from you.
Related
I have a Nokia Lumia 1020 that I need to register as a testing device for my Windows Phone Apps. It is running Lumia Cyan thus Windows 8.1. I have Windows Phone SDK 8.1 and 8.0 installed on my machine and when I try to use the Windows Phone Developer Registration (8.1) interface or the normal one (Windows Phone Developer Registration unde Windows Phone SDK 8.0 i keep getting the same error. Unable to connect to a Phone. Make sure that the Windows Phone IP over USB Transport Service is running. I try to restart the service, switch ports, switch from Wi-Fi to 3G network on my phone. Nothing works. I have ensured that the Phone is showing as a device under File Explorer and when I connect the phone to my computer it does launch the Windows Phone app for desktop well. I am not sure what to do at this point and it's getting frustrating. I have tried to reinstall the SDKs and still nothing. I do have a developer account and developer account details intact. Please help... someone.... anyone :(
I finally figured it out. I went to device manager and found under Universal Serial Bus Devices and found device drivers of my phone on all the ports where I had connected the USB cable. I then right-clicked on one that showed that needed an update. I clicked on update device driver software where it scanned for updates and found out that the driver was up to date then I realized that it was not enabled. I enabled it and it was able to recognize the phone. However I had to keep restarting the service since the software kept going offline as well as switching from 3G to Wi-Fi. And it finally worked :)
Background agent for my windows phone app is running even if my solution and mobile app both stop running but background agent is running How It will be possible?
I am running visual studio 2013 with windows 8.1 pro , I have enabled hyper-v from bios and enable it from program and features also. Firstly when I run my project it gives message like this
after that when I clicked retry it gives this deployment error
Need help in solving this.
Try running visual studio 2013 as an administrator this sometimes helps fix the permission issue running the emulator the first time.
After checking in that textbox where you have to add your lap to the Hyper-V Administrators, just try restarting the machine.
Have a look over here
You should try out these too
1.Run VS 2012 as administrator.
2.Open Hyper-V Manager and check the Windows Phone Emulator Internal Switch from Virtual Switch Manager. Remove the emulator switch and start a new instance of the emulator.
3.If your host computer has a WLAN connection, you should check whether it is running fine or not.
4.If your host computer is in a dedicated network, you can do a wired tethering and create a peer to peer network with another computer. Enable unrestricted internet in one of the systems, share the connection with the other computer, the emulator running in that, will also get the shared internet.
I want to see how far I can take my Surface 2 for developing in Visual Studio 2013. Please note that this is a Surface 2 running WinRT - not full version.
Here is my setup
Surface 2 on desktop mode with RDP.
Windows 2012 running HyperV with a Windows 8.1 VM.
On the Windows 8.1 VM I have installed VS 2013. Naturally, HyperV gets installed as well.
My problems
My first thought was that I could use the Emulator but it complains that it failed to start because some of the Hyper-V components are not running. After some research this seems to be the result of Hyper-V in Hyper-V.
Then I tried to use an alternate approach. To share my Windows Phone through USB. I inserted my "Nokia Lumia 1020" in USB port of Surface 2. I could then see it in my desktop. Also, when I started RDP application I could see "Nokia Lumia 1020" under Local resources->Other supported Plug and Play devices. I checked it for sharing. I connected again but the phone was not visible on the guest operating system.
Anyone else done this? Either know how to circumvent the Hyper-V in Hyper-V or share the phone for development (through RDP).
You can't use hyper-v without windows 8 pro, I'm sorry... Try nokia's device rdp (http://developer.nokia.com/resources/remote-device-access) ...
I am using Windows phone 8 sdk and Visual studio 2012
deployment failed because no Windows phone 8 was detected.
Make sure a phone is connected and power is on
Tell me how can I resolve that error.
It would seem that you need to make sure that the OS thinks that the device is connected.
I've had this a few times and addressed it with the following:
- unplug and then reconnect the device
- Try a different cable
- You may also see this if you have a very low battery charge
To confirm that the OS thinks the phone is connected, make sure you can see it in Windows Explorer or the Windows Phone [app for desktop] application.
I had the same problem - the phone just stopped connecting. Turn it off completely (hold on power button and then slide down) and turn on again - Windows will notice it and you will see it in Windows Explorer under "Devices and drivers" section.