Книга: Beginning Android
Make Your Demands Heard
Make Your Demands Heard
In addition to using the target ID system to indicate what level of device your project is targeting, you can use a new AndroidManifest.xml
element to specify hardware that is required for your application to run properly.
You can add one or more <uses-configuration>
elements inside the <manifest>
element. Each <uses-configuration>
element specifies one valid configuration of hardware that your application will work with.
At the present time, there are five possible hardware requirements you can specify this way:
• android:reqFiveWayNav
to indicate you need a 5-way navigation pointing device of some form (e.g., android:reqFiveWayNav="true"
)
• android:reqNavigation
to restrict the 5-way navigation pointing device to a specific type (e.g., android:reqNavigation="trackball"
)
• android:reqHardKeyboard
to specify if a hardware (physical) keyboard is required (e.g., android:reqHardKeyboard="true"
)
• android:reqKeyboardType
, probably used in conjunction with android:reqHardKeyboard
, to indicate a specific type of hardware keyboard that is required (e.g., android:reqKeyboardType="qwerty"
)
• android:reqTouchScreen
to indicate what type of touchscreen is required, if any (e.g., android:reqTouchScreen="finger"
)
- Chapter 12. Debugging your scripts
- Listing your active rule-set
- Updating and flushing your tables
- How to use this License for your documents
- 2. How to Apply These Terms to Your New Programs
- 4.3.3. Makefile Targets
- Scaling makes your object darker?
- 1.3. Автоматизация процесса с помощью GNU-утилиты make
- 15.4. Утилита make: автоматизация процедур
- Команда make и make-файлы
- 5.1.1 Make Targets
- Partitioning Your Hard Drive