Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Coverpage
Titlepage
Copyright
Dedication
Contents at a Glance
Contents
About the Author
About the Technical Reviewers
Acknowledgments
Introduction
Chapter 1: Applications of Augmented Reality
Augmented Reality vs. Virtual Reality
Current Uses
Casual Users
Military and Law Enforcement
Vehicles
Medical
Trial Rooms
Tourism
Architecture
Assembly Lines
Cinema/Performance
Entertainment
Education
Art
Translation
Weather Forecasting
Television
Astronomy
Other
Future Uses
Virtual Experiences
Impossible Simulations
Holograms
Video Conferencing
Movies
Gesture Control
Summary
Chapter 2: Basics of Augmented Reality on the Android Platform
Creating the App
Camera
Orientation Sensor
Accelerometer
Global Positioning System (GPS)
Latitude and Longitude)
ProAndroidAR2Activity.java
AndroidManifest.xml
main.xml
Sample LogCat Output
Conclusion
Chapter 3: Adding Overlays
Widget Overlays
Layout Options
Updating main.xml with a RelativeLayout
TextView Variable Declarations
Updated onCreate
Displaying the Sensors’ Data
Updated AndroidManifest.xml
Testing the App
Markers
Activity.java
CustomObject Overlays
CustomRenderer
AndroidManifest
Summary
Chapter 4: Artificial Horizons
A Non-AR Demo App
The XML
The Java
The Android Manifest
Testing the Completed App
An AR Demo App
Setting Up the Project
Updating the XML
Updating the Java Files
Testing the Completed AR app
Summary
Chapter 5: Common and Uncommon Errors and Problems
Layout Errors
UI Alignment Issues
ClassCastException
Camera Errors
Failed to Connect to Camera Service
Camera.setParameters() failed
Exception in setPreviewDisplay()
AndroidManifest Errors
Security Exceptions
<uses-library>
<uses-feature>
Errors Related to Maps
The Keys
Not Extending MapActivity
Debugging the App
LogCat
Black and White Squares When Using the Camera
Miscellaneous
Not Getting a Location Fix from the GPS
Compass Not Working
Summary
Chapter 6: A Simple Location-Based App Using Augmented Reality and the Maps API
Editing the XML
Creating Menu Resources
Layout Files
Getting API Keys
Getting the MD5 of Your Keys
Java Code
Main Activity
FlatBack.java
FixLocation.java
Running the App
Common errors
Summary
Chapter 7: A Basic Navigational App Using Augmented Reality, the GPS, and Maps
The New App
Updated XML files
Updated Java files
Updated AndroidManifest
The Completed App
Chapter 8: A 3D Augmented Reality Model Viewer
Key Features of this App
The Manifest
Java Files
Main Activity
AssetsFileUtility.java
BaseFileUtil.java
CheckFileManagerActivity.java
Configuration File
Working with Numbers
Group.java
Instructions.java
Working with Light
Creating a Material
MemUtil.java
Model.java
Model3D.java
Viewing the Model
Parsing .mtl files
Parsing the .obj files
ParseException
Rendering
SDCardFileUtil.java
SimpleTokenizer.java
Util.java
3D Vectors
XML Files
Strings.xml
Layout for the Rows
instructions_layout.xml
List Header
main.xml
HTML Help File
Completed App
Conclusion
Chapter 9: An Augmented Reality Browser
The XML
strings.xml
menu.xml
The Java Code
The Activities and AugmentedView
Getting the Data
DataSource
LocalDataSource
NetworkDataSource
TwitterDataSource
WikipediaDataSource
Positioning Classes
ScreenPositionUtility
The UI Works
PaintableObject
PaintableBox
PaintableBoxedText
PaintableCircle
PaintableGps
PaintableIcon
PaintableLine
PaintablePoint
PaintablePosition
PaintableRadarPoints
PaintableText
Utility Classes
Vector
Utilities
PitchAzimuthCalculator
LowPassFilter
Matrix
Components
Radar
Marker
IconMarker.java
Customized Widget
VerticalSeekBar.java
Controlling the Camera
CameraSurface.java
CameraCompatibility
CameraModel
The Global Class
ARData.java
AndroidManifest.xml
Running the App
Summary
Index
← Prev
Back
Next →
← Prev
Back
Next →