

The original G1 was really lowend compared to other devices of that time, but compared to now it's absurd. Initially Android was focused on making Java perform on lowend hardware.

Android is a mess to develop in because their api is a bit of a mess. The worst for me is dealing with new systems.figuring out which magic checkbox I have to check to make the damn thing do what it's supposed to do!!! You have to commit to constantly figuring out new/better ways of doing the same thing and accept that code you wrote a year ago will look like shit when you read it again trying to fix a bug that has somehow gone unnoticed all this time. I understand the frustrations you feel, but that is a big part of being a developer. Net you have lots of different ways of accomplishing the same thing, data access? ADO.Net, Linq to SQL, Entity Framework, Entity Framework Code First! Web development you have tons of options and different browsers that may or may not support what you are wanting to do or they do support it just in a completely different way than everyone else. But look at other modern platforms and you'll see a lot of the same. Generally it's just growing pains that you are seeing. The problem here is you picked a platform that has been around for years (and in many ways is being phased out ASP.Net -> MVC.net) which itself was built on an established platform (ASP) to compare to a relatively new platform (though it was built in someways on existing platforms as well). Write down the following source code in side the onCreate() method.Development in general is a mess, though Android definitely has a lot going on. integer variable called selectedColor will maintain the current selected position of the spinner.You should add the three lines before the onCreate() method.Public class MainActivity extends AppCompatActivity Now write the following code in MainActivity.java file Button is just saying that below spinner have single value so it has no dropdown menu.I have taken one button and one spinner in above layout file.First, create a new project in android studio.Īdd the below source code in activity_main.xml file

You need to close or hide the whole dropdown menu when you have only one item in your spinner. Closing or Hiding Dropdown Menu Programmatically
