protected Dialog showDialogWhileWaitingForAuthenticationAPICall ( ) { return ProgressDialog . show ( this , getText ( R . string . boxsdk_Authenticating ) , getText ( R . string . boxsdk_Please_wait ) ) ; }
If you don t need the dialog just return null .