1. 程式人生 > >判斷 Android rom是不是 EMUI(Emotion UI)

判斷 Android rom是不是 EMUI(Emotion UI)

1、定義一個可以獲取系統屬性的方法

    public static  String getProperty(String key, String defaultValue) {
        String value = defaultValue;
        try {
            Class<?> c = Class.forName("android.os.SystemProperties");
            Method get = c.getMethod("get", String.class, String.class);
            value = (String
)(get.invoke(c, key, "unknown" )); } catch (Exception e) { e.printStackTrace(); }finally { return value; } }

2、從系統屬性中找到Emotion UI的key值
通過adb進入到shell下,執行命令getprop會得到類似下面的結果(榮耀6上的結果):

[af.resampler.quality]: [4]
[androidboot.longpress]: [false]
[audioril.lib
]: [libhuawei-audio-ril.so] [dalvik.vm.checkjni]: [false] [dalvik.vm.heapgrowthlimit]: [192m] [dalvik.vm.heapmaxfree]: [8m] [dalvik.vm.heapminfree]: [2m] [dalvik.vm.heapsize]: [512m] [dalvik.vm.heapstartsize]: [8m] [dalvik.vm.heaptargetutilization]: [0.75] [dalvik.vm.stack-trace-file]: [/data/anr/traces.txt
] [debug.force_rtl]: [0] [debug.hwc_dump_en]: [1] [dev.bootcomplete]: [1] [dhcp.wlan0.dns1]: [192.168.1.1] [dhcp.wlan0.dns2]: [] [dhcp.wlan0.dns3]: [] [dhcp.wlan0.dns4]: [] [dhcp.wlan0.domain]: [] [dhcp.wlan0.gateway]: [192.168.1.1] [dhcp.wlan0.ipaddress]: [192.168.1.94] [dhcp.wlan0.leasetime]: [86400] [dhcp.wlan0.mask]: [255.255.252.0] [dhcp.wlan0.mtu]: [] [dhcp.wlan0.pid]: [29034] [dhcp.wlan0.reason]: [BOUND] [dhcp.wlan0.result]: [ok] [dhcp.wlan0.server]: [192.168.1.1] [dhcp.wlan0.vendorInfo]: [] [gsm.current.phone-type]: [1,1] [gsm.data.gsm_only_not_allow_ps]: [false] [gsm.esmflag.plmn.matched]: [false] [gsm.huawei.RemindDataService]: [false] [gsm.hw.cust.ecclist]: [110,119,120,122] [gsm.hw.matchnum.short]: [11] [gsm.hw.matchnum.vmn_shortcode]: [0] [gsm.hw.matchnum]: [11] [gsm.multipdp.plmn.matched]: [false] [gsm.network.type]: [Unknown,Unknown] [gsm.operator.alpha]: [null,null] [gsm.operator.iso-country]: [] [gsm.operator.isroaming]: [false,false] [gsm.operator.numeric]: [null,null] [gsm.sim.fdnvalue]: [true] [gsm.sim.hw_atr1]: [3B9E94801FC78031E073FE211B66D0FE97D17300] [gsm.sim.hw_atr]: [null] [gsm.sim.num.pin2]: [3] [gsm.sim.num.pin]: [3] [gsm.sim.num.puk2]: [10] [gsm.sim.num.puk]: [10] [gsm.sim.num.simlock]: [-1,-1,-1] [gsm.sim.operator.alpha]: [,] [gsm.sim.operator.iso-country]: [,cn] [gsm.sim.operator.numeric]: [,46001] [gsm.sim.state]: [NOT_READY,DEACTIVED] [gsm.slot2.num.pin1]: [3] [gsm.slot2.num.pin2]: [3] [gsm.slot2.num.puk1]: [10] [gsm.slot2.num.puk2]: [10] [gsm.sms.7bit.enabled]: [0] [gsm.sms.coding.national]: [0] [gsm.sms.max.message.size]: [0] [gsm.sms.to.mms.textthreshold]: [0] [gsm.temp.defapn.state]: [false] [gsm.version.baseband]: [21.236.00.00.031,21.236.00.00.031] [gsm.version.ril-impl]: [android infineon balong-ril 1.0] [huawei.check_root.adbd]: [safe] [huawei.check_root.hotapermit]: [risk] [huawei.check_root.mount]: [safe] [huawei.check_root.oldstate]: [risk] [huawei.check_root.prop]: [safe] [huawei.check_root.setids]: [safe] [huawei.check_root.su]: [risk] [hw.lcd.density.scale]: [500] [hw.lcd.density]: [480] [init.svc.adbd]: [running] [init.svc.applogcat]: [running] [init.svc.bootanim]: [stopped] [init.svc.chargelogcat]: [running] [init.svc.check_longpress]: [stopped] [init.svc.check_root]: [stopped] [init.svc.debuggerd]: [running] [init.svc.device-monitor]: [running] [init.svc.dhcpcd_wlan0]: [running] [init.svc.diagserver]: [running] [init.svc.drm]: [running] [init.svc.filebackup]: [running] [init.svc.flash_recovery]: [stopped] [init.svc.fuse_sdcard1]: [running] [init.svc.gpsd]: [running] [init.svc.hdmi-daemon]: [running] [init.svc.healthd]: [running] [init.svc.hw_ueventd]: [running] [init.svc.hwnffserver]: [running] [init.svc.hwpged]: [running] [init.svc.immvibed]: [stopped] [init.svc.installd]: [running] [init.svc.jankservice]: [running] [init.svc.keystore]: [running] [init.svc.kmsgcat_cp]: [running] [init.svc.kmsglogcat]: [running] [init.svc.logserver]: [running] [init.svc.macaddr]: [stopped] [init.svc.media]: [running] [init.svc.netd]: [running] [init.svc.oeminfo_nvm]: [running] [init.svc.p2p_supplicant]: [running] [init.svc.ril-daemon1]: [running] [init.svc.ril-daemon]: [running] [init.svc.rillogcat]: [running] [init.svc.servicemanager]: [running] [init.svc.sleeplogcat]: [running] [init.svc.storedefaultkey]: [stopped] [init.svc.surfaceflinger]: [running] [init.svc.teecd]: [running] [init.svc.thermal-daemon]: [running] [init.svc.ueventd]: [running] [init.svc.vold]: [running] [init.svc.zygote]: [running] [install.frobidden]: [false] [keyguard.no_require_sim]: [true] [media.LowPowerPlay]: [no] [modify_ram_show]: [true] [net.bt.name]: [Android] [net.change]: [net.ntp.timereference] [net.dns1]: [192.168.1.1] [net.dns2]: [] [net.hostname]: [android-c994b2b1dc301b84] [net.ntp.time]: [1479782922753] [net.ntp.timereference]: [3145372] [net.qtaguid_enabled]: [1] [net.tcp.buffersize.default]: [4096,87380,110208,4096,16384,110208] [net.tcp.buffersize.edge]: [4093,26280,35040,4096,16384,35040] [net.tcp.buffersize.evdo]: [4094,87380,262144,4096,16384,262144] [net.tcp.buffersize.gprs]: [4092,8760,11680,4096,8760,11680] [net.tcp.buffersize.hsdpa]: [4094,87380,262144,4096,16384,262144] [net.tcp.buffersize.hspa]: [4094,87380,262144,4096,16384,262144] [net.tcp.buffersize.hspap]: [4094,87380,1220608,4096,16384,1220608] [net.tcp.buffersize.hsupa]: [4094,87380,262144,4096,16384,262144] [net.tcp.buffersize.lte]: [524288,4194304,8388608,262144,524288,1048576] [net.tcp.buffersize.umts]: [4094,87380,110208,4096,16384,110208] [net.tcp.buffersize.wifi]: [524288,1048576,2097152,262144,524288,1048576] [persist.alarm.enable.uhb]: [0] [persist.config.hw.lca.region]: [inland] [persist.dsds.enabled]: [true] [persist.hw.power.shutdown]: [0] [persist.radio.1sthwlauncher]: [1] [persist.radio.apm_sim_not_pwdn]: [1] [persist.radio.lte_enabled]: [true] [persist.radio.nitz_hw_name]: [] [persist.radio.previousiccid]: [89860114831011314020] [persist.radio.previousopcode]: [46001] [persist.radio.sim.iccid]: [0] [persist.radio.sim1.insert]: [1] [persist.radio.sim2.insert]: [1] [persist.radio.supp.notification]: [false] [persist.service.imcs.enable]: [false] [persist.service.tm2.tofile]: [false] [persist.sys.actualpoweron]: [true] [persist.sys.alarm.enable.uhb]: [1] [persist.sys.country]: [CN] [persist.sys.dalvik.vm.lib]: [libdvm.so] [persist.sys.datacrash]: [0] [persist.sys.default.res.xres]: [1080] [persist.sys.default.res.yres]: [1920] [persist.sys.hdcp_checking]: [always] [persist.sys.hispeed_freq]: [1209600] [persist.sys.hmp_boost_down]: [448] [persist.sys.hmp_boost_up]: [871] [persist.sys.hmp_default_down]: [512] [persist.sys.hmp_default_up]: [978] [persist.sys.huawei.debug.on]: [0] [persist.sys.language]: [zh] [persist.sys.lcd_density]: [480] [persist.sys.localevar]: [] [persist.sys.logsystem.coredump]: [off] [persist.sys.logsystem.modem]: [0] [persist.sys.logsystem.neversend]: [1] [persist.sys.logsystem.protohint]: [0] [persist.sys.phb.debug.enable]: [1] [persist.sys.phb.enable]: [1] [persist.sys.powersystem.enable]: [1] [persist.sys.powerup_reason]: [NORMAL] [persist.sys.profiler_ms]: [0] [persist.sys.res.icon_size]: [-1] [persist.sys.res.level]: [0] [persist.sys.res.levelchanged]: [0] [persist.sys.ring.index]: [0] [persist.sys.ringmode.index]: [0] [persist.sys.smart_power]: [2] [persist.sys.strictmode.disable]: [true] [persist.sys.strictmode.visual]: [] [persist.sys.thermal]: [false] [persist.sys.timezone]: [Asia/Shanghai] [persist.sys.ui.hw]: [false] [persist.sys.usb.config]: [hisuite,mtp,mass_storage,adb] [persist.sys.wfd.sound]: [false] [ril.balong_cid]: [0] [ril.ecclist1]: [112,911,112,110,120,122,999,119] [ril.ecclist]: [112,911,000,08,110,118,119,999,120,122] [ril.hw_modem0.rssi]: [-140] [ril.hw_modem1.rssi]: [-140] [ril.modem.balong_nvm_server]: [true] [ril.modem.timedwait_cpstate]: [60] [ril.operator.numeric]: [fffff] [rild.libargs1]: [-m modem1] [rild.libargs]: [-m modem0] [rild.libpath1]: [/system/lib/libbalong-ril.so] [rild.libpath]: [/system/lib/libbalong-ril.so] [rild.rild1_ready_to_start]: [true] [ro.adb.secure]: [1] [ro.ads.bootanim]: [true] [ro.allow.mock.location]: [0] [ro.audio.flinger_standbytime_ms]: [10000] [ro.baseband]: [unknown] [ro.board.boardid]: [17] [ro.board.boardname]: [Mogolia_UL+G_V3] [ro.board.modemid]: [3fb51000] [ro.board.platform]: [hi3630] [ro.boardid.product]: [71424] [ro.boot.serialno]: [DU2NKM152D032358] [ro.bootloader]: [unknown] [ro.bootmode]: [unknown] [ro.bt.bdaddr_path]: [/data/misc/bluedroid/macbt] [ro.build.characteristics]: [default] [ro.build.date.utc]: [1440786072] [ro.build.date]: [Sat Aug 29 02:21:12 CST 2015] [ro.build.description]: [hi3630-user 4.4.2 KOT49H eng.jenkins.20150829.021909 test-keys] [ro.build.display.id]: [H60-L12V100R001CHNC00B317] [ro.build.fingerprint]: [Huawei/H60-L12/hwH60:4.4.2/HDH60-L12/CHNC00B317:user/ota-rel-keys,release-keys] [ro.build.hide.matchers]: [H60-L01;H60-L02;H60-L03;H60-L11;H60-L12;Huawei;Mali-T624] [ro.build.hide.replacements]: [H300;H300;H300;H300;H300;Unknown;Unknown] [ro.build.hide]: [false] [ro.build.host]: [shacidculx1387] [ro.build.id]: [HDH60-L12] [ro.build.product]: [hi3630] [ro.build.push_time.boot]: [] [ro.build.push_time.system]: [] [ro.build.tag_id.boot]: [tag_K3V300R001C00B272SP05] [ro.build.tag_id.system]: [tag_K3V300R001C00B272SP05] [ro.build.tag_time.boot]: [2014-08-13-0659] [ro.build.tag_time.system]: [2014-08-13-0659] [ro.build.tags]: [ota-rel-keys,release-keys] [ro.build.type]: [user] [ro.build.update.settings_info]: [B272SP05_p3038] [ro.build.user]: [jenkins] [ro.build.version.codename]: [REL] [ro.build.version.emui]: [EmotionUI_3.0] [ro.build.version.incremental]: [CHNC00B317] [ro.build.version.release]: [4.4.2] [ro.build.version.sdk]: [19] [ro.camera.sound.forced]: [1] [ro.carrier]: [unknown] [ro.cellbroadcast.emergencyids]: [0-65534] [ro.com.android.dateformat]: [MM-dd-yyyy] [ro.com.google.clientidbase]: [android-huawei] [ro.com.google.gmsversion]: [4.4.2_r5] [ro.confg.hw_bootversion]: [H60-L12V100R001CHNC00B317_BOOT] [ro.confg.hw_fastbootversion]: [H60-L12V100R001CHNC00B317_FASTBOOT] [ro.confg.hw_systemversion]: [H60-L12V100R001CHNC00B317_SYSTEM] [ro.config.AM_PM_STYLE]: [1] [ro.config.ROG]: [true] [ro.config.RoamingNetwork]: [true] [ro.config.SupportSdcard]: [true] [ro.config.addAct]: [false] [ro.config.alarm_alert]: [Creamy.ogg] [ro.config.always_animation]: [true] [ro.config.app_big_icon_size]: [180] [ro.config.auth.timeout]: [true] [ro.config.autoconnect.swich]: [true] [ro.config.bg_call_twinking]: [true] [ro.config.browser_def_hw_nav]: [true] [ro.config.browser_hw_nav_switch]: [true] [ro.config.calendarsound]: [Step.ogg] [ro.config.callrecord.enabled]: [1] [ro.config.callwait_vibrator]: [true] [ro.config.cmccCustmccmnc]: [true] [ro.config.cmcc_forbidden_net]: [true] [ro.config.cmdm_apn_not_display]: [true] [ro.config.colorTemperature_K3]: [true] [ro.config.compatibility_enable]: [1] [ro.config.conn_diagnose]: [true] [ro.config.cpu_info_display]: [Hisilicon Kirin 920] [ro.config.delay_alarm_in_call]: [true] [ro.config.delay_send_signal]: [true] [ro.config.devicecolor]: [white] [ro.config.disable_tapandpay]: [true] [ro.config.disablesmbacklinght]: [true] [ro.config.do_sdcard_upgrade]: [true] [ro.config.ds_verbose_log_on]: [true] [ro.config.dsds_mode]: [umts_gsm] [ro.config.emailsound]: [Letter.ogg] [ro.config.enable.telecom_epush]: [false] [ro.config.fast_dormancy]: [false] [ro.config.fm_type]: [libbcmfm_if] [ro.config.gpstype]: [tlg] [ro.config.helix_enable]: [true] [ro.config.hide_sipcall]: [true] [ro.config.hspap_hsdpa_open]: [1] [ro.config.huawei_smallwindow]: [573,260,1069,1337] [ro.config.hw.VIS]: [true] [ro.config.hw.logsystem.send]: [0] [ro.config.hw.security_volume]: [10] [ro.config.hw_GSensorOptimize]: [true] [ro.config.hw_ReduceSARParam]: [vdf] [ro.config.hw_ReduceSAR]: [false] [ro.config.hw_RemindWifiToPdp]: [true] [ro.config.hw_accesscontrol]: [true] [ro.config.hw_activity_state]: [true] [ro.config.hw_addsettingsdbex]: [1] [ro.config.hw_allow_rs_mms]: [true] [ro.config.hw_allow_ums_and_mtp]: [true] [ro.config.hw_always_allow_mms]: [false] [ro.config.hw_battery_percent]: [true] [ro.config.hw_blacklist]: [true] [ro.config.hw_browser_operator]: [4] [ro.config.hw_cmcc_emerg_invisi]: [1] [ro.config.hw_custverdisplay]: [true] [ro.config.hw_delapchannel]: [true] [ro.config.hw_dolby]: [false] [ro.config.hw_dsda]: [true] [ro.config.hw_dts]: [true] [ro.config.hw_ecclist_nocard]: [+120,+122] [ro.config.hw_ecclist_withcard]: [+112] [ro.config.hw_emerg]: [on] [ro.config.hw_enable_merge]: [true] [ro.config.hw_enable_preset_num]: [false] [ro.config.hw_fake_ecc_list]: [110,120,122,999,119] [ro.config.hw_flashless]: [true] [ro.config.hw_gcf]: [false] [ro.config.hw_globalEcc]: [false] [ro.config.hw_glovemode_enabled]: [1] [ro.config.hw_hightLightValue]: [200] [ro.config.hw_hightLight]: [true] [ro.config.hw_incall_report_on]: [true] [ro.config.hw_ipv6_support]: [true] [ro.config.hw_lockscreen]: [true] [ro.config.hw_menu_unlockscreen]: [false] [ro.config.hw_multiscreen]: [true] [ro.config.hw_navigationbar]: [true] [ro.config.hw_nlp]: [com.baidu.map.location] [ro.config.hw_noti_expand]: [true] [ro.config.hw_novoicesignal]: [true] [ro.config.hw_omacp]: [1] [ro.config.hw_opta]: [630] [ro.config.hw_optb]: [156] [ro.config.hw_power_saving]: [true] [ro.config.hw_privacymode]: [true] [ro.config.hw_proximitySensor]: [true] [ro.config.hw_proximity]: [true] [ro.config.hw_rightsmgr]: [1] [ro.config.hw_sensorhub]: [true] [ro.config.hw_showTestInfo]: [false] [ro.config.hw_show_alert_dialog]: [true] [ro.config.hw_show_number]: [false] [ro.config.hw_shownavisettings]: [false] [ro.config.hw_sim2airplane]: [true] [ro.config.hw_simpleui_enable]: [1] [ro.config.hw_singlehand]: [2] [ro.config.hw_smartcardservice]: [true] [ro.config.hw_subtitle_support]: [true] [ro.config.hw_support_callbar]: [true] [ro.config.hw_support_ipcall]: [true] [ro.config.hw_testingsettings]: [true] [ro.config.hw_toolbox]: [true] [ro.config.hw_touchplus_enabled]: [true] [ro.config.hw_upload_cp_log]: [true] [ro.config.hw_useCtrlSocket]: [true] [ro.config.hw_use_browser_ua]: [http://wap1.huawei.com/uaprof/HUAWEI_H60_L02_UAProfile.xml] [ro.config.hw_vcardBase64]: [true] [ro.config.hw_vdf_fastdormancy]: [true] [ro.config.hw_virtual_key]: [true] [ro.config.hw_voicerecord]: [true] [ro.config.hw_wifi_frequency]: [0] [ro.config.hw_wifitrafc]: [true] [ro.config.hw_wirenetcontrol]: [true] [ro.config.hwft_PinPukUnlockscr]: [true] [ro.config.hwft_emerCallDefNum]: [""] [ro.config.hwscope]: [true] [ro.config.hwtheme]: [1] [ro.config.incall_notify_mms]: [true] [ro.config.isNeedApList]: [false] [ro.config.keypasstouser]: [true] [ro.config.launcher_matchcard]: [0] [ro.config.messagesound]: [Whisper.ogg] [ro.config.mmu_en]: [1] [ro.config.modem_hsic]: [true] [ro.config.networkmodeset]: [true] [ro.config.norog.mulan_emui3_0]: [0] [ro.config.notification_sound]: [Bongo.ogg] [ro.config.overlay_path]: [/vendor/overlay/app/HD4X5/] [ro.config.protocol_errors]: [false] [ro.config.readBtAddress]: [true] [ro.config.rebootAfterUnlockPUK]: [true] [ro.config.ringtone2]: [Huawei_Tune.ogg] [ro.config.ringtone]: [Honor.ogg] [ro.config.show2846]: [true] [ro.config.showBatteryCharge]: [true] [ro.config.sprd_refresh_rsp]: [true] [ro.config.support_ca]: [false] [ro.config.switchPrimaryVolume]: [true] [ro.config.themecolor]: [true] [ro.config.toolbox_land_column]: [8] [ro.config.toolbox_land_row]: [2] [ro.config.toolbox_port_column]: [4] [ro.config.toolbox_port_row]: [3] [ro.config.updatelocation]: [true] [ro.config.widevine_level3]: [true] [ro.config.wifiManager_k3]: [true] [ro.crypto.fuse_sdcard]: [true] [ro.crypto.state]: [unsupported] [ro.cust.cdrom]: [/cust/preinstalled/public/cdrom/autorun.iso] [ro.debuggable]: [0] [ro.dual.sim.phone]: [true] [ro.factorytest]: [0] [ro.gsm.systemui.carriericon]: [true] [ro.hardware.alter]: [Kirin920] [ro.hardware]: [hi3630] [ro.huawei.cust.toolbox_airwifi]: [true] [ro.hwcamera.sound.muteable]: [true] [ro.hwui.drop_shadow_cache_size]: [6] [ro.hwui.gradient_cache_size]: [1] [ro.hwui.layer_cache_size]: [48] [ro.hwui.path_cache_size]: [32] [ro.hwui.r_buffer_cache_size]: [8] [ro.hwui.shape_cache_size]: [2] [ro.hwui.text_large_cache_height]: [1024] [ro.hwui.text_large_cache_width]: [2048] [ro.hwui.text_small_cache_height]: [1024] [ro.hwui.text_small_cache_width]: [1024] [ro.hwui.texture_cache_flushrate]: [0.4] [ro.hwui.texture_cache_size]: [72] [ro.modem.type]: [sprd] [ro.multi.rild]: [true] [ro.networkstatus.delaytimer]: [20] [ro.opengles.version]: [196608] [ro.poweroff_alarm]: [true] [ro.product.CustCVersion]: [C00] [ro.product.CustDVersion]: [D317] [ro.product.alert_time]: [true] [ro.product.board]: [H60-L12] [ro.product.brand]: [Huawei] [ro.product.canplaypause]: [true] [ro

相關推薦

判斷 Android romEMUIEmotion UI

1、定義一個可以獲取系統屬性的方法 public static String getProperty(String key, String defaultValue) { String value = defaultValue;

Android開發學習筆記十二基礎UI控制元件之ImageView、CheckBox、RadioButton

一、ImageView:直接繼承自View,它的作用是在介面上顯示Drawable物件。 ImageView在佈局檔案(如main_activity.xml)中常用的屬性 有 scaleType ,s

Android開發學習筆記十四基礎UI控制元件之Spinner

Spinner:彈出一個列表選擇框,供使用者選擇。繼承自ViewGroup,因為可以容納很多列表項,因此它也是一個容器控制元件。 給Spinner指定資料來源的2種方法: 一、通過指定xml檔案來指

Android開發學習筆記十五基礎UI控制元件之ListView

一、ListView常用XML屬性: android:choiceMode="" 設定ListView的選擇行為 android:divider="" 設定List列表項的分隔條(即可用顏

Android開發學習筆記十六基礎UI控制元件之ListView-SimpleAdapter

一、ListView控制元件: <ListView android:id="@+id/list_view_demo" android:layout_width="match_pa

Android PopupWindow 部分機型魅族點選外部能取消的bug

解決辦法: 在showAs之前設定setBackgroundDrawable(new BitmapDrawable()); 完整程式碼: LayoutInflater inflater = (LayoutInflater) mContext .

android保持服務休眠持續執行以及喚醒螢幕的方法

假設有這樣一個應用場景,一個服務一直在默默的工作(比如即時地獲取伺服器的訊息),即使在螢幕已經因為長時間無操作而關閉,或者使用者按了電源鍵讓螢幕關閉,手機進入休眠狀態,他必須依然在工作中。一旦從伺服器獲取到訊息,他能點亮螢幕,然後進行一些處理工作。 1、讓服務持續執行而不

Android基礎學習總結十六——基於ijkplayer封裝支援簡單介面UI定製的視訊播放器

前言 專案開發中遇到需要解析播放m3u8視訊流的情況,但是原生的PlayerView非常慢,使用起來複雜,不適合上手,這裡找到一款ijkplayer是Bilibili基於ffmpeg開發並開源的輕量級視訊播放器,支援播放本地網路視訊,也支援流媒體播放。支援An

Laravel5.5執行 npm run dev時報錯,提示cross-env找not found的解決辦法

smo font span links 命令 develop ebp amp webpack Laravel 5.4 Mix & Laravel5.5執行 npm run dev時報錯,提示cross-env找不到(not found)的解決辦法 首先

基於編輯距離來判斷詞語相似度方法scala版

使用 ref ray 只需要 art 算法 位置 spark else 詞語相似性比較,最容易想到的就是編輯距離,也叫做Levenshtein Distance算法。在Python中是有現成的模塊可以幫助做這個的,不過代碼也很簡單,我這邊就用scala實現了一版。 編輯

Android查缺補漏View篇--事件分發機制

touch事件 滑動沖突 今天 version schema ttr 步驟 isp win 事件分發機制是Android中非常重要的一個知識點,同時也是難點,相信到目前為止很多Android開發者對事件分發機制並沒有一個非常系統的認識,當然也包括博主個人在內。可能在平時的開

Android查缺補漏View篇--布局文件中的“@+id”和“@id”有什麽區別?

新增 布局 parent 直接 使用 margin 移除 控件 Coding Android布局文件中的“@+id”和“@id”有什麽區別? +id表示為控件指定一個id(新增一個id),如: <cn.codingblock.view.customer_view.

博科300交換機中斷non-disruptive固件升級

老版本 發現 process brocade 配置文件 交換機配置 希望 1.2 str HPE OEM Brocade 300,當前的固件版本v6.4.1b,需要升級到v7.4.2b。官方建議的升級路徑:v6.4.1b>v7.0.1a>v7.1.2b>v

12c broker ArchiveLagTarget 一致ORA-16714

broker com targe tab show ndb pre state base 在配置了brokger的dg環境下,一定要用broker 去調整相關參數,切記。 1、查看DG狀態,發現有告警 DGMGRL> show database orcldg; Da

Android查缺補漏IPC篇-- 進程間通訊基礎知識熱身

內部 eat ack 學習過程 and ... 綁定 his nec 本文作者:CodingBlock 文章鏈接:http://www.cnblogs.com/codingblock/p/8479282.html 在Android中進程間通信是比較難的一部分,同時又非常重要

vue-cli axios封裝element-ui

def IT 配置 quest AD 錯誤 攔截器 ESS 登錄 1.http.js /** * * http配置 */ import axios from ‘axios‘import { Loading, Message } from ‘element-ui‘ // a

Android項目實戰十二:解決OOM的一種偷懶又有效的辦法

建議 是什麽 cat 解決 blog www. android項目 roi acm 原文:Android項目實戰(十二):解決OOM的一種偷懶又有效的辦法在程序的manifest文件的application節點加入android:largeHeap=“true&

Android項目實戰十四:TextView顯示html樣式的文字

sta ref RR per 使用 一個 title name Go 原文:Android項目實戰(十四):TextView顯示html樣式的文字項目需求: TextView顯示一段文字,格式為:白雪公主(姓名,字數不確定)向您發來了2(消息個數,不確定)條消息 這段文

Android項目實戰十一:moveTaskToBack(boolean ) 方法的使用

android項目 androi ID cti 項目實戰 htm www style 順序 原文:Android項目實戰(十一):moveTaskToBack(boolean ) 方法的使用當你開發的程序被按後退鍵退出的時候, 你肯定不想讓他就這麽被finish()吧,那麽

Android項目實戰十六:QQ空間實現—— 展示說說中的評論內容並有相應點擊事件

con toast short demo append 集合 obj parent 自帶 原文:Android項目實戰(十六):QQ空間實現(一)—— 展示說說中的評論內容並有相應點擊事件大家都玩QQ空間客戶端,對於每一個說說,我們都可以評論,那麽,對於某一條評論: