xamarin.android

Large VIDEO File Upload using Httpclient does not work on Xamarin.Android

六眼飞鱼酱① 提交于 2020-01-06 07:52:52
问题 Any Help or insight would be much appreciated. What I have managed to obtain is that the issue is related to HTTPS as I am able to receive a 200 back when posting to an HTTP endpoint, similar to the following thread here Currently having a difficult time trying to resolve the following issue: I'm using the AndroidClientHandler HttpClient implementation as well as the NativeTLS 1.2+ for the SSL/TLS Implementation When I record a Video on my app that is longer than 1 min, or larger than 20MB I

Large VIDEO File Upload using Httpclient does not work on Xamarin.Android

左心房为你撑大大i 提交于 2020-01-06 07:52:45
问题 Any Help or insight would be much appreciated. What I have managed to obtain is that the issue is related to HTTPS as I am able to receive a 200 back when posting to an HTTP endpoint, similar to the following thread here Currently having a difficult time trying to resolve the following issue: I'm using the AndroidClientHandler HttpClient implementation as well as the NativeTLS 1.2+ for the SSL/TLS Implementation When I record a Video on my app that is longer than 1 min, or larger than 20MB I

Xamarin ADAL AcquireTokenAsync not returning result! OnActivityResult is hit

冷暖自知 提交于 2020-01-06 07:22:14
问题 I have a xamarin.android app and am using ADAL to authenticate. I have an AuthService that calls var authResultAsync = await authContext.AcquireTokenAsync(...); This call never returns an AuthenticationResult object but rather I just hit my OnActivityResult and I am never able to access my token?? protected override void OnActivityResult(int requestCode, Result resultCode, Intent data) { base.OnActivityResult(requestCode, resultCode, data); AuthenticationContinuationHelper

customizing Tab text color, stacked color, and swipe functionality in Xamarin Android?

六眼飞鱼酱① 提交于 2020-01-06 07:07:33
问题 I have three tabs in xamarin android, I have used tab Host to create those tabs. Now, I want to change the text color in those tabs, and I want to use the swipe effect just like the Tabbed Page in Xamarin Forms. How can I achieve this? Please do tell me the library also ,if required? 回答1: I want to change the text color in those tabs, and I want to use the swipe effect just like the Tabbed Page in Xamarin Forms You could use TabLayout, Usage like this : <?xml version="1.0" encoding="utf-8"?>

Xamarin.Android.Support.Design causes crash on launch

泄露秘密 提交于 2020-01-06 07:05:51
问题 Start with a fresh Android project in Visual Studio Professional 15.6.6, on Windows. Install Xamarin.Android.Support.Design from NuGet. Try to run on an Android 8 phone (mine is a BLU Vivo XL3). It probably won't run. It may (or may not) complain as follows: "Android.Content.Res.Resources+NotFoundException: File res/drawable-xhdpi-v4/abc_ab_share_pack_mtrl_alpha9.png from xml type layout resource ID #0x7f020000 I also tried it on Visual Studio Professional 15.7.1. Same problem. Any work

How can i Load a Xdocument online who needs a username and a password

末鹿安然 提交于 2020-01-06 06:52:40
问题 Is it possible to Load an XML File who has a password and a username like so: XDocument xmlDoc = XDocument.load("htt://myApp/MyTestFile", "Username", "passwordtest"); Please help, I am hanging on that last point for my app. 回答1: How can i Load a Xdocument online who needs a username and a password You could set the Credentials property of the XmlUrlResolver, as the document said : Sets credentials used to authenticate web requests. Then use XmlReader and XmlReaderSettings for the XDocument .

Can't write file on SD card in Android app

柔情痞子 提交于 2020-01-06 06:52:15
问题 I am unable to write file on physical SD card. I want to ask user for permission to write to whole SD card. User grants the permission. Now I want to create file in specific directory on SD card (directory already exists). When I try to open output stream I get exception: Java.Lang.SecurityException: Permission Denial: writing com.android.externalstorage.ExternalStorageProvider uri content://com.android.externalstorage.documents/tree/0FFF170E%3AMyDir/MyFile.MyExt from pid=3563, uid=10082

How to change password masking character in Xamarin forms - Entry

拟墨画扇 提交于 2020-01-06 06:38:27
问题 I've currently faced a rather simple issue which eventually put me to a dead end. I am building an application that uses Xamarin Forms and want to change a masking character when user enters password from a bullet to an asterisk. For entering password I'm using Entry control in Portable lib project in my content page (in VS2017 professional): <Entry x:Name="Entry_Password" Placeholder="Password" IsPassword="True" /> I know that I probably should create a custom Renderer in Android project for

Show a pdf into a webview from a link inside that Website Xamarin android

痴心易碎 提交于 2020-01-06 06:36:31
问题 In my app I have implemented a webview to show a website link into that webview. Now that website has a button that contains a pdf file link. If I click on that button on website it shows a pdf file on the web. But if I try to open it into the webview in my app, nothing happens. I am very new in Xamarin android. I could not find any suitable way to that. Here is my code to show the website into the webview. I want to relod the pdf when click on link from the website. But the result is same as

Show a pdf into a webview from a link inside that Website Xamarin android

青春壹個敷衍的年華 提交于 2020-01-06 06:36:22
问题 In my app I have implemented a webview to show a website link into that webview. Now that website has a button that contains a pdf file link. If I click on that button on website it shows a pdf file on the web. But if I try to open it into the webview in my app, nothing happens. I am very new in Xamarin android. I could not find any suitable way to that. Here is my code to show the website into the webview. I want to relod the pdf when click on link from the website. But the result is same as