xamarin.android

Setup Web Authenticator in Xamarin Essentials for local Android development

纵然是瞬间 提交于 2021-02-11 05:55:08
问题 I am trying to setup development environment to integrate Google sign-in on Android using Web Authenticator in Xamarin Essentials. In the Web API project, same AuthController is included described in this article. It is running on https://localhost:44311/api To call the API from emulator, API url is referenced as https://10.0.2.2:43411/api as described in this article. Now, I am able to call the API url using await WebAuthenticator.AuthenticateAsync(apiUrl, callbackUrl) But, when API tries to

Xamarin forms Shell Custom icon for selected tab

末鹿安然 提交于 2021-02-10 20:36:33
问题 I'm playing with the COOL xamarin shell, but I didn't found a way to change icon of the selected tab. <TabBar Route="sections"> <Tab Title="home"> <Tab.Icon> <FontImageSource FontFamily="{StaticResource AppIcons}" Glyph="{x:Static framework:Icons.HomePage}" /> </Tab.Icon> <ShellContent ContentTemplate="{DataTemplate home:HomePage}" Route="home" /> </Tab> The goal is to use Icons.HomePageFilled instead of Icons.HomePage for this tab only when it's selected. Same logic should apply to other

Did Xamarin forms supports Bing maps insted of Google map native control?

十年热恋 提交于 2021-02-10 17:53:51
问题 We have an requirement for showing Bing maps view in Xamarin forms app for Android and iOS both. We have done the integration of Google maps for both platforms with the help of https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/map#Using_Xaml and https://github.com/amay077/Xamarin.Forms.GoogleMaps. I neither found any documentation that Bing maps supported on Android and iOS nor any thing says it did not support. So How can I get documentation to integrate Bing maps in my

Why tap gesture recognizer wont work in absolute layout?

南笙酒味 提交于 2021-02-10 16:29:00
问题 Developing a project on Android with Xamarin.Forms.I am trying to create a page with six image buttons to navigate the user through the app. Vertically half page, 3 on right side 3 on the left side. No scroll no other things. When I use absolute layout, only images in the bottom of the screen is working. Other imagebuttons didn't work. If I put only 2 images they work. They were in a grid. I deleted grid to try and nothing is changed. <AbsoluteLayout BackgroundColor="Black" AbsoluteLayout

Transparent page in Xamarin.Forms

允我心安 提交于 2021-02-10 16:20:35
问题 I need to be able to create a transparent Xamarin.Forms page for Android. How can I do this true a page renderer? Now it has a default background color. [assembly: ExportRenderer(typeof(MyPage), typeof(ClearBackgroundPageRenderer))] namespace MyApp.Droid { public class ClearBackgroundPageRenderer : PageRenderer { protected override void OnElementChanged(ElementChangedEventArgs<Page> e) { base.OnElementChanged(e); SetBackgroundColor(Color.Transparent.ToAndroid()); } } } 回答1: If you just want

Xamarin Tab Bar top(border) line

一世执手 提交于 2021-02-10 15:54:51
问题 How can I realize the orange line above Tab bar on Android and iOS? 回答1: To achieve this effect, you need to create a custom TabbedPageRenderer. On Android: public class EnhancedTabbedPageRenderer : TabbedPageRenderer { private BottomNavigationView _bottomNavigationView; public EnhancedTabbedPageRenderer(Context context) : base(context) { } protected override void OnElementChanged(ElementChangedEventArgs<TabbedPage> e) { base.OnElementChanged(e); if (e.NewElement != null) {

Xamarin Android: Get ALL processes located in memory

心已入冬 提交于 2021-02-10 13:37:20
问题 Is there a way to read out all processes, not only the running processes. If I understood Android correctly, only one process is running at a time, and every other process is frozen (background processes ignored) 回答1: You can get all of androids currently running app processes by using the following code snippet: ActivityManager activityManager = (ActivityManager)BaseContext.GetSystemService(Context.ActivityService); ActivityManager.MemoryInfo memoryInfo = new ActivityManager.MemoryInfo();

How to create a new keystore in xamarin.android?

一曲冷凌霜 提交于 2021-02-10 07:14:10
问题 I'm trying to publish a xamarin.android app. I'm using Visual Studio with Xamarin Android 6, so I followed this. In part 2, it describes how to create a new keystore as shown in the following screenshot (You can see the complete describtion here): I don't get where should I place this command. I looked at that keytool link, but couldn't find any thing. I tried cmd, MSBuild Command Prompt for VS2015 and Developer Command Prompt for VS2015, but all of them showed this error: '$' is not

How to create a new keystore in xamarin.android?

删除回忆录丶 提交于 2021-02-10 07:09:15
问题 I'm trying to publish a xamarin.android app. I'm using Visual Studio with Xamarin Android 6, so I followed this. In part 2, it describes how to create a new keystore as shown in the following screenshot (You can see the complete describtion here): I don't get where should I place this command. I looked at that keytool link, but couldn't find any thing. I tried cmd, MSBuild Command Prompt for VS2015 and Developer Command Prompt for VS2015, but all of them showed this error: '$' is not

specific ringtone firebase notification xamarin.android

霸气de小男生 提交于 2021-02-10 05:48:26
问题 How i can force the push notification to run ringtone instead of default notification sound is there any way to ovveride the default behaviour for firebase onMessageReceived 回答1: You could set the specific ringtone in firebase notification. When you use API 26 or later, you would use Channel of Notification. Use the SetSound of channel would cover the default notification sound. Set the Ringtone with SetSound method of Channel. channel.SetSound(RingtoneManager.GetDefaultUri(RingtoneType