Overwrite A device administrator App xamarin - c#

Good morning,
I Need some help to solve an issue that I found on my android application.
I have created an android application that has device administrator permission using a PC A
now I have moved to a different PC, B and when I open the same project on my visual studio and generate the apk from the new PC, if I try to reinstall it by opening the apk on the android device where there is already install the application it fails.(application not installed)
If I open the same project on my old pc, I can generate the apk and reinstall on it (application installed).
I have checked and all option on android are the same.same sdk version same min sdk etc.
Do you know if the are some "key" to copy from my old pc?
the only solution that I have is format the android device and reinstall the application because when the android application is device administrator I can't uninstall it.
thanks and regards,
andrea

Related

xamarin android apk installs on emulator but not on device

I have an existing android application which is written in Xamarin Android. when I Adhoc distribute the APK I am able to install the APK on an emulator. However when I try to install the apk on a device I get the following error
Starts installing and then Application cannot be installed. USB debugging enabled and allow application from unknown sources is enabled.
My project properties look like this
Package signing is blank i.e, default
When I do build acrhive and save the apk. I can take the apk and run on an emulator on a different machine however when i try to install the apk on a device it fails with error 'Application not installed'
I am really new to this guys, any help is greatly appreciated. I bet i am missing something simple.
You should sign your APK. Unsigned APK cannot be installed on the real device. Check here how to sign Xamarin Android app.
I figured it out guys. You have to go into play store settings and click play protect and settings. Disable the slider and the app installs.

How to generate an IPA for IOS project

I build a Xamarin Forms application and I am using VMware to run my ios project. I generated an APK for android successfully, but I don't know how to generate IPA for the IOS project. Any idea?
iOS executable file format is ipa, not APK.
Here is documentation about building iOS ipa using xamarin.
You need MacOs to compile Mac based binary files :
Use a Mac as your main development machine and run a Windows virtual machine with Visual Studio installed. using VM software such as Parallels or VMWare .
Use a Mac just as a build host. In this scenario it would be connected to the same network as a Windows machine with the necessary tools installed.
Using below steps you can generate IPA for ios:
Connect your project with Mac using VMWare.
Select Release mode instead of Debug:
Right click on your iOS Project and go to properties.
Then go to iOS Bundle Signing and select appropriate Provisional
Profile and Certificate.
Then move to next option i.e.iOS IPA Options and Mark checkbox true
name with Build iTunes Package Archive(IPA).
Add Package name as per your Certificate.
Now Just clean and Build your Project for iPhone mode
.
You can find your IPA in your release/iPhone folder.

VB.NET published windows app doesn't run

TOOLS:
Windows 10 Pro
Visual Studio 2017 Pro
I created a VB.NET windows app GUI on my desktop computer,
published it,
copied the publish\ directory to a new target laptop,
logged into laptop and ran publish > setup.exe
it asked me to "install" and I said YES,
and app started, but hung, never displaying the GUI.
My app has two .DLL's of mine, but they are not in the publish\ directory.
I made a HELLO WORLD on original desktop, published, and it ran ok at laptop.
All of your dlls need to be distributed with your application.
Try manually move your dlls in the same folder of .exe file on target machine: if it works simply rebuild your setup incuding these dlls as dependencies.
The problem is solved. The target laptop needed installation of drivers from a vendor of some 3rd party middleware used in the app.
So, the packaging software wasn't smart enough to tell me the problem, and its error correction response was to just end without any error message.

Cannot install UWP app from hockey app

I'm doing an app using Xamarin.Forms and I've already deployed the Android and iOS version to HockeyApp but I have a problem with the UWP (Windows 10 version)...
These are the steps I do:
Right click on my UWP project
Select "Store" option
Select "Create app packages"
A window pops and I select "No" and click "Next"
Then I only select the ARM configuration
Click "Next"
My package has been created and I drag n drop the .appxbundle file to hockeyapp.
Once the package is uploaded, I start my Windows 10 Mobile emulator and try to install it...
I download it from HockeyApp and when I install it, nothing happens...
Do you have any idea where this problem comes from?
I'm using Visual Studio 2015.
Windows 10 mobile emulator not supported ARM, only x86/x64. You need the real device for test ARM package.
I was experiencing exactly the same, but I've managed to fix it. Here's what I've done:
I associated the app with Store in Visual Studio
I installed Windows 10 Mobile Anniversary update (OS Build: 10.0.14383.953), since my app was targeting Anniversary Update.
I installed the certificate which was included in the .ZIP file next to the .appxbudnle
Then I run the .appxbundle and clicked install. The installer exited without any message, just like before, but after a minute or so the app appeared in the installed apps on my Microsoft Lumia 650.

Xamarin Deployment Fails Without Any Error

So I was playing with Xamarin for 2 weeks. I was able to build and run the project on my Android device.
Today I tried the release mode and built an APK and signed it. Everything was fine until that. After I built and installed the APK to my Android device, deployment started to fail. It builds successfully but it can't deploy it on my Android device. It's worth noting that I chose the debug mode.
The funny thing is, it deploys to a virtual device but not to my physical device. I tried cleaning and rebuilding the project and it did not fix the problem.
Uninstall any previously deployed .apk from your phone , that could potentially be signed with a different keystore and then try to build again

Categories

Resources