从开发者的角度看适配Flyme系统有什么坑?

logan676 发布于 2015/10/16 12:57
阅读 1K+
收藏 0

Android软件适配魅族手机时有什么需要注意的地方吗,从开发者的角度看Flyme系统有什么坑需要绕过去吗?

比如说锤子手机T1的rom把下拉刷新的下拉效果做的比其他系统下拉幅度大很多,从而导致快速滑动list时,到时下拉刷新组件的刷新头部(header)卡在屏幕中间,为了适配它,需要加上这句话。mListView.setOverScrollMode(View.OVER_SCROLL_NEVER);
再比如魅族手机为了大屏单手操作方便,有一个HOLD的功能等等。


我用的MX 5升级到Flyme 4.5.2之后,运行公司的软件一直无响应(ANR)而在Flyme其他版本上或者在其他品牌手机上都正常。不知道是不是Flyme ROM的原因。


下面是 ANR的 log



E/WifiTrafficPoller(  865):  packet count Tx=1218 Rx=1289
E/ANRManager(  865): ANR in cn.com.nggirl.nguser (cn.com.nggirl.nguser/com.iuxstudio.pumpkincarriagecustom.HomePagerAty), time=2346681
E/ANRManager(  865): Reason: Input dispatching timed out (Waiting to send non-key event because the touched window has not finished processing certain input events that were delivered to it over 500.0ms ago.  Wait queue length: 2.  Wait queue head age: 8588.5ms.)
E/ANRManager(  865): Load: 4.67 / 4.3 / 4.19
E/ANRManager(  865): Android time :[2015-10-16 12:17:31.21] [2350.103]
E/ANRManager(  865): CPU usage from 6028ms to 327ms ago:
E/ANRManager(  865):   6.3% 865/system_server: 2.1% user + 4.2% kernel / faults: 51 minor
E/ANRManager(  865):   3.6% 4101/adbd: 0.5% user + 3.1% kernel / faults: 897 minor
E/ANRManager(  865):   2.8% 286/mediaserver: 1.2% user + 1.5% kernel / faults: 2 minor
E/ANRManager(  865):   1.4% 6044/logcat: 0.5% user + 0.8% kernel
E/ANRManager(  865):   1.2% 2788/com.android.systemui: 1% user + 0.1% kernel / faults: 7 minor
E/ANRManager(  865):   0.8% 7823/logcat: 0.3% user + 0.5% kernel
E/ANRManager(  865):   0.8% 8198/cn.com.nggirl.nguser: 0.8% user + 0% kernel
E/ANRManager(  865):   0.7% 7881/kworker/0:2: 0% user + 0.7% kernel
E/ANRManager(  865):   0% 3/ksoftirqd/0: 0% user + 0% kernel
E/ANRManager(  865):   0.1% 63/cfinteractive: 0% user + 0.1% kernel
E/ANRManager(  865):   0.1% 97/hps_main: 0% user + 0.1% kernel
E/ANRManager(  865):   0.1% 131/present_fence_w: 0% user + 0.1% kernel
E/ANRManager(  865):   0.1% 151/fpc1020_worker: 0% user + 0.1% kernel
E/ANRManager(  865):   0% 192/ueventd: 0% user + 0% kernel
E/ANRManager(  865):   0% 254/healthd: 0% user + 0% kernel / faults: 1 minor
E/ANRManager(  865):   0.1% 259/surfaceflinger: 0% user + 0.1% kernel
E/ANRManager(  865):   0.1% 750/mtkrild: 0% user + 0.1% kernel
E/ANRManager(  865):   0% 821/ksdioirqd/mmc1: 0% user + 0% kernel
E/ANRManager(  865):   0.1% 2750/hif_thread: 0% user + 0.1% kernel
E/ANRManager(  865):   0% 2754/wpa_supplicant: 0% user + 0% kernel
E/ANRManager(  865):   0% 4222/com.meizu.mstore: 0% user + 0% kernel / faults: 13 minor
E/ANRManager(  865):   0% 4767/com.mediatek.atci.service: 0% user + 0% kernel / faults: 14 minor
E/ANRManager(  865):   0% 7582/kworker/u16:0: 0% user + 0% kernel
E/ANRManager(  865): 21% TOTAL: 8.3% user + 12% kernel + 0.6% softirq
E/WifiTrafficPoller(  865): TRAFFIC_STATS_POLL true Token 17 num clients 16




加载中
返回顶部
顶部