I am developing a survey designer application in .NET C# which exports the surveys to a file which is sent to android devices. The android device will parse the survey file and show it in the survey mobile app.
Now, I want the user to be able to preview in the .NET application, so they can have an idea of how the survey will look in the android device by displaying the application in an android emulator. Furthermore, I want the emulator to be shown inside a windows form or panel.
My question is: is it possible to show the android emulator inside a winform application and is it possible to communicate with it? In other words, is there any APIs or extensions for Android Emulator in .NET framework?
I have searched the internet for the topic but most results talk about communicating with the emulator via TCP port and launching the application by creating a new process in the .NET app.
It is important to me to be able to display the emulator inside my application since I do not want to deploy multiple applications to my clients.
You can access a Hyper-V instance programmatically using its WMI provider. The Hyper-V instance can run without visible window to the user, and you can send mouse clicks & keyboard input, then take a screenshot.
But, it seems to be infinitely easier and lighter to just replicate the layout logic from the Android app in your C# app. If you went with the Android Emulator route, you're hosting a minimum 512 MB process and all the CPU & GPU usage involved.
Related
I want to make a program that transmits strings from an Android device, to the web or directly to my PC.
Do note that the android and windows device are connected to the same wifi if this makes a difference. The problem here is that I do not know how to send strings from one device to another. I am thinking of doing it in a txt file and then reading it with the program on my PC (Which I have already tested), but I don't know how to transmit it.
Yes, you can share a data from cross platform devices. There are many methods to do it. I would personally recommend using Web APIs using asp.net core, the consume that Web API in your android application, it can be in Xamarin, and for Desktop you can used HttpClient package to consume either in WPF or Winform.
I have my home App which has few buttons serving different features and one of the feature is “X” and this feature “X” is developed by another vendor (in Xcode) now when I tap the X Button in my App. I should be able to open the App that is developed by the other vendor.
How do I implement this scenario?
Fyi: user should be downloading only one App but should be able to access both the Apps
I have a Windows form desktop application developed using c#. I want to make use of the live tile feature available in WinRT apps (especially for Windows 10). The data in the live tile is to be fetched using WMI queries (Win32_LogicalDisk).
How do I accomplish this? I don't want to rewrite the entire app. Live tiles should update on the background and on clicking the tile, my desktop app exe needs to be invoked. Is it possible to fetch WMI data and invoke exe from Windows Store apps?
I tried using Brokered Windows Runtime components as given in http://blogs.msdn.com/b/dmx/archive/2014/04/30/how-to-trigger-a-desktop-process-from-windows-store-apps-the-easy-way-using-the-brand-new-visual-studio-templates.aspx . But could not get it to work as I get a 'TypeLoadException'.
Thanks in advance.
Metro app can't run a desktop app. However, they can commumicate using wcf. So, you can create tiny windows service that will open wcf host. Then you create windows store app with your live tile(s). When windows service recieves a wcf call, it starts the desktop application.
There is also devexpress' solution that is capable of adding live tiles for desktop apps, however it is not free: https://www.devexpress.com/Products/NET/Controls/WinForms/Live-Tile-Manager/
WinRT blocks network loopback so wcf won't work. You can disable this for testing but I suspect that won't satisfy you. Read more here (and search for WinRT network loopback to find articles on this topic).
https://msdn.microsoft.com/en-us/library/windows/apps/Hh780593.aspx
I purchased MonoTouch Professional but while debugging with the iPhone it gives an error: “No
Valid iPhone code signing keys found in keychain”.
The store page of Xamarin https://store.xamarin.com/ for the Professional version shows two important things however:
Deploy to your devices
Publish to app stores
I connected my device but I don’t know how to actually get my app running on the iPhone. Basically I have two questions:
How to configure the iPhone to debug with?
How to deploy app to the iPhone with MonoTouch (Professional License) version?
A third, seperate question is if it is necessary to enroll in the iOS Developer program from
Apple. If so, which is suitable for us because I don’t want to put my app on to the App
Store.
My app is only available to our clients for their internal use.
In fact, you should start from their iPhone tutorial,
http://docs.xamarin.com/ios/getting_started/Hello_iPhone#Deploying_to_the_Device
where deploying to device is mentioned. Also you need to learn from Apple resources, such as
http://www.intertech.com/Blog/post/Xcode-4-Deploying-Your-App-to-Your-Own-iPhone-iPad-iPod-touch.aspx
You have to enroll you to the iOS Developer Programm otherwise you cant deploy to devices. If you dont like to Publish to the App Store you also can deploy Apps with the TestFlight SDK. It´s a free SDK which allows you to Deploy Apps without the App Store.
Actually this is the tutorial you need to follow. There are lots of hidden buttons you wown't find by yourself
http://docs.xamarin.com/guides/ios/getting_started/device_provisioning/
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.