xamarin.android

Android - Facebook SDK - how to tell if user changed password or removed app from app settings on Facebook

若如初见. 提交于 2019-12-22 13:07:32
问题 I was testing our app using test cases from Facebook's developers site. https://developers.facebook.com/docs/facebook-login/testing-your-login-flow Our app failed two following test cases: Someone removes your app from Facebook via app settings and revisits your app. Your app should detect this and prompt the person to log back in. Go to your app and tap on the "Log in with Facebook” button Tap OK to accept the read permissions (and OK again to accept write permissions where applicable) Go to

Android Resource Name From Xamarin Forms Button

拥有回忆 提交于 2019-12-22 12:54:23
问题 The Play Store now allows you to specify credentials for the Pre-launch Report emulator to use. In order for the emulators to know which text field to add the credentials to and which button to click to login, it asks for the text field and button's Resource Name. Do any of the Xamarin Form's properties translate into a Resource name? I tried looking in the /obj/ and /bin/ folders after building my app to see if one of the files had anything like this but I did not find anything. Possible

Xamarin Android - VpnService is blocking all apps

让人想犯罪 __ 提交于 2019-12-22 11:46:08
问题 An app I'm designing uses the VpnService, along with the VpnService.Builder, classes to generate a VPN in order to block traffic from specific apps. According to the documentation over at developer.android.com, all apps should be allowed through the VPN until Builder.AddAllowedApplication or Builder.AddDisallowedApplication is called. When my VPN service starts up, for some reason, all apps are being disallowed which is strange. As soon as I disconnect from the VPN, all apps become available

Handle Android push notifications actions in Xamarin.Forms

假如想象 提交于 2019-12-22 11:26:08
问题 So I just implemented FCM in my Xamarin.Forms Android app with this guide. Everything works pretty well, the notifications arrive, they play a sound, have an icon etc. Then I wanted to add an action to my notification, it has to open a certain page in my app. And thats were my problem comes in, Xamarin.Forms puts all Android content in a single Activity. Which means that opening a certain page causes the whole OnCreate of the MainActivity to load again (And the LoadApplication as well). My

Uploading files using a webview in Xamarin Android App

大憨熊 提交于 2019-12-22 10:49:36
问题 I'm working on a simple xamarin android app, that allows to display a responsive web site, and receive push notifications. Webview seems to have some limitations on Xamarin, so I used the following workaround (https://github.com/GabLeRoux/xamarin-android-webview-upload) based on the following comments (https://forums.xamarin.com/discussion/3259/cannot-override-webviewclient-class-for-file-upload-support) in order to get html upload button work as expected. Everything goes well, until I

how to handle click event in Xamarin google map component for ios

随声附和 提交于 2019-12-22 10:49:09
问题 I am using xamarin googel map component to develop google map application in iOS. When user touches the map I want to get the location of the map that user touches. any idea. thanks in advance. 回答1: MapView has a tapped event, as well as multiple Touches* events mapView.Tapped += delegate(object sender, GMSCoordEventArgs e) { Console.WriteLine("tapped at " + e.Coordinate.Latitude + "," + e.Coordinate.Longitude); }; 回答2: GoogleMap : Marker click event with and without ClusterManager For

How can I bind an HTML string to a webview in an Android app?

与世无争的帅哥 提交于 2019-12-22 09:10:17
问题 I currently have a android:TextView which is bound to a string which may or may not contain HTML. <TextView android:text="Medium Text" android:textAppearance="?android:attr/textAppearanceMedium" android:layout_width="fill_parent" android:layout_height="wrap_content" android:autoLink="all" android:padding="10dp" style="@style/ListItemText" local:MvxBind="Text Answer" /> Somehow I need to be able to display this text with the html rendered. So I thought I would switch the TextView to a WebView

SplashScreen using PNG image leads to Android.Views.InflateException followed by OutOfMemory

会有一股神秘感。 提交于 2019-12-22 08:56:13
问题 I watched Google IO 2011 conference, read almost every post about OutOfMemory Exception and InflateException, no luck, I cannot find any answer that solve my problem. How can I properly clear memory from a layout containing a background image? I feel like if the InflateException followed by OutOfMemory are related because that background image is not cleared properly. So I'm getting : Android.Views.InflateException: Binary XML file line #24: Error inflating class followed by : Java.Lang

Scrollview listener is not working in Xamarin for Android?

為{幸葍}努か 提交于 2019-12-22 08:24:31
问题 I am using for C# in Xamarin to create an android app. I have created an extension of the scrollview. Here is my code for that public class EndlessScroll : ScrollView { public EndlessScroll (Context context) : base (context) { } public EndlessScroll(Context context, IAttributeSet attrs) : base(context, attrs) { } public EndlessScroll(Context context, IAttributeSet attrs, int defStyle) : base(context, attrs, defStyle) { } public interface OnScrollViewListener { void onScrollChanged

Slow startup of xamarin app

怎甘沉沦 提交于 2019-12-22 08:15:43
问题 We are developing a cross platform app on a PCL, but for the time being we are only using android devices for testing. Our concern is that its taking about 6 to 8 seconds (depending on which device we test it) to start the app, which is very slow. After placing a few breakpoints we saw that the timing is consumed pretty evenly. We did notice this particular parts took longer: 1s before reaching onCreate() on MainActivity (there's a splash screen before which only has one image and a