xamarin.android

intent-filter in manifest file to enable the open button on install

我是研究僧i 提交于 2019-12-24 12:35:13
问题 I am fairly new to Android Development and I have seen examples where this is put into the Manifest.xml file: <intent-filter> <action android:name="android.intent.action.MAIN" />` </intent-filter> I thought this was what I needed so that after my Application Installs the open button would be enabled. However, even though Ihave this in my Manifest the button is stlll disabled. So, can anyone tell me ehat I am doing wrong? Thanks for any help. ** UPDATE... Here is my full Manifest.xml file: <

1>JAVAC : warning : unknown enum constant Scope.LIBRARY_GROUP in xamarin.android after adding xamari.support.v4 and xamarin.support.v7.AppC

爱⌒轻易说出口 提交于 2019-12-24 12:20:02
问题 while practicing splash Screen I add xamarin.support.v4 package and xamarin.android.v7.appcompat every thin is fine I am just getting warning 1>JAVAC : warning : unknown enum constant Scope.LIBRARY_GROUP and my code is working well: my code of splash activity is: enter code here using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Views; using Android.Widget; using

How to control child view model from parent view model in xamarin mvvmCross?

爱⌒轻易说出口 提交于 2019-12-24 12:14:42
问题 I have a parent view model. Let's call it ParentViewModel . In ParentView.axml I have this MvxListView code: <Mvx.MvxListView android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" android:elevation="0dp" android:padding="5dp" local:MvxItemTemplate="@layout/childlistitem" local:MvxBind="ItemsSource Items" /> So it is obvious that I have ChildListItemViewModel as well... Now each Item has some parameters inside such as "Id, name,...." besides that my each

Camera Using custom Camera Preview Renderer is not clear

别来无恙 提交于 2019-12-24 11:56:09
问题 I am using the following link to display the camera preview using Custom renderers https://developer.xamarin.com/guides/xamarin-forms/application-fundamentals/custom-renderer/view/ I was able to bring up the camera preview. But the preview is not at all clear. There is no Auto focus as well. Screenshot for reference How can I make the camera preview clearer, because I wish to use the same later on for OCR. Thanks, 回答1: I think you already figured this out but I'm going to post the solution

add a soap header in C#

不问归期 提交于 2019-12-24 11:46:05
问题 I am building an Xamarin.forms App for android where we are consuming third party webservices. I have created the proxy and I can see the methods exposed by the service. But I cannot access the methods of the service as I have to add header to my SOAP request which takes the key. Code snippet: created client for the proxy ThirdPartAuthService.AuthService clnt = new ThirdPartAuthService.AuthService(); clnt.getenquiry(XML); I do not see any option to add header so that authentication happens.

Does MonoDroid support java.lang.reflect package methods?

只愿长相守 提交于 2019-12-24 11:28:45
问题 I need to use methods from java.lang.reflect in a MonoDroid solution, but I can't find this namespace anywhere. Is there a way to access these? 回答1: The java.lang.reflect package is not bound in Mono for Android. This bug has some more details about that. If you really need to work around that limitation, you could write that part of your application in Java and then call it through JNI. Xamarin has a good guide on using JNI up here. 来源: https://stackoverflow.com/questions/11372981/does

How to maintain gridview scrollbar position when data is updated

末鹿安然 提交于 2019-12-24 11:26:33
问题 I have the following subclass for update design rows of my gridview: What is the simplest way when loading data in gridview to keep the scrollbar position at the current position? public class TextAdapter : BaseAdapter { Context context; List<string> Sources; string res; public TextAdapter(Context c, List<string> s) { context = c; Sources = s; } public override int Count { get { return Sources.Count; } } public override Java.Lang.Object GetItem(int position) { return null; } public override

Using webView.AddJavascriptInterface with MonoDroid

谁都会走 提交于 2019-12-24 10:47:55
问题 I'm using MonoDroid, and would like to make C# code callable from my WebView. I'm doing this (C#): protected override void OnCreate(Bundle bundle) { [...] LinearLayout layout = FindViewById<LinearLayout>(Resource.Id.MyLayout); var webView = new WebView(this); webView.SetWebChromeClient(new WebChromeClient()); webView.Settings.JavaScriptEnabled = true; webView.AddJavascriptInterface(new JSAccesibleObject(), "cSharpObject"); webView.LoadUrl("file:///android_asset/test.html"); layout.AddView

I can not build the generated UWP project by Zebble

非 Y 不嫁゛ 提交于 2019-12-24 10:26:07
问题 I created a sample project using Zebble Extension for Visual Studio. The related projects created successfully but unfortunately when I tried to compile the UWP project, the build process failed with the following error: Validation error. error C00CE169: App manifest validation error: The app manifest must be valid as per schema: Line 10, Column 13, Reason: '$solutionname$' violates pattern constraint of '[-.A-Za-z0-9]+'. The attribute 'Name' with value '$solutionname$' failed to parse. How

Xamarin Android, Xamarin Forms orientation change

为君一笑 提交于 2019-12-24 10:26:01
问题 Xamarin Android app that use the Xamarin Forms UI framework. I detect the screen orientation and want to only allow portrait and landscape for a specific Page but portrait only for all other pages. I tried to call RequestOrientation but that force the orientation to stay the same and doesn't fire my orientation change notification again. 回答1: Have a static property in your App.Xaml.cs public static bool IsPortraitOnly { get; set; } Set it to false in all pages and to true in the page you want