xamarin.android

Android Webview cannot render the pdf sometimes and shows blank/white page instead

本秂侑毒 提交于 2020-01-23 07:13:44
问题 Open the pdf in the webview using google docs Open the same pdf or different pdf again and again. Sometimes it will show the blank/white page in the android untill we refresh the webpage again for 1 or 2 times. I have made the sample on the pdf. The link for the project is shown below: https://github.com/gopalawasthi123/PdfWebView Hope this will help you Better. public void SetWebView(WebView webview,string externalUrl){ webview.Tag = "webview"; webview.Settings.JavaScriptEnabled = true;

Hide softkeyboard in Xamarin

给你一囗甜甜゛ 提交于 2020-01-23 06:55:47
问题 How do I hide the softkeyboard for showing up when focusing an Entry in Xamarin.forms portable forms project? I assume we have to write platform specific renderers for that, but the following does not work: I create my own entry subclass: public class MyExtendedEntry : Entry { } and then in the xamarin.android project my renderer: public class MyExtendedEntryRenderer : EntryRenderer { protected override void OnElementChanged(ElementChangedEventArgs<Entry> e) { base.OnElementChanged(e); if

deploy fail Error: Mono.AndroidTools.InstallFailedException: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]

别说谁变了你拦得住时间么 提交于 2020-01-23 03:42:26
问题 My application has no error, but when I try to debug the application then deploy fail with no error and give me this output: :Deployment failed 1>Mono.AndroidTools.InstallFailedException: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE] 1> at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName) 1> at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass90_0.b__0(Task 1 t) 1> at System.Threading.Tasks.ContinuationTaskFromResultTask 1.InnerInvoke() 1> at

Async/Await in portable class library targeting Windows Store, iOS and Droid

浪尽此生 提交于 2020-01-22 15:35:07
问题 Developping an MvvmCross application targeting Android and iOS (Xamarin/Mono) and Windows Store (because it's so easy/fast to debug compared to iOS/Android). The Core of the app is PCL based. Is it possible to use Async/Await in the Core library? Xamarin mono supports Async/Await, and Windows Store supports it. However, when selecting only Net4.5, Windows Store, Mono Android and MonoTouch as the PCL targets, SL4 and WP7.5 get automatically selected and Async/Await is not availlable anymore.

How to set Project Linking in VS2019

五迷三道 提交于 2020-01-22 02:14:11
问题 I basically got the same error as this post from 3 years ago: Xamarin Android Build Failed "Invalid value for outputAssembly" but I don't understand the solution and was looking for help. After not changing any code in my master branch, today in VS2019 and Xamarin.Forms 4.4.0.991477, I went to build my app in android, when I got this error obj\Debug\...\Appname.Droid.dll is an invalid value for the "OutputAssembly" parameter of the "Csc" task. Multiple items cannot be passed into a parameter

How Do I Make a Swipe Animation From Left To Right Transition Between Activities In Monodroid?

佐手、 提交于 2020-01-21 18:15:12
问题 I'm developing using Monodroid and want to be able to swipe left or right and load new activities as I do so. I also want to have an animation that shows the next activity slide into the screen while the other slides out. I've tried OverridePendingTransition using XML resource files as well as implementing animations. None of this is working for me, however. Has anyone had success with this? Could you place your code here and not a link to some blog or website? Putting this in OnCreate in all

Xamarin Forms - Processing a Notification Click

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-21 11:57:40
问题 I have a Xamarin Forms application which raises an Android Notification but I'm having trouble creating a simple page that will interact with the user when they click the Notification. I understand that in Xamarin.Forms there is only 1 activity and so the pending Intent must be to that mainActivity I have set the LaunchMode to SingleTop and and Intent Filter to match the Intent name used in the pendingIntent Now when I click the Notification I do get routed to the OnResume of the MainActivity

error: package com.google.firebase.messaging does not exist

最后都变了- 提交于 2020-01-19 17:22:09
问题 I'm trying to build my project, but when I do, I get this error: "error: package com.google.firebase.messaging does not exist", along with other 4 errors of the same kind. package md5f64326b4609986d97810cf2ced03c9ce; public class MyFirebaseMessagingService extends com.google.firebase.messaging.FirebaseMessagingService implements mono.android.IGCUserPeer { /** @hide */ public static final String __md_methods; static { __md_methods = "n_onMessageReceived(Lcom/google/firebase/messaging

Transition animation for Android using Xamarin Forms

大兔子大兔子 提交于 2020-01-17 08:04:31
问题 Is it possible to implement the transition animation below for Android using Xamarin Forms? What I have is this how to for Android. I tried to implement it with custom renderers but got stuck when I needed to configure the Intent. Also, I read Forms apps run on a single Intent. 回答1: I have developed a plugin to make this type of transitions in xamarin forms (for ios and android). The key is to use a custom NavigationPage. In iOS, you need to implement IUINavigationControllerDelegate and

Transition animation for Android using Xamarin Forms

≡放荡痞女 提交于 2020-01-17 08:04:18
问题 Is it possible to implement the transition animation below for Android using Xamarin Forms? What I have is this how to for Android. I tried to implement it with custom renderers but got stuck when I needed to configure the Intent. Also, I read Forms apps run on a single Intent. 回答1: I have developed a plugin to make this type of transitions in xamarin forms (for ios and android). The key is to use a custom NavigationPage. In iOS, you need to implement IUINavigationControllerDelegate and