Using Android’s Optional Hardware APIs

Using Android’s Optional Hardware APIs Interacting with Device Hardware The Android platform allows unprecedented access to the device’s underlying hardware in a secure and robust manner. Because not all Android devices support or contain all hardware options, it is very...

Exploring User Interface Screen Elements

Exploring User Interface Screen Elements The Android SDK provides a couple controls for getting date and time input from the user.The first is the DatePicker control (Figure 7.8, top). It can be used to get a month, day, and year...

Exploring user interface screen elements

Exploring user interface screen elements Most Android applications inevitably need some form of user interface. In this chapter, we discuss the user interface elements available within the Android Software Development Kit (SDK). Some of these elements display information to the...

Designing User Interfaces with Layouts

Designing User Interfaces with Layouts In this chapter,we discuss how to design user interfaces for Android applications. Here we focus on the various layout controls you can use to organize screen elements in different ways.We also cover some of the...

Defining Integer Resources in XML

Defining Integer Resources in XML In addition to strings and Boolean values, you can also store integers as resources. Integer resources are defined in XML under the /res/values project directory and compiled into the application package at build time.Integer values...

Configuring the SQLite Database Properties

Configuring the SQLite Database Properties Now that you have a valid SQLiteDatabase instance, it’s time to configure it. Some important database configuration options include version, locale, and the thread-safe locking feature. import java.util.Locale; mDatabase.setLocale(Locale.getDefault()); mDatabase.setLockingEnabled(true); mDatabase.setVersion(1); Creating Tables and Other...

Morphological and syntactic analysis of pronouns and adjectives

Morphological and syntactic analysis of pronouns and adjectives Methodology of Data Collection and Analysis Data collecting Certain sources can facilitate the study of this issue. All data are, most of the time, collected from the libraries such as the library...

Connecting to Microsoft SQL Server

Connecting to Microsoft SQL Server Overview – What do you have to know… Server Name Security Information Database name Data Interface / API to use Steps to connect… When creating a connection, you can use one of three sources: a...

Langage et logique : les cas des éléments à polarité négative et des implicatures scalaires

Numerous linguistic phenomena have been shown to correlate with some logical properties of a sentence with which they occur, such as what logical entailments are supported by the sentence, or what the logical relation is between it and some other...

Activities to develop learners’ writing skills

Importance of writing Writing is an important part of our daily lives. It is, however, a difficult skill to learn and master. But why is it so important? Writing is important because it improves communication skills, creative thinking and creativity....