public static String toCanonicalName(String dalvikName){
  dalvikName=dalvikName.replace('/','.');
  char first=dalvikName.charAt(0);
switch (first) {
case 'C':
    return "char";
case 'I':
  return "int";
case 'B':
return "byte";
case 'Z':
return "boolean";
case 'F':
return "float";
case 'D':
return "double";
case 'S':
return "short";
case 'J':
return "long";
case 'V':
return "void";
case 'L':
return dalvikName.substring(1,dalvikName.length() - 1);
case '[':
return dalvikName;
default :
Log.err("unknown dalvik type:" + dalvikName);
return "";
}
}

public static String toCanonicalName ( String dalvikName ) { dalvikName = dalvikName . replace ( '/' , '.' ) ; char first = dalvikName . charAt ( 0 ) ; switch ( first ) { case 'C' : return "char" ; case 'I' : return "int" ; case 'B' : return "byte" ; case 'Z' : return "boolean" ; case 'F' : return "float" ; case 'D' : return "double" ; case 'S' : return "short" ; case 'J' : return "long" ; case 'V' : return "void" ; case 'L' : return dalvikName . substring ( 1 , dalvikName . length ( ) - 1 ) ; case '[' : return dalvikName ; default : Log . err ( "unknown dalvik type:" + dalvikName ) ; return "" ; } }
convert an android class identifier to its canonical form .
