Im able to populate spinner but cant access it

public void editarEstadoSala(final Sala sala) { ArrayAdapter<Pelicula> adapter; CambiarDatosSalaWorker cambiarDatosSalaWorker = new CambiarDatosSalaWorker(this); cambiarDatosSalaWorker.execute(); List<Pelicula> listaPelicula=cambiarDatosSalaWorker.getLista(); LinearLayout layout = new LinearLayout(PortalAdmin.this); layout.setOrientation(LinearLayout.VERTICAL); ////// final AlertDialog.Builder builder = new AlertDialog.Builder(PortalAdmin.this); builder.setTitle(“Rellena los datos”); final EditText butacas = new EditText(PortalAdmin.this); final EditText precio = new EditText(PortalAdmin.this); final TextView pelicula = new TextView(PortalAdmin.this); final Spinner spinner = new…

Details

C# register DbContext on startup

I have this piece of code in the startup.cs file of my ASP.Net Core Web API project: public void ConfigureServices(IServiceCollection services) { // Retrieve the database connection string string connectionString = “Do something to retrieve a connection string”; services.AddDbContext<MyContext>(options => options.UseSqlServer(connectionString)); } I have reasons to do this here and not in MyContext‘s OnConfiguring() method,…

Details

Setting PS1 on macOS Catalina causes Terminal prompt to overlap itself when window is resized

I’ve set PS1 in my .bash_profile, and while the colors work I get awful word wrapping and weird line behavior when I resize my Terminal window size. Here is my .bash_profile: [[ -s ~/.bashrc ]] && source ~/.bashrc # Setting PATH for Python 2.7 # The orginal version is saved in .bash_profile.pysave PATH=”/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/TeX/Distributions/Programs/texbin:${PATH}” shopt -s…

Details