Build.MANUFACTURER is only available on Android 1.6 up. You can use reflection or check against the SDK level before using a class that accesses it, however.
On Jan 2, 12:04 pm, karthikr <[email protected]> wrote: > I am getting an VerifyError on trying to access > android.os.Build.MANUFACTURER on my HTC Magic(Rooted running sense ui) > < where as on trying to run it on the emulator i get "unknown" and an > error is not thrown. Is it still advisable to continue going ahead > with it in my application? > > Any help on the same will be highly appreciated. > > 01-02 22:26:27.532: WARN/dalvikvm(10469): VFY: unable to resolve > static field 6 (MANUFACTURER) in Landroid/os/Build; > 01-02 22:26:27.532: WARN/dalvikvm(10469): VFY: rejecting opcode 0x62 > at 0x0012 > 01-02 22:26:27.532: WARN/dalvikvm(10469): VFY: rejected Lcom/tecxten/ > scribtor/ScribtorHome;.onCreate (Landroid/os/Bundle;)V > 01-02 22:26:27.532: WARN/dalvikvm(10469): Verifier rejected class Lcom/ > tecxten/scribtor/ScribtorHome; > 01-02 22:26:27.532: WARN/dalvikvm(10469): Class init failed in > newInstance call (Lcom/tecxten/scribtor/ScribtorHome;) > 01-02 22:26:29.322: DEBUG/dalvikvm(1909): GC freed 1620 objects / > 93680 bytes in 186ms > 01-02 22:26:34.352: DEBUG/dalvikvm(1831): GC freed 5 objects / 120 > bytes in 207ms > 01-02 22:26:44.142: WARN/ActivityManager(66): Activity idle timeout > for HistoryRecord{43973298 {com.tecxten.scribtor/ > com.tecxten.scribtor.ScribtorHome}} > 01-02 22:26:46.709: DEBUG/AndroidRuntime(10469): Shutting down VM > 01-02 22:26:46.709: WARN/dalvikvm(10469): threadid=3: thread exiting > with uncaught exception (group=0x40013140) > 01-02 22:26:46.712: ERROR/AndroidRuntime(10469): Uncaught handler: > thread main exiting due to uncaught exception > 01-02 22:26:46.782: ERROR/AndroidRuntime(10469): > java.lang.VerifyError: com.tecxten.scribtor.ScribtorHome > 01-02 22:26:46.782: ERROR/AndroidRuntime(10469): at > java.lang.Class.newInstanceImpl(Native Method) > 01-02 22:26:46.782: ERROR/AndroidRuntime(10469): at > java.lang.Class.newInstance(Class.java:1472) > 01-02 22:26:46.782: ERROR/AndroidRuntime(10469): at > android.app.Instrumentation.newActivity(Instrumentation.java:1100) > 01-02 22:26:46.782: ERROR/AndroidRuntime(10469): at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java: > 2186) > 01-02 22:26:46.782: ERROR/AndroidRuntime(10469): at > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: > 2284) > 01-02 22:26:46.782: ERROR/AndroidRuntime(10469): at > android.app.ActivityThread.access$1800(ActivityThread.java:112) > 01-02 22:26:46.782: ERROR/AndroidRuntime(10469): at > android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692) > 01-02 22:26:46.782: ERROR/AndroidRuntime(10469): at > android.os.Handler.dispatchMessage(Handler.java:99) > 01-02 22:26:46.782: ERROR/AndroidRuntime(10469): at > android.os.Looper.loop(Looper.java:123) > 01-02 22:26:46.782: ERROR/AndroidRuntime(10469): at > android.app.ActivityThread.main(ActivityThread.java:3948) > 01-02 22:26:46.782: ERROR/AndroidRuntime(10469): at > java.lang.reflect.Method.invokeNative(Native Method) > 01-02 22:26:46.782: ERROR/AndroidRuntime(10469): at > java.lang.reflect.Method.invoke(Method.java:521) > 01-02 22:26:46.782: ERROR/AndroidRuntime(10469): at > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run > (ZygoteInit.java:782) > 01-02 22:26:46.782: ERROR/AndroidRuntime(10469): at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) > 01-02 22:26:46.782: ERROR/AndroidRuntime(10469): at > dalvik.system.NativeStart.main(Native Method) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

