xamarin.android

How can i send data by USB port in Android C#?

感情迁移 提交于 2020-01-07 02:04:32
问题 I am developed a app in Visual Studio with mono for android. C# So. How can i send data by USB port in Android. C#? The type serialPort1.Write("1"); 回答1: Long story short - you can not do it the way you intended. USB is not a serial port that you can just write to and data comes out on the other side. Serial ports can be emulated over USB, but Android does not support that. Android typically can act as device that offers different profiles: disk, camera and proprietary debug (if enabled on

Xamarin Android - After user updates app, it crashes

可紊 提交于 2020-01-06 20:35:51
问题 So Im getting reports that after some users updated the app it wouldn't load. They could fix this easily by uninstalling the app and installing it again from the app store. Firstly I would like to know if there's a way to prevent this? And Whats the logical way to explain whats happening? I have Googled similar terms and come across apps like Facebook and Instagram which also inform the user to uninstall and reinstall that app. Im unable to replicate this and no ones reporting the crashes to

Mono for Android: Spinner within a listview

一世执手 提交于 2020-01-06 19:39:09
问题 I have a listview which is populated from a webservice using an ArrayAdapter. The webservice provides me with all the data I need. Some are just plain textviews yet other alternate between EditText and spinners. I show them easily, also filling up the values where they're due in EditText fields. The problem comes with filling up the value of the Spinner. Can I define an adapter within an adapter? Also my data comes from a webservice as an XML passed as a string. My Spinner code so far inside

Common Header with click events of Header from all Activities in Xamarin android

萝らか妹 提交于 2020-01-06 18:26:11
问题 I am developing a xamarin android application, where I used to call a Header activity in all Activities. My code is as Fallows My Main.axml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/container" android:layout_width="fill_parent" android:layout_height="fill_parent"> <!-- Header aligned to top --> <include layout="@layout/Header" android:id="@+id/includeheader" android:layout_alignParentTop="true" /> <!-- Content below header and above footer -->

Common Header with click events of Header from all Activities in Xamarin android

时光怂恿深爱的人放手 提交于 2020-01-06 18:26:07
问题 I am developing a xamarin android application, where I used to call a Header activity in all Activities. My code is as Fallows My Main.axml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/container" android:layout_width="fill_parent" android:layout_height="fill_parent"> <!-- Header aligned to top --> <include layout="@layout/Header" android:id="@+id/includeheader" android:layout_alignParentTop="true" /> <!-- Content below header and above footer -->

Xamarin how to assign a string to edit text ?

被刻印的时光 ゝ 提交于 2020-01-06 17:09:48
问题 I am new to mobile development. I am working on android in xamarin using visual studio 2015 . I am getting a null reference exception when i am assigning a string to an edit text . Bellow is the code void List_ItemClick(object sender, AdapterView.ItemClickEventArgs e) { click_Employee = e.Position + 1; ICursor c = dbHelper.getSingleEntry(click_Employee); c.MoveToFirst(); name = c.GetString(c.GetColumnIndex(dbHelper.EMPLOYEE_NAME)); email = c.GetString(c.GetColumnIndex(dbHelper.EMPLOYEE_EMAIL)

Xamarin Forms Delay in Navigation

蓝咒 提交于 2020-01-06 15:16:51
问题 I’m working on a Xamarin Forms Project and stuck with an issue, where I want to open some popups. As Forms does not have in build Popups so, I have different XAML pages and I’m loading them inside my MainPage.XAML and changing the visibility when required. **Popup_1.XAML** <?xml version="1.0" encoding="utf-8" ?> <StackLayout xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x=http://schemas.microsoft.com/winfx/2009/xaml x:Class="ABC.Views.Popup_1"> <StackLayout > <Label Text="{Binding

Xamarin.Android dependency netstandard13 package?

纵饮孤独 提交于 2020-01-06 13:28:43
问题 According to the docs on the .NET Platform Standard, it seems like it should be possible for Xamarin apps to consume NuGet packages targetin netstandard13. However, when I try this I get the following error while trying to add the NuGet: Unable to find a version of 'System.Collections.Concurrent' that is compatible with 'npgsql 3.9.0 constraint: System.Collections.Concurrent (>= 4.0.12-rc2-24027)'. I'm trying to do this on VS2015 update 2 + RC2 tooling. Is this not possible, is there another

How to make an EditText to be focused but not clickable?(Xamarin.Android)

一曲冷凌霜 提交于 2020-01-06 08:36:12
问题 I have 3 EditText : <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:focusedByDefault="false" android:minWidth="25px" android:minHeight="25px" android:id="@+id/editText1" /> <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:focusedByDefault="true" android:clickable="false" android:id="@+id/editText2" /> <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:focusedByDefault=

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

独自空忆成欢 提交于 2020-01-06 07:53:08
问题 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