Showing debugging error in Xamarin Live Player but not in Emulator - visual-studio

Hi I am developing an app and it is working great in Emulator or in my android device through my USB cable but when I try to run my app using Xamarin Live Player it showing debugging errors as shown in image below
Please suggest me what to do as I really want to use this feature it's time-saving!

Related

Cannot view mobile app for tab development

I am trying to create a layout for our teams channel tab app but when running the app locally and inspecting it as a mobile device, teams throws an error that the browser is not supported.
Can anyone point me in the correct direction to develop my app for mobile use or how I can view the mobile app from the VS Code Teams Toolkit debugging tools?
I have tried to run the app in chrome and in MS Edge browsers and use the inspector device emulators in both but get the same error. I have also tried connecting via my local machine's IP /the FE port 53000 and also have had no luck there.
I used directly my mobile device (android) with Teams App installed for debugging teams custom tab (both phone and tablet worked fine). Connect your android device to your laptop/desktop (using USB), and then on the phone:
Enable USB debugging
Enable "Developer Preview" in Teams options
In the desktop chrome, navigate to chrome://inspect/devices and you should see your device there in the list available for inspection/debugging. You could probably also connect using local WIFI (?), but I have not tried that. Also never tried that with Edge, so not sure if it works.
https://learn.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/developer-tools#access-devtools-from-an-android-device
It's not possible to debug a Teams tab on iOS using Windows (or Mac). Using Dev Tools, we can debug Teams tab in desktop and Android clients.
Ref Document: https://learn.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/developer-tools

Deployment of app to device failed

I have Xamarin Live Player up and running.
When I use it with a newly created Xamarin Forms (Master Details) app, it works fine. I see the app on the device.
However, when I try to run my full-blown app, Visual Studio tells me "Deployment to device failed. Make sure that Xamarin Live Player is open and that the device is in the same network."
Since the new app runs fine, I guess something else is the problem.
I've already set the Android project properties to be same as the newly created app.
Just to make sure, I've made it so that my full-blown app requests all rights.
How could I debug more in detail what's going wrong?
Xamarin Live Player can't run all apps. As soon as you use reflection, embedded resources, a MVVM framework or a custom renderer in Xamarin.Forms it might simply just not run the App.
You can read about the limitations of Xamarin Live Player in the official documentation for it.
You will probably have a much better experience just running directly on the device without Live Player.

How to run DayDream Controller from Unity Editor?

I am developing a DayDream app and working with a Pixel XL and real DayDream Controller (on a MacBook Pro). I would really like to be able to test with the DayDream Controller when running the app from Unity Editor. Currently, I am forced to make a build for every little change and its killing me (slow).
I believe that I can do this by connecting my Pixel XL via USB cable to my Mac and then using adb to configure it. But, all attempts have failed so far.
I don't know about real Daydream Controller, but you can try using your phone as DayDream Controller Emulator.
As it said here, you should download emulator APK from here, install it and run on phone connected to WiFi.
In your Unity project find GvrControllerMain and change Emulator Connection Mode to Wi-Fi. Also find Assets/GoogleVR/Scripts/Controller/Internal/Emulator/EmulatorConfig.cs and change line to IP address displayed on daydream controller emulator app on phone.
// IP address of the phone, when connected to the PC via WiFi.
public static readonly string WIFI_SERVER_IP = "192.168.0.78";//"192.168.43.1";
Click "Play" in Unity, it should work.
In addition to diesersamat's answer, I would like to add two things:
You could run the controller emulator via USB by choosing "USB" from the Emulator Connection property of the GvrController script that is attached to the GvrControllerMain component. For the USB connection to be made, you have to make sure that %AndroidSDKHome%/platform-tools is added to your PATH variable.
You could use the real controller via Emulator: Open the Controller Emulator app --> open the Emulator's overflow menu --> select Switch to Real Controller. For this to work, the phone that runs the emulator has to be Daydream ready. I usually use the same phone that I use for Daydream VR as a controller emulator.
At Google I/O 2017, the Daydream team announced instant-preview which supports a "headless" controller-only mode.
The repo is on github: https://github.com/googlevr/gvr-instant-preview
The moment in the Daydream keynote where it is mentioned is here: https://youtu.be/tto90e-DfeM?t=26m45s
I had the same problem trying to get the emulator to work. The solution for me was to set up the player settings to android and click the VR supported tab with the daydream SDK selected in the VR SDKs dropdown BEFORE importing any daydream/google VR packages.
Took a lot of trial and error for me to figure that out. Hope that helps.

How to get device logs from Windows devices_

Im working at mobile games area as a QA Engineer. We develop mobile games for Android, iOs and Windows. And now we have a question: how to get logs from Windows devices(tablets,phones).
Is there any program like iTools(or iPhone Configuration Utility) for iOs or ddms for Android, but for Windows? Somebody know how can i get device logs from Win tablet for example?
We need to get logs from app launch(game).
Where you expect to see the Log output?
You can try to use Debug.WriteLine() method, for example :
System.Diagnostics.Debug.WriteLine("Print something");
to print some value to Visual Studio output window.
Have a look here Windows Phone: Log to console too.
Hope it helps :)

WP7:LivesmoothStreaming is not working with device

We're building a LIVE Smooth Streaming WP7 App.It works perfectly on the emulator, but not on device (shows up blank).
We are also trying smf player for streaming on WP7 but every time we are getting a blank screen on player. Its only work on Emulator.
Though there is no error being thrown.
How i can apply live streaming on my windows phone not on emulator.
looking for your responce
Does your streaming source contain multi-resolution tracks?
This kind of problem may appear when testing on a WP8 Emulator and then deploying the app to a WP7 device. Specially if the WP7 device is a first-generation device, like HTC HD7.
Basically this happens because the WP8 emulator and Wp8 devices do support multi-resolution, but old devices do not support multi-resolution tracks. You can read more here: http://blog.supaywasi.com/2013/01/smooth-streaming-multi-resolution-support-for-windows-phone/
So, basically you have to handle the ManifestReady event on your WP7 app and RestrictTracks to only tracks of the same resolution.
For WP8 devices you will not need to this.

Resources