MarcoRome Expert Licensed User Longtime User Feb 25, 2015 #1 i know example that this: B4X: TelephonyManager telMgr = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); in B4A is: B4X: telephonyManager = (TelephonyManager) ba.applicationContext.getSystemService(ba.applicationContext.TELEPHONY_SERVICE); but if i have this in java code: B4X: telephonyInfo = TelephonyInfo.getInstance(this); this code in B4A is... ?? Thank you all
i know example that this: B4X: TelephonyManager telMgr = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); in B4A is: B4X: telephonyManager = (TelephonyManager) ba.applicationContext.getSystemService(ba.applicationContext.TELEPHONY_SERVICE); but if i have this in java code: B4X: telephonyInfo = TelephonyInfo.getInstance(this); this code in B4A is... ?? Thank you all
MarcoRome Expert Licensed User Longtime User Feb 25, 2015 #3 MarcoRome said: i know example that this: B4X: TelephonyManager telMgr = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); in B4A is: B4X: telephonyManager = (TelephonyManager) ba.applicationContext.getSystemService(ba.applicationContext.TELEPHONY_SERVICE); but if i have this in java code: B4X: telephonyInfo = TelephonyInfo.getInstance(this); this code in B4A is... ?? Thank you all Click to expand... Resolve: B4X: telephonyInfo = TelephonyInfo.getInstance(ba.context); Thank you anyway
MarcoRome said: i know example that this: B4X: TelephonyManager telMgr = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); in B4A is: B4X: telephonyManager = (TelephonyManager) ba.applicationContext.getSystemService(ba.applicationContext.TELEPHONY_SERVICE); but if i have this in java code: B4X: telephonyInfo = TelephonyInfo.getInstance(this); this code in B4A is... ?? Thank you all Click to expand... Resolve: B4X: telephonyInfo = TelephonyInfo.getInstance(ba.context); Thank you anyway