xamarin.android

Android App can't be installed/updated for some users (Xamarin)

本小妞迷上赌 提交于 2019-12-22 06:24:07
问题 Our company is developing Android app in Xamarin.Forms (3.5.0) framework. Since now all users were able to update application from Google Play store without problems. After new update some of them got Google Play error "Can't install app". Like this one https://i.ytimg.com/vi/XOAgJz2vQu4/hqdefault.jpg but without error code. This problem occurs only for some users (about 80% users already updated to newest version). They already tried deleting Google Play cache and other solutions to this

Android App can't be installed/updated for some users (Xamarin)

耗尽温柔 提交于 2019-12-22 06:23:04
问题 Our company is developing Android app in Xamarin.Forms (3.5.0) framework. Since now all users were able to update application from Google Play store without problems. After new update some of them got Google Play error "Can't install app". Like this one https://i.ytimg.com/vi/XOAgJz2vQu4/hqdefault.jpg but without error code. This problem occurs only for some users (about 80% users already updated to newest version). They already tried deleting Google Play cache and other solutions to this

Android FragmentTab host and Fragments inside Fragments

走远了吗. 提交于 2019-12-22 05:31:56
问题 I have an app with hierarchy like this: FragmentTabHost (Main Activity) - Fragment (tab 1 content - splitter view) - Fragment (lhs, list) - Framment (rhs, content view) - Fragment (tab 2 content) - Fragment (tab 2 content) All fragment views are being inflated from resources. When the app starts everything appears and looks fine. When I switch from the first tab to another tab and back again I get inflate exceptions trying to recreate tab 1's views. Digging a little deeper, this is what's

Android FragmentTab host and Fragments inside Fragments

流过昼夜 提交于 2019-12-22 05:31:52
问题 I have an app with hierarchy like this: FragmentTabHost (Main Activity) - Fragment (tab 1 content - splitter view) - Fragment (lhs, list) - Framment (rhs, content view) - Fragment (tab 2 content) - Fragment (tab 2 content) All fragment views are being inflated from resources. When the app starts everything appears and looks fine. When I switch from the first tab to another tab and back again I get inflate exceptions trying to recreate tab 1's views. Digging a little deeper, this is what's

Xamarin Android how to get Java class name for passing into ComponentName

爱⌒轻易说出口 提交于 2019-12-22 04:49:09
问题 I need the Java class's name in the Constructor for Android.Content.ComponentName as Xamarin doesn't have an overloaded constructor that takes typeof(ClrType) like it does for some other things. 回答1: I was able to solve it by doing this: Java.Lang.Class.FromType(typeof(MyClass)).Name 来源: https://stackoverflow.com/questions/37413519/xamarin-android-how-to-get-java-class-name-for-passing-into-componentname

Error MSB4185: “System.Globalization.CultureInfo” has not been enabled for execution

回眸只為那壹抹淺笑 提交于 2019-12-22 04:19:14
问题 When trying to build in MonoDevelop with Mono for Android I get this error. According to the debug it is not located in my code so im left clueless. Any idea? Error MSB4185: The function "CurrentUICulture" on type "System.Globalization.CultureInfo" has not been enabled for execution. (MSB4185) 回答1: I own MSBuild (and this code). It's an error originating in the file microsoft.csharp.targets, as the error message probably says. In there is a property function: $([System.Globalization

Xamarin.Android Architecture Components: Not getting callbacks for lifecycle events

我的未来我决定 提交于 2019-12-22 03:53:08
问题 I'm trying to use the architecture components package for detecting when the application enters background or foreground state. The problem is that the callbacks are not being invoked. In the sample code below, the methods onApplicationForegrounded and onApplicationBackgrounded are not invoked: namespace POC.Droid { [Application] public class MyApp : Application, ILifecycleObserver { static readonly string TAG = "MyApp"; public MyApp(IntPtr handle, Android.Runtime.JniHandleOwnership ownerShip

Mono for Android - How It works? [closed]

余生长醉 提交于 2019-12-22 03:49:04
问题 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 5 years ago . I found that Xamarin apps run in Mono runtinme on Android, and things get passed to Dalvik. But what I can not understant is how is it possible that app is running in Mono, but normal app are executed in Dalvik. What is so different in Mono app that it runs in Mono and not Dalvik.

Where can i add google-services.json in xamarin app

江枫思渺然 提交于 2019-12-22 03:42:42
问题 Hi we are developing Xamarin application where we want monitor how many peoples install application from our referral id. Im find this document https://developers.google.com/analytics/devguides/collection/android/v4/ where it says "Copy the google-services.json file you just downloaded into the app/ or mobile/ directory of your Android Studio project.". I have visual studio (2013) project where these folders are missing of course. Question is, where i add the google-services.json file in

MonoTouch/MonoDroid - Translate Raw touch coordinates to screen coordinates

我们两清 提交于 2019-12-21 23:19:16
问题 What's the proper way to translate raw touch points to screen coordinates in MonoTouch or MonoDroid? My code works well on the emulator but the points are inaccurate on a device. Here's what I have so far: private void Initialize() { this.Touch += TouchView_Touch; } void TouchView_Touch(object sender, View.TouchEventArgs e) { e.ReturnValue = true; touchPoints.Add(e.Event.RawX); touchPoints.Add(e.Event.RawY); this.Invalidate(); } protected override void OnDraw(Android.Graphics.Canvas canvas) {