Code example for TelephonyManager

Methods: getLine1Number

0
	 
	public static String getMyPhoneNumber(Activity activity){
	    TelephonyManager mTelephonyMgr;
	    mTelephonyMgr = (TelephonyManager)activity.getSystemService(Context.TELEPHONY_SERVICE);
	    if(mTelephonyMgr!=null)
	    	return mTelephonyMgr.getLine1Number();
	    else 
	    	return null; 
	} 
     
	 
	 
    private class getSystemProperty implements FREFunction 
    { 
         
        public static final String KEY = "getSystemProperty";
 
        @Override 
        public FREObject call(FREContext context, FREObject[] args) 
        {