Code example for Field

Methods: getInt

0
            sdk_version = 3;
            Field fld;
            try { 
                Class<?> cl = android.os.Build.VERSION.class;
                fld = cl.getField("SDK_INT");
                sdk_version = fld.getInt(cl);
            } catch (Exception e) {
                 //Android 1.5 
            } 
        } 
		return sdk_version;
	} 
 
    public LastPageInfo getCurrentBookParameters() { 
        return currentBookParameters;
    } 
 
    public void setCurrentBookParameters(LastPageInfo currentBookParameters) {
        this.currentBookParameters = currentBookParameters;
    }