private boolean isAndroidNamespace(String ns){
  if (ns == null)   return false;
  ns=ns.trim();
  if (ns.startsWith("*"))   ns=ns.substring(1);
  if (!ns.equals("http://schemas.android.com/apk/res/android"))   return false;
  return true;
}

private boolean isAndroidNamespace ( String ns ) { if ( ns == null ) return false ; ns = ns . trim ( ) ; if ( ns . startsWith ( "*" ) ) ns = ns . substring ( 1 ) ; if ( ! ns . equals ( "http://schemas.android.com/apk/res/android" ) ) return false ; return true ; }
checks whether the given namespace belongs to the android operating system
