I have an app that runs on an android 8.1 device using pre AndroidX Xamarin, Java V8 (C:\Program Files\Eclipse Foundation\jdk-8.0.302.8-hotspot)
I now need it run on devices with Android versions 8.1 to 12 so I upgraded all the NuGet packages, set the Target Framework to 12, updated the Java Version to 17 as required.
(C:\Program Files\Microsoft\jdk-17.0.4.101-hotspot)
Visual Studio 2019
Xamarin Forms 5.0.0.2515 (latest)
All latest required AndroidX packages.
Target Framework Android 12
Minimum Android Version 8.1
Target Android Version 12
All seemed fine but the OnBackButtonPressed event no longer fires on the Android 8.1 device.
It did before the upgrade of all the other components with no code changes by myself.
The OnBackButtonPressed event does fire on an Android 9 and an Android 10 device within the same app (same .apk installed on all three devices).
Does anyone have any idea why this would be or which bit that I updated may have broken it?
This not firing ->>>
protected override bool OnBackButtonPressed()
{
base.OnBackButtonPressed();
myViewModel.DoCancel();
return true;
}
Related
I am currently testing my app with VS 2019. Works fine with android devices lower than android 12 but crashes on devices => android 12.I updated android target framework to Android 12. Application that is being deployed on Android 12 crashes on the splash screen without throwing any errors, exception or activating any debugger in App.xaml.cs, SplashActivity.cs or any other file that supposed to be called. I tried all the possible changes in android manifest, mainActivity and splashActivity but it didn't work. Versions 6.4.0 of MVVMCross.Forms and 4.8.0.1821 of Xamarin.forms are both used in my application. I uploaded the app to the Play Store for internal testing, and while it functions on all devices, Android 12 devices experience splashing crashes.
I'm using VS 2019, Android SDK 31 and Android JDK 11.
I am getting a similar crash in of one my other app as well. Can you please guide me ? I checked but I did not find anything on this.
After upgrading to latest XCode and Xamarin, when building in Visual Studio, I can no longer target any iOS devices older than 11. What happened?
If you want to build against iOS 10 frameworks, you would need to use Xcode 8 by setting the Xamarin's Apple SDK to point to a copy of Xcode 8.
Now via the Deployment Target within the Info.plist you can control what is the minimum iOS version that you want your app to run against.
The Deployment Target setting is used to select the minimum required version of the operating system on which your application will run. This is set in your Project's Info.plist file. You should pick the minimum version that has all the APIs that you need to run your application.
For a Forms-based Xamarin.iOS you do not want to set the min. to less then iOS 8
Xamarin.Forms applications can be written for the following operating systems:
iOS 8 or higher
Android 4.0.3 (API 15) or higher (more details)
Windows 10 Universal Windows Platform (more details)
Windows 8.1 / Windows Phone 8.1 WinRT (more details)
Windows Phone 8 Silverlight (DEPRECATED)
I installed Xamarin 5 months ago and it worked good, but now Im trying to open Xamarin in my macbook and i see the interface has been changed to MonoDevelop and just .Net is enabled (Android and IOS is disabled). I attached snapshot
How i can repair it and use xamarin full abilities and potential?
The requirements for the Visual Studio Tools for Apache Cordova specify that SDK for the API Level 19 must be installed. Do that means that apps created with it will only run on android KitKat devices? Any way to target older devices?
Please review the following article for reference:
https://msdn.microsoft.com/en-us/library/dn757054.aspx
Cordova targets a single SDK (currently 19 though a upcoming release will move this to 21). However this is just the SDK used to build - by default Cordova apps can be deployed on devices running API level 10 or higher (2.3.3). Unless you're creating a custom plugin that will use an API only available on Android 5.0, you won't be affected by the SDK used.
The Android tab on the config.xml designer allows you to set alternate values for what goes in "AndroidManifest.xml" file, but the build itself will always use SDK 19.
http://developer.android.com/guide/topics/manifest/uses-sdk-element.html
Android 4.4.x (API level 19) is required by Visual Studio to build app or create app package targeting Android platform not for running the app. You can create Cordova app targeting device running Android released before KitKat.
I am new to Xamarin Studio. I am trying to create an app for Android Wear using Xamarin studio. I have installed the Xamarin Studio 5.5 (upto date version) and Xamarin.Android version 4.18 (Trial Edition). I've gone through the below link before I start to set up my environment.
http://blog.xamarin.com/tips-for-your-first-android-wear-app/
As said in the blog, I have installed the latest Xamarin Studio, in which I couldn't find the template for creating a new Android Wear application in either my XamarinStudio or Visual Studio.
I have tried to download the sample given in the below link:
http://developer.xamarin.com/samples/android/Android%20Wear/
On building the samples, it gives me the dll missing errors.
for ex: I have downloaded the Eliza Chat sample from the above sample, and on running the sample I have been faced some dll missing issues. After downloading them manually from internet and refer them, I am facing the below error
"Error 1 No resource found that matches the given name: attr 'android:windowSwipeToDismiss'. C:\Users\XXX\AppData\Local\Xamarin\Android.Wearable\1.0.0\embedded.\res\values\values.xml 128 ElizaChat"
Note: I have installed the Android Wear Emulator with the help of the SDK Manager. And I have installed the Android L (API 20, L Preview) and Android 4.4 W(API20) through SDK Manager. And I have installed Android Support Repository and Android Support Library.
Do I need to install any thing else to work with Android Wear application. Any help would be appreciable.
Thanks,
Karuppasamy P