Android, NetworkInfo.getTypeName(), NullpointerException
- by moppel
I have an activity which shows some List entries. When I click on a list item my app checks which connection type is available ("WIF" or "MOBILE"), through NetworkInfo.getTypeName(). As soon as I call this method I get a NullpointerException. Why?
I tested this on the emulator, cause my phone is currently not available (it's broken...). I assume…