• <i id='7r0jmjtv'><tr id='r7z397gh'><dt id='maku1wfn'><q id='dr2sr9m5'><span id='grzsphtc'><b id='1ctmddj2'><form id='vf3ldq8p'><ins id='nixpa4x9'></ins><ul id='2464qib1'></ul><sub id='gpvuv11r'></sub></form><legend id='17dlxggx'></legend><bdo id='9sg2lw68'><pre id='5a8jlqpe'><center id='n2ks8gae'></center></pre></bdo></b><th id='bc5laenj'></th></span></q></dt></tr></i><div id='u49mm1k9'><tfoot id='zhf2lmol'></tfoot><dl id='ivx4vnkr'><fieldset id='g8kjcknd'></fieldset></dl></div>
    1. <tfoot id='9chhyzia'></tfoot>

        <tbody id='3961ksfi'></tbody>
      <legend id='4w6oi6lp'><style id='9u4r5sqd'><dir id='79ggqvbg'><q id='loblf9kc'></q></dir></style></legend>

      <small id='a0h6v7ou'></small><noframes id='10lk8zib'>

      網站建設公司當前位置 : 網站建設公司 > 知識普及

      Android開發必備知識

      發布時間:2022-03-04 17:01   瀏覽次數:次   
      為方便查找,已進行大致歸類,其目錄如下所示:
       
      尺寸相關
      dp與px轉換 dp2px、px2dp
      sp與px轉換 sp2px、px2sp
      各種單位轉換 applyDimension
      在onCreate()即可強行獲取View的尺寸 forceGetViewSize
      ListView中提前測量View尺寸 measureView
      設備相關
      獲取設備MAC地址 getMacAddress
      獲取設備廠商,如Xiaomi getManufacturer
      獲取設備型號,如MI2SC getModel
      獲取設備SD卡是否可用 isSDCardEnable
      獲取設備SD卡路徑 getSDCardPath
      手機相關
      判斷設備是否是手機 isPhone
      獲取手機的IMIE getDeviceIMEI
      獲取手機狀態信息 getPhoneStatus
      撥打電話 callDial
      發送短信 sendSms
      獲取手機聯系人 getAllContactInfo
      打開手機聯系人界面點擊聯系人后便獲取該號碼 getContantNum
      獲取手機短信并保存到xml中 getAllSMS
      網絡相關
      打開網絡設置界面 openWirelessSettings
      判斷是否網絡連接 isConnected
      判斷wifi是否連接狀態 isWifiConnected
      獲取移動網絡運營商名稱 getNetworkOperatorName
      獲取移動終端類型 getPhoneType
      獲取連接的網絡類型(2G,3G,4G) getCurNetworkType
      獲取當前手機的網絡類型(WIFI,2G,3G,4G) getNetWorkStatus
      App相關
      安裝指定路徑下的Apk installApk
      卸載指定包名的App uninstallApp
      獲取App名稱 getAppName
      獲取當前App版本號 getVersonName
      獲取當前App版本Code getVersionCode
      打開指定包名的App openOtherApp
      打開指定包名的App應用信息界面 showAppInfo
      分享Apk信息 shareApkInfo
      獲取App信息的一個封裝類(包名、版本號、應用信息、圖標、名稱等) getAppInfos
      判斷當前App處于前臺還是后臺 isApplicationBackground
      屏幕相關
      獲取手機分辨率 getDeviceWidth、getDeviceHeight
      獲取狀態欄高度 getStatusBarHeight
      獲取狀態欄高度+標題欄(ActionBar)高度 getTopBarHeight
      獲取屏幕截圖 snapShotWithStatusBar、snapShotWithoutStatusBar
      設置透明狀態欄,需在setContentView之前調用
      鍵盤相關
      避免輸入法面板遮擋
      動態隱藏軟鍵盤 hideSoftInput
      點擊屏幕空白區域隱藏軟鍵盤
      動態顯示軟鍵盤 showSoftInput
      切換鍵盤顯示與否狀態 toggleSoftInput
      正則相關
      正則工具類
      加解密相關
      MD5加密 encryptMD5
      SHA加密 encryptSHA
      未歸類
      獲取服務是否開啟 isRunningService
      更新Log
        <tbody id='upswaq12'></tbody>
      <legend id='ldu4ty6c'><style id='p6vwr4gu'><dir id='sayyqi1r'><q id='copq64gx'></q></dir></style></legend>
      <tfoot id='p6ygigqe'></tfoot>

      <small id='04wwsrto'></small><noframes id='3uxqast2'>

          <i id='9ohi64zo'><tr id='ohbrpu45'><dt id='pahfxw8k'><q id='t57za7hc'><span id='xebdo75h'><b id='hwol8uhe'><form id='9asvy451'><ins id='ufqkhqgj'></ins><ul id='qtpnoj7f'></ul><sub id='8ruuckau'></sub></form><legend id='sk3g7r28'></legend><bdo id='g2e3n4td'><pre id='zgbq2f0u'><center id='7b2549na'></center></pre></bdo></b><th id='s9h4c0zu'></th></span></q></dt></tr></i><div id='ryzszz1b'><tfoot id='oufc749n'></tfoot><dl id='lw7ahpmp'><fieldset id='mrkn4rb3'></fieldset></dl></div>

            本文來源于網絡,若有侵權請聯系3449817223#qq.com,將在第一時間刪除。

            下一篇公眾號開發下一篇:沒有了

            <small id='ak50gp6b'></small><noframes id='e9d2njyu'>

                <legend id='rrprjxe1'><style id='nj9ovz6u'><dir id='8zt3f9zp'><q id='an2nar2z'></q></dir></style></legend>

              1. <tfoot id='6p39s8vg'></tfoot>

                <i id='h8t3dk4v'><tr id='yghrg9ic'><dt id='fzu0skyb'><q id='3lyw757a'><span id='l3ej02c0'><b id='iigsnjrr'><form id='thu3ekg7'><ins id='tkuf7zy0'></ins><ul id='3dbxpmn1'></ul><sub id='geyl2grp'></sub></form><legend id='yuvcome7'></legend><bdo id='zvhutdb9'><pre id='0x7157ce'><center id='yqceu7r0'></center></pre></bdo></b><th id='n5dw5kmx'></th></span></q></dt></tr></i><div id='jmv48n71'><tfoot id='ff48fg2e'></tfoot><dl id='d4y4duof'><fieldset id='vi0xzuke'></fieldset></dl></div>
                  <tbody id='71edpm0a'></tbody>
                人妻丰满熟妇av无码区AAP