Like getIntent().getIntExtra, does getStringExtra have a default value which can be used if the string passed is empty?
I have a method to do this, but was wondering if there was an existing for achieving it to?
Thanks.
According to http://developer.android.com/reference/android/content/Intent.html, no.
The reason getIntExtra has a default value parameter, it is because the type returned is a primitive and therefore can't return null.