xamarin.android

Unable to deploy or run emulators on Xamarin on Visual Studio 2015

大城市里の小女人 提交于 2019-12-13 06:27:49
问题 I am running into a somewhat odd problem. I googled a bit, and I found a few people with similar problems but none of the solutions suggested worked for me. Here is one though I did not check the log this guy is presenting. This is another seemingly similar issue. I am following this Xamarin Quick Start guide for Android. The solution builds just fine. I managed to follow all the steps. However, once I try to debug, by clicking the giant green Play button in Visual Studio, it tells me it

Push Notification from Web data to Mobile App using FCM

余生颓废 提交于 2019-12-13 06:27:28
问题 So I have already set up the project and even tried testing it by adding sample notification from Cloud Messaging and receive that notification in my Android Emulator. However, when there's changes from the web, I need that to push to the Mobile. So I tried this code in the web: public void PushNotificationToFCM() { try { var applicationID = "AIzaSyDaWwl.........."; var senderId = "487...."; string deviceId = "1:487565223284:android:a3f0953e5fbdd790"; WebRequest tRequest = WebRequest.Create(

Do the Android and iOS versions of OpenTK have the same API?

你说的曾经没有我的故事 提交于 2019-12-13 06:19:26
问题 I'm trying to get into mobile game development with Xamarin; I am using OpenTK for rendering. My plan is the following: 1. Make a shared library that is actually the game (and has all openTK code). 2. Make a a runnable project for iOS and Android that handles platform specific stuff (e.g. popping up alerts) and uses my shared library. Is this possible with openTK? Does it have exactly the same API on iOS and on Android, just the linked library is different? If yes, how to avoid code

Host-unknown exception in XMPP (Xamarin.Android)

折月煮酒 提交于 2019-12-13 06:07:31
问题 I continue with a connection to server. I have succesfully added XMPP library to my Xamarin.Android project, but when I try to make a simple connection: using (var cl = new XmppClient(hostname,username,password)) { cl.Connect(); Console.WriteLine("Contacts on " + cl.Jid.Node + "'s contact-list:"); foreach (var item in cl.GetRoster()) Console.WriteLine(" - " + item.Jid); } this case occure: 09-25 12:37:14.713 I/mono-stdout( 2821): _xmpp-client._tcp.jabbim.cz 2454 IN SRV 20 0 5222 lb2-hap

Monodroid raises error

北城以北 提交于 2019-12-13 05:15:00
问题 I am trying run simple code which is generated by default when you create new project in Visual Studio. Emulator raises exception. It is evalution version of Mono for Android. Why that error happens? Thanks. Here code using System; using Android.App; using Android.Content; using Android.Runtime; using Android.Views; using Android.Widget; using Android.OS; namespace MonoAndroidApplication1 { [Activity(Label = "MonoAndroidApplication1", MainLauncher = true, Icon = "@drawable/icon")] public

How to access PreparingDeviceSettingEventArgs.GraphicsDeviceInformation.GraphicsProfile?

为君一笑 提交于 2019-12-13 04:47:15
问题 I would like to change the GraphicsProfile to Reach . As told to me in another answer the solution would be to use: graphics.PreparingDeviceSettings += (s, e) => { e.GraphicsDeviceInformation.GraphicsProfile = GraphicsProfile.Reach; }; But my e.GraphicsDeviceInformation does not contain the GraphicsProfile property. I don't understand how two implementations of the same class are present in MonoGame.Microsoft.Xna.Framework and MonoGame.Microsoft.Xna.Framework.Graphics. The one in ...Framework

Error Inflating Mvx.MvxImageView

℡╲_俬逩灬. 提交于 2019-12-13 04:32:50
问题 I am having a problem with inflating MvxImageView inside a custom control. from the research I did I found several suspects Should I add if so to what? (i saw this in regards to the android map view inflate error. Am I creating the User control all wrong? I saw a recommendation to use SetContentView() instead of inflate because it passes the indlate request through the mvvmcross mechanisem but there is no such method in a custom view. Here is the custom control layout: <?xml version="1.0"

MonoDroid Activity Independent Task Queue?

左心房为你撑大大i 提交于 2019-12-13 04:29:10
问题 I have a Monodroid application that does many webrequests. I am making requests from activities. Because of this I have the need for a queue to process my requests outside of my activities. This is to avoid multiple requests being made at the same time. Because I am making my requests on another thread using ThreadPool.QueueUserWorkItem it seems like if a user opens an activity, starts a request then goes back opens another activity and starts another request before the first request has

Error local variable type mismatch, in Xamarin.Android

不羁的心 提交于 2019-12-13 04:27:26
问题 I am trying to build a solution in Xamarin with an android library that I imported. The library come from a manufacturer called bbpos. I have the following error message : Error com.android.dx.cf.code.SimException: local variable type mismatch: attempt to set or access a value of type java.lang.String using a local variable of type byte[]. This is symptomatic of .class transformation tools that ignore local variable information. I think it comes from the library but i dont know from where

ListView adapter with many checkboxes

只愿长相守 提交于 2019-12-13 04:18:23
问题 I'm having some minor problems with my listview. Every item has some information and a checkbox. This shows up fine, I can select and deselect checkboxes etc etc. However I discovered some strange behaviour. Lets say I click the first checkbox at the first row. If the ListView is small so you don't need to scroll down this works fine. But if the ListView is large so I need to scroll down to see all the items, some random item at the bottom also becomes clicked. Same behaviour the other way