xamarin.android

Xamarin Android Binding to Java Type which inherits Generic Type

為{幸葍}努か 提交于 2019-12-25 06:28:46
问题 I'm looking for a workaround for the following problem. Given a class hierarchy in Java: public interface Bar<T> { getValue<T>(); } public abstract class BarImpl<T> implements Bar<T> { } public class Foo extends BarImpl<Double> { @override public Double getValue() { // .. } } Xamarin.Android generates wrappers as follows: // Now in C# land public interface Bar { // Xamarin.Android omits T Value { get; } } public partial abstract class BarImpl : Bar { // Xamarin.Android omits abstract T Value

Using Android speech API in Windows

谁都会走 提交于 2019-12-25 06:26:43
问题 I am using Visual Studio 2010 to experiment with Monodroid in C#. I'm aware that Android applications can be run on Windows using the emulator. Is it possible to use the Android API in a Windows console application? I would like to use the Android speech recognizer without actually running it in an emulator on Windows. 回答1: No-- Android API is (partly) based on firmware designed to run on a particular hardware platform-- The emulator emulates the platform at the hardware level, which is why

How to set GraphicsDevice.GraphicsProfile

风格不统一 提交于 2019-12-25 05:28:52
问题 In a classic XNA application this value is set through the application properties. By default this value is set to HiDef , at least on the machine I am currently using. But it has to be set to Reach to run. My problem is that I did not find any way to effectively change this value using monogame. The property window is obviously not the same as with XNA and I did not find any config values. Changing the value in the code, in the Game constructor or the LoadContent method does not solve my

What is the proper way to install Mono 4.4.2 on Android x86_64?

老子叫甜甜 提交于 2019-12-25 05:12:08
问题 After some experiments I compiled Mono 4.4.2 for Android x86_64 (Marshmallow) using Android NDK r13b. I had to do some tricks, but after all I had these folders in my build directory: bin etc include lib share The bin folder looks like : The lib folder is: The lib folder contains only unmanaged libs, e.g. the 'mono' subfolder doesn't contain managed BCL for each version of the framework, I couldn't figure out how to tell to 'configure' script to do this. So I've compiled the same version of

How to implement google play services using android sdk 17 on xamarin

荒凉一梦 提交于 2019-12-25 05:00:46
问题 I have been trying to implement Google Play services using the steps in https://github.com/xamarin/monodroid-samples/tree/master/MapsAndLocationDemo_v2 and https://github.com/xamarin/monodroid-samples/tree/master/GooglePlayServices android update project -p "path to project" -t 4 worked ant debug works, updated project.properties, add Api key However on build in Xamarin studio 4.0.3 on Mac get this.using Xamarin android 4.6. what package is missing. any advice appreciated. am referencing Mono

How can I detect the Android runtime (Dalvik or ART) in Xamarin

回眸只為那壹抹淺笑 提交于 2019-12-25 04:26:42
问题 Similar question to this one : How can I detect the Android runtime (Dalvik or ART)? How to do it in Xamarin.Android (MonoDroid), since I dont have java reflection here? Since ART is not working on xamarin yet, I would like to detect it and show user some friendly message instead on app crash at least. Thanks. 回答1: Seems to work on the emulator, don't know what happens with actual device until it gets some charge: [Activity (Label = "RuntimeActivity", MainLauncher = true)] public class

Cannot install mvvmcross download cache pluguin with xamarin forms

余生颓废 提交于 2019-12-25 04:24:53
问题 Mvvmcross version 4.4.0 xamarin forms need Xamanarin.android.support.v4/v7.x version 23.0.0 Download Cachè plugin need Xamarin.android.support.compat version 24.2.1 My app is using xamarin forms so i cant remove it, but i also need to use MvxListView to show an image from url with local:MvxBind="ImageUrl myimage" so i need download cache plugin, but i cant install it. Is there any other IMvxImageHelper to use instead of MvvmCross-DownloadCache plugin ? or any other solution ? *IMPORTANT NOTE-

Visual Studio 2015 unable to find Android API Level

荒凉一梦 提交于 2019-12-25 04:24:29
问题 When I'm trying to create Xamarin Forms project, VS gives me the following error for Android project : Object reference not set to an instance of an object. The output is: [I:sdk]: Key HKCU\SOFTWARE\Novell\Mono for Android\AndroidSdkDirectory found: Path contains adb.exe in \platform-tools (C:\Program Files (x86)\Android\android-sdk). [I:sdk]: Key HKCU\SOFTWARE\Novell\Mono for Android\AndroidNdkDirectory found: Path contains ndk-stack.exe in . (C:\ProgramData\Microsoft\AndroidNDK\android-ndk

How to debug a referenced assembly in Xamarin.Android project

孤街醉人 提交于 2019-12-25 04:13:12
问题 I am testing out Xamarin.Android via Visual Studio 2010. My Xamarin.Android VS2010 Solution contains two projects: The Android project and a project (I'll call it MyProject for this post) that does all the business logic for the demo app that I'm making - The Android project references the MyProject project/assembly). When I run the appliation, I am receiving an exception error in MyProject and, so, I would like to step into MyProject and debug the problem. However, when I debug, VS2010 is

GenericMotion - Action Down not firing

纵饮孤独 提交于 2019-12-25 04:11:39
问题 I want to trace the whole movement of a finger that started by touching my ImageView. I found that GenericMotion event should be the correct one to use. What am I supposed to do (or to avoid) to get Actions Down, Move and Up in GenericMotion event? I get only HoverEnter, HoverMove and HoverExit actions, even if I start with touching the center of my ImageView. Android: OnTouch, MotionEvent.ACTION_MOVE is not recognized? Here I learned that without handling Down action I can't get the