Java Question getIstance in B4A

Discussion in 'Libraries developers questions' started by MarcoRome, Feb 25, 2015.

  1. MarcoRome

    MarcoRome Expert Licensed User

    i know example that this:
    Code:
    TelephonyManager telMgr = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
    in B4A is:
    Code:
    telephonyManager = (TelephonyManager) ba.applicationContext.getSystemService(ba.applicationContext.TELEPHONY_SERVICE);
    but if i have this in java code:
    Code:
    telephonyInfo = TelephonyInfo.getInstance(this);
    this code in B4A is... ??
    :confused:

    Thank you all
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    The same as in Java.
     
  3. MarcoRome

    MarcoRome Expert Licensed User

    Resolve:
    Code:
    telephonyInfo = TelephonyInfo.getInstance(ba.context);
    Thank you anyway ;)
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice