check if your app is the default system sms app . concode_field_sep PlaceHolder placeHolder concode_field_sep boolean hasKitKat concode_elem_sep void setDefaultSmsApp concode_elem_sep boolean hasJellyBeanMR2
boolean function ( Context arg0 ) { if ( hasKitKat ( ) ) { return arg0 . getPackageName ( ) . equals ( Telephony . Sms . getDefaultSmsPackage ( arg0 ) ) ; } return true ; }