getSystemService() is not a static method and in Context is only an abstract method. You need to provide an actual Context such as your current Activity instance.
On Jul 21, 2:52 am, Mystique <joven.ch...@gmail.com > wrote: > Wonder why do I get this error? > > String srvcName = Context.TELEPHONY_SERVICE; > TelephonyManager telephonyManager = > (TelephonyManager)getSystemService(srvcName); > String deviceId = telephonyManager.getDeviceId(); -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en