private boolean createUiMember(Integer intId){
  logger.info("calling createViewMember {}:{}) ",intId.toString(),String.format("%08x",intId));
  UISootObject obj=mUiObjectTable.get(intId);
  if (obj == null || obj.type == null) {
    logger.warn("Object for id {} info is not available",String.format("%08x",intId));
    return false;
  }
  String idName=makeIdName(obj.type,obj.numericId);
  String className=makeClassName(obj.type);
  if (className == null) {
    logger.warn("Cannot resolve class {} ",obj.type);
    return false;
  }
  RefType classType=RefType.v(className);
  RefType fragmentType=RefType.v("android.app.Fragment");
  RefType supportFragmentType=RefType.v("android.support.v4.app.Fragment");
  if (SootUtils.isSubTypeOfIncluding(classType,fragmentType) || SootUtils.isSubTypeOfIncluding(classType,supportFragmentType)) {
    obj.childOf=UiType.FRAGMENT;
    logger.info("soot class {} is a Fragment ",classType);
  }
  RefType viewType=RefType.v("android.view.View");
  if (SootUtils.isSubTypeOfIncluding(classType,viewType)) {
    obj.childOf=UiType.VIEW;
    logger.info("soot class {} is a view ",classType);
  }
  SootField sf=new SootField(idName,classType,Modifier.PUBLIC | Modifier.STATIC);
  mSootClass.addField(sf);
  obj.sootField=sf;
  return true;
}

private boolean createUiMember ( Integer intId ) { logger . info ( "calling createViewMember {}:{}) " , intId . toString ( ) , String . format ( "%08x" , intId ) ) ; UISootObject obj = mUiObjectTable . get ( intId ) ; if ( obj == null || obj . type == null ) { logger . warn ( "Object for id {} info is not available" , String . format ( "%08x" , intId ) ) ; return false ; } String idName = makeIdName ( obj . type , obj . numericId ) ; String className = makeClassName ( obj . type ) ; if ( className == null ) { logger . warn ( "Cannot resolve class {} " , obj . type ) ; return false ; } RefType classType = RefType . v ( className ) ; RefType fragmentType = RefType . v ( "android.app.Fragment" ) ; RefType supportFragmentType = RefType . v ( "android.support.v4.app.Fragment" ) ; if ( SootUtils . isSubTypeOfIncluding ( classType , fragmentType ) || SootUtils . isSubTypeOfIncluding ( classType , supportFragmentType ) ) { obj . childOf = UiType . FRAGMENT ; logger . info ( "soot class {} is a Fragment " , classType ) ; } RefType viewType = RefType . v ( "android.view.View" ) ; if ( SootUtils . isSubTypeOfIncluding ( classType , viewType ) ) { obj . childOf = UiType . VIEW ; logger . info ( "soot class {} is a view " , classType ) ; } SootField sf = new SootField ( idName , classType , Modifier . PUBLIC | Modifier . STATIC ) ; mSootClass . addField ( sf ) ; obj . sootField = sf ; return true ; }
createviewmember : method to add static button button_xxyyyy to the resourcessoot class
