[android-developers] Re: Chances of TELEPHONY_SERVICE return null

2012-10-25 Thread Karl Geerts
Context.TELEPHONY_SERVICE should return "phone" so no ;) Op woensdag 24 oktober 2012 15:33:37 UTC+2 schreef thejaswi s het volgende: > > Is there any chances of getting TELEPHONY_SERVICE as null ? > > TelephonyManager teleman = (TelephonyManager) getBaseContext() > .getSystemService(

[android-developers] Re: Chances of TELEPHONY_SERVICE return null

2012-10-24 Thread RichardC
On devices that are not phones e.g TVs and most Tablets. On Wednesday, October 24, 2012 2:33:37 PM UTC+1, thejaswi s wrote: > > Is there any chances of getting TELEPHONY_SERVICE as null ? > > TelephonyManager teleman = (TelephonyManager) getBaseContext() > .getSystemService(Context.T