xamarin.mobile

GetPositionAsync does not return on real device when indoors - Xamarin Android

依然范特西╮ 提交于 2020-01-04 15:29:06
问题 I am developing both and iOS and Android version that requires GPS using Xamarin. On iOS it's working fine, however now developing the Android version I have some issues with the GPS. It does not fetch the GPS but times out. However, on a emulator (using Genymotion) it fetches a coordinate right away. Note that I am using the Xamarin.Mobile (latest plugin 0.7.5). private async Task<HelpPosition> CreateGeolocator () { int accuracy = SettingsManager.Instance.GetSettings ().Accuracy; Geolocator

MvvmCross picturechoosen plugin and camera stuck issue

余生颓废 提交于 2019-12-25 02:07:14
问题 Hi I'm experiencing a strange problem with a MvvmCross picturechooser plugin for iOS development using Xamarin. I am developing a form where user can choose/take multiple photos and a video. My app allow users to add multiple photos either from the camera roll or to be captured directly from form. For capturing video, i use Xamarin.Mobile api. I'm using the MvvmCross picture choosen to do this. The problem occurs when 1 or 2 images / videos are taken with the camera. Once 1 or 2 images /

Monodroid: Where should I put configuration settings?

旧时模样 提交于 2019-12-18 04:09:29
问题 From Miguel de Icaza: We use a library profile that is better suited for mobile devices, so we removed features that are not necessary (like the entire System.Configuration stack, just like Silverlight does). After years of .NET development, I'm accustomed to storing configuration settings in web.config and app.config files. When using Mono for Android, where should I put my configuration settings? If it matters, I'd like to store different configuration settings for different build

MvvmCross vnext : monodroid use a VideoView inside a plugin

让人想犯罪 __ 提交于 2019-12-13 02:35:51
问题 I was playing with Xamarin Mobile api MediaPicker which uses MediaRecorder with monodroid to make a plugin to record a video. Android must preview the video inside a VideoView. This restriction applies to wp7 and ios too for privacy. So, I need to get the VideoView (or Rectangle in wp7) from my custom view and setPreviewDisplay to this VideoView in my plugin (or init MediaPicker with this VideoView). What is the best way to implement my portable plugin which requires UI element ? Thanks in

Gmail like navigation drawer (master page) in xamarin.forms

孤街醉人 提交于 2019-12-02 06:00:30
问题 I am currently using the master-detail page in xamarin.forms using MVVMlight and it renders based on the default behavior of os it renders perfectly what I wanted but in android master page starts below the navigation bar. I wanted master page to cover full height of screen just like ios do so is there any way or solution for it without custom renderer or is it necessary to write custom renderer for this 回答1: Use FormsAppCompatActivity instead of FormsApplicationActivity. define your own

Gmail like navigation drawer (master page) in xamarin.forms

旧城冷巷雨未停 提交于 2019-12-02 02:28:48
I am currently using the master-detail page in xamarin.forms using MVVMlight and it renders based on the default behavior of os it renders perfectly what I wanted but in android master page starts below the navigation bar. I wanted master page to cover full height of screen just like ios do so is there any way or solution for it without custom renderer or is it necessary to write custom renderer for this Use FormsAppCompatActivity instead of FormsApplicationActivity. define your own toolbar.axml toolbar.axml <?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.Toolbar xmlns

Camera access with Xamarin.Forms

耗尽温柔 提交于 2019-11-27 17:27:31
Is anyone able to give a short, self-contained example on how to access the camera with Xamarin.Forms 1.3.x? Simply calling the native camera application and retrieving the resulting picture would be great. Displaying a live view on the Xamarin.Forms page would be awesome! I already tried to use Xamarin.Mobile and Xamarin.Forms.Labs, but I couldn't get any solution to work on both platforms (focussing on Android and iOS for now). Most code snippets found on the web (including stackoverflow) are incomplete, e.g. not showing the implementation of an IMediaPicker object or where to anchor the

Camera access with Xamarin.Forms

∥☆過路亽.° 提交于 2019-11-26 18:59:24
问题 Is anyone able to give a short, self-contained example on how to access the camera with Xamarin.Forms 1.3.x? Simply calling the native camera application and retrieving the resulting picture would be great. Displaying a live view on the Xamarin.Forms page would be awesome! I already tried to use Xamarin.Mobile and Xamarin.Forms.Labs, but I couldn't get any solution to work on both platforms (focussing on Android and iOS for now). Most code snippets found on the web (including stackoverflow)