xamarin.android

Run Sqlite Code when received notification Xamarin Forms

不想你离开。 提交于 2020-12-14 23:32:47
问题 I am trying to run SQLite code while app received notification from firebase in Xamarin Forms App, First I Install this plugin Plugin.FirebasePushNotification and also add this permission: <uses-permission android:name="android.permission.INTERNET" /> then add this class to mu android project [Application] public class MainApplication : Application { public MainApplication(IntPtr handle, JniHandleOwnership transer) : base(handle, transer) { } public override void OnCreate() { base.OnCreate();

How to add custom view in Center of ToolbarItem from Renderer

让人想犯罪 __ 提交于 2020-12-13 04:09:13
问题 I am adding custom view in Center of ToolbarItem from NavigationPageRenderer for android. But it doesn't seems to be working. See my code below public class CustomNavigationPageRenderer : NavigationPageRenderer { public override void OnViewAdded(Android.Views.View child) { base.OnViewAdded(child); var lastPageElement?.Navigation?.NavigationStack?.Last().ToString(); if (lastPage == "ParentDashboardPage") { LayoutInflater li = LayoutInflater.From(Context); Android.Views.View customView = li

xamarin -keystore and apk have sha1 is different

梦想的初衷 提交于 2020-12-11 00:50:15
问题 I have old Xamarin android project. I made small changes and changed target to android x. The customer sent me a keystore file with password and alias. Now I need to sign and publish the package in google play. But I am getting the error your fingerprint does not match: -need "Sha1Need" -current "Sha1Other" I check my key file with command: keytool -list -v -keystore "my.keystore" -alias key -storepass mypass -keypass mypass I get result value "Sha1Need". Than I checking my apk with command:

xamarin xzing barcode scanner re-scan

為{幸葍}努か 提交于 2020-12-06 15:53:29
问题 I'm using the zxing barcode scanner in xamarin android forms and I can get it to scan one barcode with no issues, but I want to be able to discard the scan they have taken and have the ability to take a another scan. I'm also using MVVM. Here is my xaml... <Grid VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"></ColumnDefinition> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="*"></RowDefinition>

xamarin xzing barcode scanner re-scan

懵懂的女人 提交于 2020-12-06 15:51:00
问题 I'm using the zxing barcode scanner in xamarin android forms and I can get it to scan one barcode with no issues, but I want to be able to discard the scan they have taken and have the ability to take a another scan. I'm also using MVVM. Here is my xaml... <Grid VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"></ColumnDefinition> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="*"></RowDefinition>

xamarin xzing barcode scanner re-scan

核能气质少年 提交于 2020-12-06 15:50:37
问题 I'm using the zxing barcode scanner in xamarin android forms and I can get it to scan one barcode with no issues, but I want to be able to discard the scan they have taken and have the ability to take a another scan. I'm also using MVVM. Here is my xaml... <Grid VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"></ColumnDefinition> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="*"></RowDefinition>

AppCenter Xamarin.Android builds and installs successfully on devices but doesn't run

三世轮回 提交于 2020-12-04 03:23:25
问题 I'm developing a Xamarin.Forms App (early stages) and have just set up AppCenter to build and distribute it. AppCenter takes the Xamarin.Android project, builds it successfully, signs with the same debug keys and makes the .apk available for download. I've tested in two different devices and the app installs successfully but won't run (opens and closes straightaway), no errors are shown. If I deploy the app from Visual Studio it works fine. Xamarin.Forms 3.4.0.1008975 Mono.Android v4.0.30319

AppCenter Xamarin.Android builds and installs successfully on devices but doesn't run

半城伤御伤魂 提交于 2020-12-04 03:18:35
问题 I'm developing a Xamarin.Forms App (early stages) and have just set up AppCenter to build and distribute it. AppCenter takes the Xamarin.Android project, builds it successfully, signs with the same debug keys and makes the .apk available for download. I've tested in two different devices and the app installs successfully but won't run (opens and closes straightaway), no errors are shown. If I deploy the app from Visual Studio it works fine. Xamarin.Forms 3.4.0.1008975 Mono.Android v4.0.30319

Xamarin.Forms how open default email client on device?

試著忘記壹切 提交于 2020-11-29 08:31:11
问题 In Xamarin.Forms if you want to open the device's default browser by tapping a Label with a link, it's simple as this: private void WebUrl_TapGestureRecognizer_Tapped(object sender, EventArgs e) { var label = sender as Label; string url = "http://" + label.Text; Device.OpenUri(new Uri(url)); } Is there a similarly simple way to open the device's default email client with an open NewMessage with email address? private void EmailClient_TapGestureRecognizer_Tapped(object sender, EventArgs e) {

Xamarin.Forms how open default email client on device?

孤人 提交于 2020-11-29 08:30:23
问题 In Xamarin.Forms if you want to open the device's default browser by tapping a Label with a link, it's simple as this: private void WebUrl_TapGestureRecognizer_Tapped(object sender, EventArgs e) { var label = sender as Label; string url = "http://" + label.Text; Device.OpenUri(new Uri(url)); } Is there a similarly simple way to open the device's default email client with an open NewMessage with email address? private void EmailClient_TapGestureRecognizer_Tapped(object sender, EventArgs e) {