xamarin.android

Xamarin 4.0.13 Layout Renderer failed

亡梦爱人 提交于 2019-12-19 02:54:11
问题 I get the error "Connection to the layout renderer failed. This may be caused by a misconfiguration of Java. Please close and open the file again" after update to 4.0.13. This is error log: Error: Could not find or load main class Files\Android\android-sdk\tools\lib\ant-tasks.jar;C:\Program ERROR [2013-10-13 10:47:56Z]: Connection failed System.Exception: Java process failed to start at Xamarin.AndroidDesigner.JavaProcessConnection.DoConnect() ERROR [2013-10-13 10:47:58Z]: Could not update

Xamarin Studio Mac, Portable class library, Async and Android

浪子不回头ぞ 提交于 2019-12-18 18:38:05
问题 Edit: On the Alpha Channel Profile7, Profile49 and Profile78 seem to work. I'm working with the setup that was described here: Getting PCL, Mvvmcross, Nuget and Xamarin Studio to play "nice" on Mac . How do you make a PCL in Xamarin Studio with Async support work. I'm usually using Profile104 which is TargetFrameworkVersion v4.0 I tried the following combinations of the hree different v4.5 profiles Profile7, Profile49, Profile78 with the different versions of Xamarin Studio: Profile7 Profile

Is it possible to use a Portable Class Library that references System.Net in MonoDroid?

孤街醉人 提交于 2019-12-18 15:37:06
问题 Following from How can I build a targetting pack for Portable Class Libraries? and the advice in http://jpobst.blogspot.com/2012/04/mono-for-android-portable-libraries-in.html I've managed to build some monodroid example programs which use Portable Class Libraries. However, if any of my input PCLs reference the System.Net assembly, then monodroid fails to package my apk - because it complains about File Not Found for System.Net.dll. As I understand it (from http://docs.xamarin.com/android

Is it possible to use a Portable Class Library that references System.Net in MonoDroid?

大憨熊 提交于 2019-12-18 15:35:12
问题 Following from How can I build a targetting pack for Portable Class Libraries? and the advice in http://jpobst.blogspot.com/2012/04/mono-for-android-portable-libraries-in.html I've managed to build some monodroid example programs which use Portable Class Libraries. However, if any of my input PCLs reference the System.Net assembly, then monodroid fails to package my apk - because it complains about File Not Found for System.Net.dll. As I understand it (from http://docs.xamarin.com/android

Is it possible to use “PackageReference” in Xamarin.Android or Xamarin.iOS projects?

不想你离开。 提交于 2019-12-18 13:20:31
问题 By default, Xamarin.iOS and Xamarin.Android projects use a package.config file to manage Nuget dependencies. The Microsoft page about Package references (PackageReference) in project files says: By default, PackageReference is used for .NET Core projects, .NET Standard projects, and UWP projects targeting Windows 10 Build 15063 (Creators Update) and later. .NET full framework projects support PackageReference, but currently default to packages.config. To use PackageReference, migrate the

Shouldn´t GC run automatically in Xamarin.Android before running out of memory?

若如初见. 提交于 2019-12-18 12:36:44
问题 I spent almost a whole day trying to find out the reason of a memory leak in Android. There´s an activity that I open/close many many times (with a timer). After a while I was getting OutOfMemory errors: I saw the memory going up constantly in Xamarin Profiler every time the activity opened: I made sure there were no properties or event handlers that could be stuck in that activity. I even removed every image, buttons, etc, trying to detect what was causing the memory leak. Still the same...

Clear SingleChoice ListView selection

醉酒当歌 提交于 2019-12-18 11:51:53
问题 Is there a way to clear the selected item in a ListView? The ListView is defined like this: <ListView android:layout_width="fill_parent" android:layout_height="fill_parent" android:minHeight="50dp" android:id="@+id/example_list" android:layout_weight="2" android:choiceMode="singleChoice"/> And is filled using a custom Adapter. The selected item is highlighted using a Selector: <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item

Handling Global Exception Xamarin | Droid | iOS

戏子无情 提交于 2019-12-18 11:27:02
问题 We all know that mobile is compact platform where we have to look lots of things while building an application. It could be anything e.g. Memory Performance Resolutions Architecture Implementation etc. We never know when and what causes app crash a big ISSUE while playing with the app, It could happen anytime e.g. App Launch, Load Screen, API Call, Binding Data, Loading Images etc. And trust me sometime its really hard to find where and what cause an issue in app. I saw many post on forums,

How to communicate over local network between C# desktop application and mobile (android) device? [closed]

馋奶兔 提交于 2019-12-18 11:15:51
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I have a C# (.net 3.5) desktop application which prints out some numbers on the screen. Now I would like to extend this to a mobile device. (Android device in my case.) It has to display the same numbers as on the computer screen. The whole thing is just a proof of concept, it

How to include a BroadcastReceiver in a different project Xamarin project?

会有一股神秘感。 提交于 2019-12-18 09:52:57
问题 I'm writing a cross-platform solution in Xamarin, and am about to add a mother project for 3rd-partyu integration (e.g., other Android-parties that want to integrate with my app using intents on Android only). But I'd like to keep my cross-platform setup that I have now "clean" and simply add a new Android class library with the 3rd-party integration code. However, I cannot seem to get my BroadcastReceiver in my 3rd-party integration project to be included in my "main" android app project. I