int checkIfAssigned(String webappId){
  if (webappId == null) {
    return INVALID_ACTIVITY_INDEX;
  }
  for (int i=mActivityList.size() - 1; i >= 0; i--) {
    if (webappId.equals(mActivityList.get(i).mWebappId)) {
      return mActivityList.get(i).mActivityIndex;
    }
  }
  return INVALID_ACTIVITY_INDEX;
}

int checkIfAssigned ( String webappId ) { if ( webappId == null ) { return INVALID_ACTIVITY_INDEX ; } for ( int i = mActivityList . size ( ) - 1 ; i >= 0 ; i -- ) { if ( webappId . equals ( mActivityList . get ( i ) . mWebappId ) ) { return mActivityList . get ( i ) . mActivityIndex ; } } return INVALID_ACTIVITY_INDEX ; }
checks if the webapp with the given id has been assigned to an activity already .
