Unable instantiate android.gms.maps.MapFragment

In IntelliJ IDEA (updated for IntelliJ 12): Create a file ~/android-sdk/extras/google/google_play_services/libproject/google-play-services_lib/src/dummy.java containing class dummy {}. File->Import Module-> ~/android-sdk/extras/google/google_play_services/libproject/google-play-services_lib Create Module from Existing Sources Next->Next->Next->Next->Finish File->Project Structure->Modules->YourApp +->Module Dependency->Google-play-services_lib (The + button is in the top right corner of the dialog.) +->Jars or directories->~/android-sdk/extras/google/google_play_services/libproject/google-play-services_lib/libs/google-play-services.jar Use the up/down arrows to move <Module source> to the bottom of … Read more

Understanding checked vs unchecked exceptions in Java

Many people say that checked exceptions (i.e. these that you should explicitly catch or rethrow) should not be used at all. They were eliminated in C# for example, and most languages don’t have them. So you can always throw a subclass of RuntimeException (unchecked exception) However, I think checked exceptions are useful – they are … Read more