The difference between mobile phone development and STB development

Source: Internet
Author: User

by developing the application of TV class and the application of mobile phone, there are three kinds of differences in the main feeling:
1, the difference in resolution (mobile phone rate 320*480,480*800,480*854)
Set-top box: tcl800:800x450 tcl720p:1280x720
set-top boxes generally more than the resolution of mobile phones and wider than the width of more, such as the current popular mobile phone rate of 480*800 width of 480 high 800. And the television screen is mostly wider than high, such as the TCLSDK in the resolution of the simulator 1280*720 (width is 1280, high is 720) wider than high. Developers should pay attention to the wide and high proportions when making layout-friendly development. If the width is greater than high in the tab is also displayed when you can just display the contents of a tab page, to display the contents of three or two tab pages. When doing a ListView, the length of the ListItem should be adjusted properly, or the content will be filled so that the user experience is better. More space can be displayed on a typical layout line. For example: A landing page in the mobile phone layout is two up and down Eidttext and then the EditText control will have two horizontally arranged buttons, but in the set-top box development of the layout will be two EditText To arrange horizontally and the width and height of the button is sure to do a proper widening of the middle to add a part of the gap so that only enough coordination. The above is only to take a few cases to do a comparison, in (TV) to do the layout of the application or developers to do a bit of kung fu.
2. Different control methods
The main way to develop application control on the mobile phone is so three kinds of keyboard, light-sensitive button, touch screen, now the phone is mainly through the light-sensitive button and touch screen. This is easy to get focus by touch, which is supported by the controls in the SDK and the user experience is good. But the application operation developed on TV is operated by remote control, and the focus is relatively complex. For example, the current page does not have control to get the focus, you need to control the left and right arrow keys to get the focus, this will certainly do but the user experience is much worse. So the app developed on TV is basically getting the focus of one of the controls on the page active (let the user know what to do with the focus).
3, network connection mode set-top box can have wired
The RJ45 interface (Network cable interface) is ubiquitous on the set-top box, which means that it can be connected via a LAN. The phone is not a cable interface, we are doing is based on wireless module development (WIFI, mobile network) development. There are only WiFi and mobile network-related APIs in the SDK, but no cable-related APIs. Therefore, to obtain the network address and other related cable related properties can not be directly through the API to obtain. But there is a way. Android Kernel is Linux we can get the relevant properties of the Android system by executing a Linux shell such as: Get MAC address
Runtime runtime = Runtime.getruntime ();
runtime.exec ("Ifconfig eth0"), although relatively cottage but also more practical.

The difference between mobile phone development and STB development

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.