public static boolean isTrafficPurchaseSupported(Context context){
  if (context != null) {
    try {
      final Uri uri=Uri.parse(TRAFFIC_PURCHASE_STATUS_URI_STR);
      return queryTrafficPurchaseStatus(context,uri);
    }
 catch (    Exception e) {
      e.printStackTrace();
    }
  }
  return false;
}

public static boolean isTrafficPurchaseSupported ( Context context ) { if ( context != null ) { try { final Uri uri = Uri . parse ( TRAFFIC_PURCHASE_STATUS_URI_STR ) ; return queryTrafficPurchaseStatus ( context , uri ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } } return false ; }
check traffic purchase supported to other apps need permission miui . permission . extra_network
