Running an .exe on Android using Xamarin.Forms - c#

I'm trying to build an Android app using Xamarin.Forms based on a Windows Desktop Application that I programmed. In that program, I ran an .exe using Process.Start(), but it doesn't seem to work for Android. Google wasn't a great help, so now I'm wondering:
Is it even possible to run an .exe on Android? If so, whats the best way to do it?

Related

UWP sending message to Windows Service using NamedPipes

I'm trying to create a UWP app for our tools, one of its functionality is to manage tfs outside visual studio using tf.exe console commands and other things, i noticed that UWP is sandboxed and only has limited access outside its deployment folder so im planning to use a windows service to be the one who will be doing all the heavy work and using NamedPipes to communicate between UWP and Windows Service, been searching a bit already but until now im still not able to establish connection between this 2 app
I'm using console as a sample and starting it from UWP using FullTrustProcessLuncher
I uploaded a sample project in github
https://github.com/vgdagpin/UWP2WindowsService
Any help would be appreciated
I don't know much about named pipes so I can't tell if that is correct. But generally, UWP apps use APP services to communicate with desktop apps because the app service is native UWP.
I'd suggest you take a look at #Stefan Wick's Blog - UWP with Desktop Extension Part 1,2,3. You could search for them in your browser. These tutorials show the way how to package desktop apps with UWP apps using Windows Application Packaging Project and how to establish communication between the UWP app and the console app using App service which should be what exactly you want. After you launched the console app from the UWP app, you could let the console app call the windows service to do what you need.

Getting app to install emulator in a xamarin project without having the source code

I have looked through the Microsoft documentation but everything seems to want you to run everything with the development code. I used a bitbar tutorial to help start my C# xamarinui test framework. I have the emulators working I just want the apk and ios apps to install as the first test. I know how to drag and drop and put the app on the phone manually. I am looking for a way to get the app to install and launch through test code or by some operation. I do not have access to the source.
Only for the Android case, google for the apk, usually they are available on sites like apk pure etc. If the apk has executables for x86 inside you could install in on android simulator using just drag and drop.
For iOS this seems not possible as the installer has to be signed with appropriate profiles that only app developer has in his possession.

How to check for MSIX updates from WPF desktop app?

We are working on a WPF desktop app packaged using the Desktop Bridge MSIX wrapper, and we need it to detect and automatically apply updates when they are detected, restarting the software.
Research so far suggests it might be possible to use PackageManager from UWP to get hold of the package and check like that, or creating a new "Windows Runtime Component" project with an IBackgroundTask that listens to the windows.updateTask extension.
I don't know which one is the right one, what's going to be easiest or most reliable. Has anyone had to do this and knows what works?
Thanks

Unity Android app: How to run app in background?

I'm working on a Unity app that targets Android as platform. It's necessary that this app continues to run even when it does not have the focus in Android. My research so far brought me these possibilities:
Export the project as an Android gradle project and manimpulate the app's lifecycle in the UnityPlayerActivity, as described here
Use a (native Android) service, as often described, e.g. here
So far I have not succeeded in getting to run any of the options, so:
Is there any 'native' Unity way to achieve that the app runs in background? And are there conditions that my Unity app has to satisfy for this?

How to execute a Console App by passing parameters to it from a Windows Universal App in Visual Studio?

I have a console app written in c# visual studio and a Windows Universal App. The Universal App has data streaming in, I want to pass that data to the console app which plots it. I have tried various way of doing it including the "Process" but my project isn't able to find that library. Any suggestion would be appreciated.
Thanks
UWP Apps are sandboxed, and can't launch external applications.
If the console app is already running, you may be able to communicate with it (by using sockets for instance). But there's no way to launch it (unless it's another UWP app). That's for security reasons, thank to this you can download any app from the store and run them safely on your computer.

Categories

Resources