xamarin.android

Accesing local server using Resharp

最后都变了- 提交于 2021-02-11 13:41:54
问题 I am in progress of implementing a searchView but before I do that I would like to successfully reach my local rest api (written using asp.net core). I found a package named RestSharp which seems to make consuming a rest api very simple. Right now I am stuck at accessing my api from my Xamarin.Android application. I am using a fragment which makes use of google maps, at the OnCreateView lifecycle method I am calling a addData which is supposed to reach out to my api: public override View

How to load a Picker in Xamarin forms with data received from the Web Api?

≯℡__Kan透↙ 提交于 2021-02-11 12:46:08
问题 So, this is my Model Class "Usuario" This class has the Foreign key "IdTipoUsuario" that was declared in my database from SQL Server Management Studio. So I placed it here with the "IList" property: namespace APPiGarbage.Models { public class Usuario { public int IdUsuario { get; set; } public string Nome { get; set; } public string Foto { get; set; } public string Descricao { get; set; } public string Email { get; set; } public string Senha { get; set; } public IList<TipoUsuario>

How to load a Picker in Xamarin forms with data received from the Web Api?

百般思念 提交于 2021-02-11 12:45:24
问题 So, this is my Model Class "Usuario" This class has the Foreign key "IdTipoUsuario" that was declared in my database from SQL Server Management Studio. So I placed it here with the "IList" property: namespace APPiGarbage.Models { public class Usuario { public int IdUsuario { get; set; } public string Nome { get; set; } public string Foto { get; set; } public string Descricao { get; set; } public string Email { get; set; } public string Senha { get; set; } public IList<TipoUsuario>

Xamarin.Android - ToolbarNavigationClickListener

和自甴很熟 提交于 2021-02-11 12:41:49
问题 My question is similar to this question Android - Switch ActionBar Back Button to Navigation Button, but I have problems using the Java code that I changed to c#. import android.support.v7.app.ActionBarDrawerToggle import android.support.v4.widget.DrawerLayout ActionBarDrawerToggle mDrawerToggle; DrawerLayout drawerLayout; private boolean mToolBarNavigationListenerIsRegistered = false; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

Xamarin.Android - ToolbarNavigationClickListener

孤街浪徒 提交于 2021-02-11 12:41:47
问题 My question is similar to this question Android - Switch ActionBar Back Button to Navigation Button, but I have problems using the Java code that I changed to c#. import android.support.v7.app.ActionBarDrawerToggle import android.support.v4.widget.DrawerLayout ActionBarDrawerToggle mDrawerToggle; DrawerLayout drawerLayout; private boolean mToolBarNavigationListenerIsRegistered = false; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

Change display language within an xamarin android app

烂漫一生 提交于 2021-02-11 08:25:14
问题 How can I change the display language within an app? I want that users with different cultures can work with one scanner without changing the global culture of the device. I have a laguage button with a click event in wich I call a method: public void SetLocale(string language = "") { Locale locale = String.IsNullOrEmpty(language) ? new Locale("de-DE") : new Locale(language); Locale.Default = locale; var config = new global::Android.Content.Res.Configuration(); config.Locale = locale; var

Change display language within an xamarin android app

爱⌒轻易说出口 提交于 2021-02-11 08:24:30
问题 How can I change the display language within an app? I want that users with different cultures can work with one scanner without changing the global culture of the device. I have a laguage button with a click event in wich I call a method: public void SetLocale(string language = "") { Locale locale = String.IsNullOrEmpty(language) ? new Locale("de-DE") : new Locale(language); Locale.Default = locale; var config = new global::Android.Content.Res.Configuration(); config.Locale = locale; var

Change display language within an xamarin android app

扶醉桌前 提交于 2021-02-11 08:23:21
问题 How can I change the display language within an app? I want that users with different cultures can work with one scanner without changing the global culture of the device. I have a laguage button with a click event in wich I call a method: public void SetLocale(string language = "") { Locale locale = String.IsNullOrEmpty(language) ? new Locale("de-DE") : new Locale(language); Locale.Default = locale; var config = new global::Android.Content.Res.Configuration(); config.Locale = locale; var

Change display language within an xamarin android app

元气小坏坏 提交于 2021-02-11 08:21:58
问题 How can I change the display language within an app? I want that users with different cultures can work with one scanner without changing the global culture of the device. I have a laguage button with a click event in wich I call a method: public void SetLocale(string language = "") { Locale locale = String.IsNullOrEmpty(language) ? new Locale("de-DE") : new Locale(language); Locale.Default = locale; var config = new global::Android.Content.Res.Configuration(); config.Locale = locale; var

Setup Web Authenticator in Xamarin Essentials for local Android development

巧了我就是萌 提交于 2021-02-11 05:56:43
问题 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