There is an class android.os.Build that got static variables cointaining device info,
but when i try to access it I allways get a runtime exception.
E.x on how I try to access it:
String model = Build.MODEL;
I always get an Exception like this:
04-14 14:57:45.266: ERROR/AndroidRuntime(770): java.lang.VerifyError: com.mypackage.Main
I cant find any info about needing any special security permission on this.
Anyone got a clue?
Build.MODELhas been there since the beginning. You should not get aVerifyErrorfrom accessing that public static data member. There are a couple of ones onBuildthat are newer (e.g.,CPU_ABI) and therefore will give you aVerifyErrorif you are trying to access them on older devices/emulators — the documentation indicates in which API levels the various data members were introduced.