52 research outputs found
The busy coder's guide to Android development
380 p. ; il. , Indice.Libro ElectrónicoIf you are interested in programming for Android, you will need at least basic understanding of how to program in Java. Android programming is done using Java syntax, plus a class library that resembles a subset of the Java SE library (plus Android-specific extensions). If you have not programmed in Java before, you probably should quick learn how that works before attempting to dive into programming for Android.
The book does not cover in any detail how to download or install the Android development tools, either the Eclipse IDE flavor or the standalone flavor. The Android Web site covers this quite nicely. The material in the book should be relevant whether you use the IDE or not. You should download, install, and test out the Android development tools from the Android Web site before trying any of the examples listed in this book.Welcome to the Warescription!xiii
Prefacexv
Welcome to the Book!xv
Prerequisitesxv
Warescriptionxvi
Book Bug Bountyxvii
Source Code Licensexviii
Creative Commons and the Four-to-Free (42F) Guaranteexviii
The Big Picture1
What Androids Are Made Of3
Activities3
Content Providers4
Intents4
Services4
Stuff At Your Disposal5
Storage5
Network5
Multimedia5
GPS5
Phone Services6
Project Structure7
Root Contents7
The Sweat Off Your Brow8
iii
Subscribe to updates at http://commonswarecom Special Creative Commons BY-NC-SA 30 License Edition
And Now, The Rest of the Story8
What You Get Out Of It9
Inside the Manifest11
In The Beginning, There Was the Root, And It Was Good11
Permissions, Instrumentations, and Applications (Oh, My!)12
Your Application Does Something, Right?13
Creating a Skeleton Application17
Begin at the Beginning17
The Activity18
Dissecting the Activity19
Building and Running the Activity21
Using XML-Based Layouts23
What Is an XML-Based Layout?23
Why Use XML-Based Layouts?24
OK, So What Does It Look Like?25
What's With the @ Signs?26
And We Attach These to the JavaHow?26
The Rest of the Story27
Employing Basic Widgets29
Assigning Labels29
Button, Button, Who's Got the Button?30
Fleeting Images31
Fields of Green Or Other Colors31
Just Another Box to Check34
Turn the Radio Up37
It's Quite a View39
Useful Properties39
Useful Methods39
Working with Containers41
Thinking Linearly42
Concepts and Properties42
Example45
All Things Are Relative50
iv
Subscribe to updates at http://commonswarecom Special Creative Commons BY-NC-SA 30 License Edition
Concepts and Properties50
Example53
Tabula Rasa56
Concepts and Properties56
Example59
Scrollwork60
Using Selection Widgets65
Adapting to the Circumstances65
Using ArrayAdapter66
Other Key Adapters67
Lists of Naughty and Nice68
Spin Control70
Grid Your Lions (Or Something Like That)74
Fields: Now With 35% Less Typing!78
Galleries, Give Or Take The Art82
Employing Fancy Widgets and Containers83
Pick and Choose83
Time Keeps Flowing Like a River88
Making Progress89
Putting It On My Tab90
The Pieces91
The Idiosyncrasies91
Wiring It Together93
Other Containers of Note96
Applying Menus97
Flavors of Menu97
Menus of Options98
Menus in Context100
Taking a Peek102
Embedding the WebKit Browser107
A Browser, Writ Small107
Loading It Up109
Navigating the Waters111
v
Subscribe to updates at http://commonswarecom Special Creative Commons BY-NC-SA 30 License Edition
Entertaining the Client111
Settings, Preferences, and Options (Oh, My!)114
Showing Pop-Up Messages117
Raising Toasts117
Alert! Alert!118
Checking Them Out119
Dealing with Threads123
Getting Through the Handlers123
Messages124
Runnables127
Running In Place127
Utilities (And I Don't Mean Water Works)128
And Now, The Caveats128
Handling Activity Lifecycle Events131
Schroedinger's Activity131
Life, Death, and Your Activity132
onCreate() and onCompleteThaw()132
onStart(), onRestart(), and onResume()133
onPause(), onFreeze(), onStop(), and onDestroy()134
Using Preferences137
Getting What You Want137
Stating Your Preference138
A Preference For Action138
Accessing Files143
You And The Horse You Rode In On143
Readin' 'n Writin'147
Working with Resources151
The Resource Lineup151
String Theory152
Plain Strings152
String Formats153
Styled Text153
Styled Formats154
vi
Subscribe to updates at http://commonswarecom Special Creative Commons BY-NC-SA 30 License Edition
Got the Picture?158
XML: The Resource Way160
Miscellaneous Values163
Dimensions163
Colors164
Arrays165
Different Strokes for Different Folks166
Managing and Accessing Local Databases171
A Quick SQLite Primer172
Start at the Beginning173
Setting the Table174
Makin' Data174
What Goes Around, Comes Around176
Raw Queries176
Regular Queries177
Building with Builders177
Using Cursors179
Change for the Sake of Change179
Making Your Own Cursors180
Data, Data, Everywhere180
Leveraging Java Libraries183
The Outer Limits183
Ants and Jars184
Communicating via the Internet187
REST and Relaxation187
HTTP Operations via Apache Commons188
Parsing Responses190
Stuff To Consider192
Email over Java193
Creating Intent Filters199
What's Your Intent?200
Pieces of Intents200
Stock Options201
vii
Subscribe to updates at http://commonswarecom Special Creative Commons BY-NC-SA 30 License Edition
Intent Routing202
Stating Your Intent(ions)203
Narrow Receivers205
Launching Activities and Sub-Activities207
Peers and Subs208
Start 'Em Up208
Make an Intent209
Make the Call209
Finding Available Actions via Introspection215
Pick 'Em216
Adaptable Adapters220
Would You Like to See the Menu?223
Asking Around225
Using a Content Provider229
Pieces of Me229
Getting a Handle230
Makin' Queries231
Adapting to the Circumstances233
Doing It By Hand235
Position235
Getting Properties236
Setting Properties237
Give and Take238
Beware of the BLOB!239
Building a Content Provider241
First, Some Dissection241
Next, Some Typing242
Step #1: Create a Provider Class243
ContentProvider243
DatabaseContentProvider252
Step #2: Supply a Uri252
Step #3: Declare the Properties252
Step #4: Update the Manifest253
viii
Subscribe to updates at http://commonswarecom Special Creative Commons BY-NC-SA 30 License Edition
Notify-On-Change Support254
Requesting and Requiring Permissions257
Mother, May I?258
Halt! Who Goes There?259
Enforcing Permissions via the Manifest260
Enforcing Permissions Elsewhere261
May I See Your Documents?262
Creating a Service263
Getting Buzzed264
Service with Class264
When IPC Attacks!266
Write the AIDL267
Implement the Interface268
Manifest Destiny270
Where's the Remote?271
Invoking a Service273
Bound for Success274
Request for Service276
Prometheus Unbound276
Manual Transmission276
Alerting Users Via Notifications279
Types of Pestering279
Hardware Notifications280
Icons281
Letting Your Presence Be Felt281
Accessing Location-Based Services287
Location Providers: They Know Where You're Hiding288
Finding Yourself288
On the Move292
Are We There Yet? Are We There Yet? Are We There Yet?292
TestingTesting296
Mapping with MapView and MapActivity299
The Bare Bones299
ix
Subscribe to updates at http://commonswarecom Special Creative Commons BY-NC-SA 30 License Edition
Exercising Your Control301
Zoom301
Center302
Reticle303
Traffic and Terrain303
Follow You, Follow Me305
Layers Upon Layers307
Overlay Classes308
Drawing the Overlay308
Handling Screen Taps310
Playing Media313
Get Your Media On314
Making Noise315
Moving Pictures321
Handling Telephone Calls325
No, No, No – Not That IPhone326
What's Our Status?326
You Make the Call!326
Searching with SearchManager333
Hunting Season333
Search Yourself335
Craft the Search Activity336
Update the Manifest340
Try It Out342
The TourIt Sample Application347
Installing TourIt347
Demo Location Provider347
SD Card Image with Sample Tour348
Running TourIt349
Main Activity350
Configuration Activity352
Cue Sheet Activity354
Map Activity355
x
Subscribe to updates at http://commonswarecom Special Creative Commons BY-NC-SA 30 License Edition
Tour Update Activity357
Help Activity358
TourIt's Manifest359
TourIt's Content360
Data Storage361
Content Provider361
Model Classes361
TourIt's Activities362
TourListActivity362
TourViewActivity363
TourMapActivity367
TourEditActivity367
HelpActivity367
ConfigActivity36
The Daily Mail Ideal Home exhibition 1944-1962: representations of the 'Ideal Home' and domestic consumption.
This thesis investigates the ideals of home, and their determination, promoted in the representations of the Daily Mail Ideal Home Exhibition during the period 1944 to 1962 in order to explore how, through their dissemination, the Exhibition intervened in the definitions and politics of home.
The thesis discusses popular ideals of home that emerged from the circumstances created by the Second World War. It situates the Ideal Home Exhibition in the immediate postwar exhibition context in order to reveal the relationship of the Exhibition to issues of design and the commercial interests of its exhibitors. The Exhibition is discussed as a business, assessing the objectives of the organisers and the nature of the 'audience' it attracted. The representations made by the Exhibition, particularly those in the 'Village of Ideal Homes' are examined in order to identify historical shifts in ideals of home in relation to housing design and the issues and political objectives of postwar reconstruction. It is then discussed as an intervention in the development of postwar consumerism, and as an intervention in the rise in postwar owner-occupancy. Finally, the Exhibition's representations are discussed in relation to its ideological address of nationalism, class and gender, and their construction of the 'ideal family' as the occupants of the 'ideal home'.
The thesis questions the notion that the Exhibition had an ideal of home, and suggest that instead it was constructed from ideologies of home. The Exhibition is seen as an ideological apparatus that promoted ideals of consumption and property ownership through an address of class hegemony
An investigation into attitudes towards illegitimate birth as evidenced in the folklore of South West England
This thesis is a comparative, cross-generic, study of attitudes towards
illegitimacy as evidenced in folksong and folk narrative genres. It is a regionally
based study, focusing specifically on oral materials collected from the counties
of Devon, Cornwall and Somerset, in the South West of England since 1970.
Hence archival sources, in addition to my own fieldwork, provide the main
sources of folklore data for this project. This is the first thesis to draw
extensively upon the large body of material known as the Sam Richards
Folklore Archive, which includes over 500 hours of taped recordings. The
collecting towards this archive was originally inspired by the prolific work of
early folksong collectors Sabine Baring-Gould and Cecil Sharp in the South
West region.
My work on this project is the first broad-based critical analysis of selected
materials from the resulting thirty years' collecting.
Representations of out-of-wedlock pregnancy in South West folksong are often
extremely diverse. Illegitimacy is commonly fused with other types of theme,
including seduction and betrayal. By contrast, a fairly narrow depiction of
"illegitimate" pregnancy is given in supernatural legends and memorates, local
legends and local character anecdotes, where it is consistently seen as having
negative repercussions for the woman and sometimes the child, concerned.
An extensive overview of folklore scholarship informs my eclectic approach to
this study. In the early chapters of this thesis I delineate my source materials in
some detail, also setting out the historical context from which my chosen songs
and narratives emerged. In my analysis of these materials in Chapters 6, 7, and
8, I have combined the use of detailed textual analysis with a consideration of
the creation of meaning in the interaction between text and performance
context
Recommended from our members
Interpretations of a constructivist philosophy in mathematics teaching
This thesis is a research biography which reports a study of mathematics teaching. It involves research into the classroom teaching of mathematics of six teachers, and into their associated beliefs and motivations. The teachers were selected because they gave evidence of employing an investigative approach to mathematics teaching, according to the researcher's perspective. A research aim was to characterise such an approach through the practice of these teachers.
An investigative approach was seen to be embedded in a radical constructivist philosophy of knowledge and learning. Observations and analysis were undertaken from a constructivist perspective and interpretations made were related to this perspective.
Research methodology was ethnographic in form, using techniques of participant-observation and informal interviewing for data collection, and triangulation and respondent validation for verification of analysis. Analysis was qualitative, leading to emergent theory requiring reconciliation with a constructivist theoretical base. Rigour was sought by research being undertaken from a researcher-as-instrwnent position, with the production of a reflexive account in which interpretations were accounted for in terms of their context and the perceptions of the various participants including those of the researcher.
Research showed that those teachers who could be seen to operate from a constructivist philosophy regularly made high level cognitive demands which resulted in the incidence of high level mathematical processes and thinldng skills in their pupils.
Levels of interpretation within the study led to the identification of investigative teaching both as a style of mathematics teaching and as a form of reflective practice in the teaching of mathematics. These forms were synthesised as a constructivist pedagogy and as an epistemology for practice which may be seen to forge links between the theory of mathematics teaching and its practice.
The research is seen to have implications for the teaching of mathematics, and for the development of mathematics teaching itself through professional development of mathematics teachers
Recommended from our members
An ethnography of a rural elementary school district containing three types of minority students
The stalking ground: Some varieties of human conduct seen in and through a frame of ritual.
SIGLEAvailable from British Library Document Supply Centre- DSC:D37562/81 / BLDSC - British Library Document Supply CentreGBUnited Kingdo
A Design for a Psycho-social Support System Potentially Applicable to the Local Pastor of the Seventh-day Adventist Church in North America Based Upon an Evaluation of the Needs
This project attempts to evaluate the needs of local pastors of the Seventh-day Adventist (SDA) Church in North America in the area of career adjustment and personal satisfaction and to design a psycho-social support system potentially applicable to their situation. The literature reviewed indicates that ministers, like other people, are subject to transitions of adult development, stress and crises, and personal characteristics tending to make one vulnerable. The career of ministry subjects a person to role conflicts, pastoral pedestals, family strains, church conflicts, personal issues, denominational pressures, and burn-out. The concept of a psychosocial support system, however, seems to promise an effective way of coping with these circumstances. The concept of support is justified theologically in light of the doctrine of man, the nature and work of ministry, and the means by which God helps people on earth. A random sample survey of SDA ministers in North America indicates that 50 percent of the ministers seem to have a positive attitude, many healthy relationships, and an adequate support system, while 25 percent are ambivalent about the quality of support they experience. Another 25 percent report absence of support and unpleasant experiences in their personal and work relationships. However, 50 to 75 percent, depending on the type of resource, indicate great interest in improving their support system. Greater interest in support resources is correlated with younger age groups. Most desired resources listed in descending order are: peer fellowship and consultation, continuing education, pastors\u27 pastor, congregational relationships. Apparently there is both a need and an interest in improved support systems by SDA pastors. Existing support resources from the business world, independent agencies, non-SDA denominations, and SDA conferences that could apply to ministers, e .g ., career development centers, counseling services, continuing education programs, support groups, and other personal growth resources, are described. Support resources that could contribute to an adequate support system in the SDA Church in North America are: personal resources (spiritual strength, self-counseling, problem-solving, etc .), family resources, training resources (seminary, mentor, continuing education, sabbatical), colleague resources (friendship, consultation, support groups, team ministries), professional resources (pastor\u27s pastor, professional counseling, career development centers), congregational resources, and conference administrative resources
Recommended from our members
Imagining Kenya in Ngugi's fiction
The relationship between literature and nation-building has been one of the most
crucial issues in postcolonial studies. The novel in particular is regarded as a means by which writers forge national consciousness among the colonized during the time of colonization. Many African writers themselves, for example, conceive of their work as an arena of resistance to European colonialism which disfigures the identities of Africans and denies their history. In this study, I investigate how Ngugi wa Thiong'o, the foremost Kenyan writer, attempts to construct what Benedict Anderson calls "imagined communities" in Kenya during the colonial era, decolonization, and the post-independence period as reflected in three of his novels: The River Between (1965), A Grain of Wheat (1967), and Petals of Blood (1977). Far from being an unchanging entity, nationalism is a social construct that is constantly redefined and historically contingent. In The River Between, Ngugi
draws upon Gikuyu cultural practices, especially the contested and value-laden rite
of female circumcision, as sources of collective identity on which Kenyans might
build to construct a nation. As he moves toward A Grain of Wheat, he identifies Kenyan nationhood with the Mau Mau struggle against British rule. In this novel, Ngugi not only contests the British account of the national liberation movement as barbaric, criminal and tribal, but also critiques the government that urges the Kenyan to forget about the Mau Mau because of its violence. In Petals of Blood, Ngugi delegitimates the nation-state as it betrays the hope of the people in postindependence Kenya. Instead of materializing the ideals of the nationalist
movement, the nation-state controlled by the elite and the national bourgeoisie fully embraces the ideology of capitalist neocolonialism which, like its cousin
colonialism, exploits the marginalized peasants and working-class people. The
clear-cut class divisions engendered by neocolonialism indicates that Ngugi's
imagined "Kenya," a civil society that gives full value to its people, has not yet come into being, and the struggle of the masses for independence will continue
Recommended from our members
Literary Practices and the Curriculum Context: Exploring the Production of Assignments in a South African Vocational Higher Education Institution
This thesis explores curriculum construction and the production of assignments in two courses at a vocational higher education institution in South Africa, namely Film and Video Technology and Graphic Design. The influence of the vocational curriculum context on student and lecturer practices is examined through two analytical frameworks, literacy as social practice and Bernstein's concept of recontextualisation.
An ethnographic methodology was used to investigate the broader curriculum context and literacy practices engaged in by students and lecturers. Fieldwork was carried out over a six-month period, while generating and collecting fieldnote, interview, documentary and photographic data. The analysis is presented as two separate case studies, one in each department. The study's interpretive approach is used to bring together the Bernstein focus on recontextualisation and curriculum with the Academic Literacies notion of literacy practice. The significant role of the curriculum context in the patterning of the literacy practices students engage in when producing their assignments is therefore recognised. The findings highlight the way the university of technology sectoral domain operates as a third aspect in the recontextualisation process alongside the professional and disciplinary domains, resulting in conflicting messages. Primacy is given to texts and literacy practices that resemble those in the professional domains. However, essayist literacies are also foregrounded and reflect generic and decontextualized understandings of writing that function as an important mechanism through which the sectoral domain asserts its position in the academy.
The research demonstrates that the Academic Literacies and Bernsteinian frames can successfully be combined in empirical research, allowing the individual students' experiences to be located within broader institutional and sectoral structures in a way that challenges deficit views of the student. A further conclusion drawn is how an Academic Literacies lens can help to identify the workings of the sectoral domain thus broadening the analytical frame beyond individual institutional conditions
- …