在開發應用測試平臺的範圍內,我發現自己迫切需要android設備的體面和完整的參考。到目前爲止,我已經找到了最完整的清單Android設備API
http://support.google.com/googleplay/bin/answer.py?hl=en&answer=1727131
然而這沒有該設備是否是平板電腦或手機信息。伴隨的圖像也是可取的。
有沒有人知道這樣的API?
在開發應用測試平臺的範圍內,我發現自己迫切需要android設備的體面和完整的參考。到目前爲止,我已經找到了最完整的清單Android設備API
http://support.google.com/googleplay/bin/answer.py?hl=en&answer=1727131
然而這沒有該設備是否是平板電腦或手機信息。伴隨的圖像也是可取的。
有沒有人知道這樣的API?
更多結構化列表在這裏。 http://www.androidtapp.com/list-of-android-devices/
此外,請檢查此帖。希望它會有所幫助。 List of all Android devices with characteristics
你可以用代碼嘗試:
public boolean isTablet(Context context) {
boolean xlarge = ((context.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == 4);
boolean large = ((context.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_LARGE);
return (xlarge || large);
}